Commit Graph

10 Commits

Author SHA1 Message Date
Sravan Balaji
a0d868db88 Delete some old code 2021-12-09 17:59:12 -05:00
Sravan Balaji
729fd4fc05 Position Limits & Update bound_cons
- Add max/min position limits
- Delete `eq_cons` function for now
- Update `bound_cons` to enforce limit and
  max/min position limits
- Rename `nonlincon` to `road_obstacle_cons`
- Parameterize index search around closest
  road boundary point in `road_obstacle_cons`
2021-12-09 17:52:41 -05:00
Sravan Balaji
5218d7fbec Nonlinear Constraints for Road & Obstacles
- Use `inpolygon` to check if position is within road
  and not in or on an obstacle
- Add helper function `get_start_idx` to get
  starting index of Z(i) [states(i), inputs(i)]
  in Z vector (combined states & inputs for prediction
  horizon)
2021-12-09 17:30:44 -05:00
Sravan Balaji
6416cc762b Reference Trajectory States & Global Variable Clean-Up
- Add generated states from part 1 as variable
  `ROB535_ControlProject_part1_state` to
  `ROB535_ControlProject_part1_Team3.mat`
- Make step size and prediction horizon global variables
- Remove references to unused global variables
- Fix reference trajectory indexing with "i" based
  on `ROB535_ControlProject_part1_state` variable
- Replace `dt` with `T_s` in `linearized_bike_model`
2021-12-09 14:27:38 -05:00
Sravan Balaji
3e873fc597 Simulation Parameters & File Loading
- Rename `xenia_sravan_nonlinearopt.m` to `part2_MPC_controller.m`
- Add commands to close figures, clear workspace, and clear terminal
- Load track information & reference trajectory
- Add simulation parameters (step size & prediction horizon)
2021-12-09 14:18:53 -05:00
Sravan Balaji
28ad7d9d21 Clean-Up & Compute Linearized Model
- Delete nonlinear optimization functions
- Move intermediate kinematic model computations to
  `bike_model_helper` function
- Compute discrete-time linearized model in `linearized_bike_model`
  function
2021-12-09 14:05:43 -05:00
Sravan Balaji
79711d6e7a Start Implementing MPC based on Xenia's work
- Copy `xenia_nonlinearopt.m` to `xenia_sravan_nonlinearopt.m`
- Clean up nonlinear bike model: add comments, whitespace,
  intermediate variables, etc.
- Add helper function `clamp` to clamp a value between min
  and max limits
2021-12-09 13:02:37 -05:00
Sravan Balaji
c3c9546342 Incorporate xenia-nonlinear branch changes
- Copy-paste `xenia_nonlinearopt.m` from xenia-nonlinear branch
2021-12-09 12:58:51 -05:00
Sravan Balaji
f7b9eb687c Extend end of part 1 trajectory so car crosses finish line
- Increase the number of steps in last sector so the
  car actually crosses the finish line and registers
  a "t_finished" in the getTrajectoryInfo output
2021-12-08 11:26:43 -05:00
Sravan Balaji
33945f6414 Re-Organize Files Again
- Deliverables folder holds final files for submission
- Experimentation holds scripts and things related to our development of
  a final solution
- Simulation holds the provided files
- Added template for part 2 submission with comments
2021-11-30 11:17:24 -05:00