HaraldSchafer
fb07437819
Increase low speed jerk cost ( #26008 )
...
* Increase low speed jerk cost
* Update planner weight
* Update ref_commit
* Update lateral_planner.py
* cleanup and refactor
* Update ref_commit
3 years ago
HaraldSchafer
cb0b7375b7
Rocket Launcher Model ( #25963 )
...
* 1456d261-d232-4654-8885-4d9fde883894/440 6b7d7cec-ead8-40f3-86cc-86d52c9b03fe/300
* compute only 9 tokens: 1456d261-d232-4654-8885-4d9fde883894/440 6b7d7cec-ead8-40f3-86cc-86d52c9b03fe/300
* tinygrad: cleanup gather
* 1456d261-d232-4654-8885-4d9fde883894/440 6b7d7cec-ead8-40f3-86cc-86d52c9b03fe/700
* empty commit for tests
* bump tinygrad
* dont use tinygrad matmul for now
* bump tinygrad
* 1456d261-d232-4654-8885-4d9fde883894/440 e63ab895-2222-4abd-a9a5-af86bb70e260/700
* float16 1456d261-d232-4654-8885-4d9fde883894/440 e63ab895-2222-4abd-a9a5-af86bb70e260/700
* increase steer rate cost
* Revert "increase steer rate cost"
This reverts commit 74ce9ab9be7ef17ecfec931f96851b12f37f2336.
* fork tinygrad
* empty commit for tests
* basics
* Kinda works
* new lat
* new tuning
* Move LATMPCN so scons compiles
* Update long weights
* Add tinygrad optim
* Update model ref
* update weights
* Update ref
* Try
* Error message for field ignore
* update model regf
* ref commit
* Fix onnx test
Co-authored-by: Yassine Yousfi <yyousfi1@binghamton.edu>
3 years ago
HaraldSchafer
041458f632
Falcon Punch Model: turn cutting improvements ( #25413 )
...
* simplified change to mpc dynamics
* add jerk pts
* increase jerk cost
* increase jerk pts multipler to master value
* Add final commit
* 1456d261-d232-4654-8885-4d9fde883894/440 ac1a6744-85b0-4ec6-8ba7-608d0717b8f1/750
* some copies are useful
* update model replay ref
* less frames in model replay onnx cpu
* 1456d261-d232-4654-8885-4d9fde883894/440 264b67f5-3f52-4b58-b11f-58dd8aaf08bf/950
* 1456d261-d232-4654-8885-4d9fde883894/440 236fc556-fba3-4255-8ccf-684b22637160/950
* c9d10c64-bea4-41ec-8ca3-d8c886fda172/440 26d73dd2-862a-44ae-bbdd-32cc4f397ad7/900
* Fix couple tests
* Update ref
* Unused for now
* Add lateral factor comment
* Unused variable
Co-authored-by: nuwandavek <vivekaithal44@gmail.com>
Co-authored-by: Bruce Wayne <yassine@comma.ai>
Co-authored-by: Yassine Yousfi <yyousfi1@binghamton.edu>
Co-authored-by: Bruce Wayne <batman@gpu06.internal>
3 years ago
Jonathan Frey
d653dd843a
Upstreamed and update acados ( #23927 )
...
* change acados version to finalized PR https://github.com/acados/acados/pull/791
* acados: update include and x86_64 build
* acados: update pyextra
* adapt mpc files to updated acados
* acados buid: clear acados_template and include dir before updating
* update acados again
* acados MPC: only generate solver, building is done via scons
* update acados to latest acados/master
* c3 libs
* c2 libs
* acados scons files: add acados build script as a dependency
* acados scons files: add libacados.so and ocp_nlp_interface.h, build script not in files_common
* update acados
* adapts long & lat MPC file
* update acados reference commit to acados/master
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Jonathan Frey
d09dffb7cd
Cython acados and minor ( #23835 )
...
* acados_ocp_solver_pyx.pyx: implement get_stats for timings and ints
* long_mpc: use acados timers
* acados_ocp_solver_pyx.pyx: fix dynamics_get
* acados_ocp_solver_pyx.pyx: get statistics
* use acados_ocp_solver_pyx.pyx from commaai/cython2 branch
* acados_ocp_solver_pyx.pyx: implement store_iterate
* acados_ocp_solver_pyx.pyx: implement get_residuals
* acados_ocp_solver_pyx.pyx: fix set() for empty fields
* acados_ocp_solver_pyx.pyx: load_iterate
* cython acados: add print_statistics
* test_following_distance: fix typo
* test_longitudinal: unique names for test maneuvers
* longitudinal MPC: comments for evaluation
* longitudinal MPC: add comments to eval acados residuals
* long_mpc: use qp_solver_cond_N = 1
* long MPC: comments, simplify set_cur_state
* update acados version in build script
* longitudinal mpc: weigh a_change in 1 place only
* update ref
* Update ref
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
3 years ago
ClockeNessMnstr
f0b3593682
cleanup import chaining of T_IDXS ( #23806 )
3 years ago
Jonathan Frey
0681474840
work on acados lateral MPC ( #23558 )
...
* lat_mpc: make v_ego, rotation_radius parameters instead of states
* lat_mpc: remove rotation_radius argument, since it is part of the parameters
* lat_mpc: use qp_solver_cond_N = 1
slightly faster and in line with case study in Fig. 2/ 3 in Frison2016 - https://cdn.syscop.de/publications/Frison2016.pdf
An Efficient Implementation of Partial Condensing for Nonlinear Model Predictive Control
* adapt test_lateral_mpc to formulation with parameters
* lat_mpc: set parameters in reset() and copy values
* acados_ocp_solver_pyx: make options_set useable
* update ref
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Willem Melching
f76328b426
Log MPC solver time ( #23566 )
...
* add solve time to plan output
* add to process replay ignore list
* print in CI
3 years ago
Joost Wooning
89d0a52d16
cython wrapper for acados ( #22784 )
...
* cython wrapper for acados
* fix building
* sconscript cleanup
* no cython numpy
* cleanup
* upgrade build script
* try without slices
* new acados commit
* c3 update acados libs
* c2 libs
* make faster
* undo profiling
* fix build
* somewhat faster
* tryout cost_set_slice
* Revert "tryout cost_set_slice"
This reverts commit d358d93a13
.
* cleanup
* undo t_renderer change
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
HaraldSchafer
35d6ed1014
ACADOS: partial condensing ( #22830 )
...
* partial condense
* new refs
* new ref
* newerest refs
4 years ago
HaraldSchafer
66c275b711
Acados long fast ( #22233 )
...
* acados long
* new ref
* SPPEEEEEDDD
* less iterations
* this shouldn't be so high
* reset only essentials
* minimal reset for long mpc
* more cpu usage plannerd
* Use lead mpc even when going to crash
* reset to current state
* Use open loop speed for lead mpc
* 1 iteration is too little for cruise mpc
* add whitespace
* update refs
4 years ago
HaraldSchafer
96a8f8a831
Less QP iterations for lateral acados ( #22231 )
...
* Less QP iterations for lateral acados
* update ref
4 years ago
HaraldSchafer
7081ab4fb7
Port lateral planning to ACADOS ( #22080 )
...
* lateral acados
* looks good!
* add another solve, needed for init somehow
* use copy
* init correctly
* cleanup sconstruct
* Update files_common
* update cpu usage
* reset when invalid
* fix cpu usage
* cost_set doesnt leak
* new ref
* non leaky reset
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
4 years ago