williamedwards / autompc

Automatic Tuning for Data-driven Model Predictive Control
BSD 3-Clause "New" or "Revised" License
54 stars 13 forks source link

Feature Request: Access to Optimizer Intermediate Trajectories #7

Open ttchalakov opened 2 years ago

ttchalakov commented 2 years ago

The current controller design doesn't allow the user to get the intermediate trajectory optimization for a chosen optimizer in a controller (LQR, iLQR, MPPI, etc.) after running the controller. I suggest that the internal trajectory optimization be saved for each iteration of the controller and then made accessible as part of the controller class through a getter function like internal_traj_optim() or something of the same idea. It would also be most convenient for the user, if possible, to get the optimized trajectory as a trajectory object like for iLQR. LQR will not provide a trajectory object and MPPI could provide a list of trajectories.

williamedwards commented 2 years ago

e8ada347451b9b243e18b1a259b6751330e8a3dc

Added API and implementation for iLQR. Still need to add for other optimizers.