-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MPC warm-starting and acados implementation (#161)
* add initial guess for mpc * add mpc acados ctrl * add mpc acados examples * minor fix of timing deco and mpc reset * update acados related info; add timing in linear mpc * update envs observation space to avoid ill-conditioned acados ocp * add open-loop sol plotting * linting and clean-up * update linted README * address comments in PR: fix initial guess; reduce redundency; fix obs limit order * update mpc_acados failure handling * update mpc progress * add warm-starting and add mpc acados add mpc acados examples minor fix of timing deco and mpc reset update acados related info; add timing in linear mpc update envs observation space to avoid ill-conditioned acados ocp add open-loop sol plotting linting and clean-up update linted README address comments in PR: fix initial guess; reduce redundency; fix obs limit order update mpc_acados failure handling update mpc progress * Revert "update mpc_acados failure handling" This reverts commit 6104a5d. * address PR comments * fix action ref in mpc cost * update docstrings * update env vel bound and gitignore * update acados constraint expression type and doc string
- Loading branch information
1 parent
0cca9d8
commit 0d91ee2
Showing
19 changed files
with
861 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,3 +147,8 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
|
||
# acados | ||
acados_ocp_nlp.json | ||
*c_generated_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
examples/mpc/config_overrides/cartpole/mpc_acados_cartpole_stabilization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
algo: mpc_acados | ||
algo_config: | ||
horizon: 20 | ||
r_mpc: | ||
- 0.1 | ||
q_mpc: | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
# Prior info | ||
prior_info: | ||
prior_prop: null | ||
randomize_prior_prop: False | ||
prior_prop_rand_info: null | ||
warmstart: True | ||
use_RTI: False |
17 changes: 17 additions & 0 deletions
17
examples/mpc/config_overrides/cartpole/mpc_acados_cartpole_tracking.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
algo: mpc_acados | ||
algo_config: | ||
horizon: 20 | ||
r_mpc: | ||
- 0.1 | ||
q_mpc: | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
# Prior info | ||
prior_info: | ||
prior_prop: null | ||
randomize_prior_prop: False | ||
prior_prop_rand_info: null | ||
warmstart: True | ||
use_RTI: False |
20 changes: 20 additions & 0 deletions
20
examples/mpc/config_overrides/quadrotor_2D/mpc_acados_quadrotor_2D_stabilization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
algo: mpc_acados | ||
algo_config: | ||
horizon: 20 | ||
r_mpc: | ||
- 0.1 | ||
- 0.1 | ||
q_mpc: | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
# Prior info | ||
prior_info: | ||
prior_prop: null | ||
randomize_prior_prop: False | ||
prior_prop_rand_info: null | ||
warmstart: True | ||
use_RTI: False |
20 changes: 20 additions & 0 deletions
20
examples/mpc/config_overrides/quadrotor_2D/mpc_acados_quadrotor_2D_tracking.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
algo: mpc_acados | ||
algo_config: | ||
horizon: 20 | ||
r_mpc: | ||
- 0.1 | ||
- 0.1 | ||
q_mpc: | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
# Prior info | ||
prior_info: | ||
prior_prop: null | ||
randomize_prior_prop: False | ||
prior_prop_rand_info: null | ||
warmstart: True | ||
use_RTI: False |
28 changes: 28 additions & 0 deletions
28
examples/mpc/config_overrides/quadrotor_3D/mpc_acados_quadrotor_3D_stabilization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
algo: mpc_acados | ||
algo_config: | ||
horizon: 20 | ||
r_mpc: | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
q_mpc: | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
# Prior info | ||
prior_info: | ||
prior_prop: null | ||
randomize_prior_prop: False | ||
prior_prop_rand_info: null | ||
warmstart: True | ||
use_RTI: False |
28 changes: 28 additions & 0 deletions
28
examples/mpc/config_overrides/quadrotor_3D/mpc_acados_quadrotor_3D_tracking.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
algo: mpc_acados | ||
algo_config: | ||
horizon: 20 | ||
r_mpc: | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
q_mpc: | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
- 5.0 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
- 0.1 | ||
# Prior info | ||
prior_info: | ||
prior_prop: null | ||
randomize_prior_prop: False | ||
prior_prop_rand_info: null | ||
warmstart: True | ||
use_RTI: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.