Commit Graph

27 Commits

Author SHA1 Message Date
Jonathan Frey
059dbf57e7 longitudinal MPC: use reset() function instead of recreating the solver in (#24091)
* scons: add acados_template as dependency for lat and long mpc

* long MPC: use acados reset instead of recreating the solver

* long MPC: print timings and reset commented

* update acados x86_64

* update acados include folder

* update acados Python interface

* update acados reference commit to latest acados/master

* update x86 libs

* update comma two

* update acados again with commit 8ea8827fafb1b23b4c7da1c4cf650de1cbd73584

* update comma two

* update comma three

* update x86

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a9bac5acf82bcd9d3e161f829c7d446fdbdb7d2f
2022-04-01 15:39:41 -07:00
Jonathan Frey
3bd71500bd 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>
old-commit-hash: d653dd843adbd994fce6cf4088d9cf10fdbe0c52
2022-03-11 11:49:27 +01:00
Jonathan Frey
baab5d7a7b 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>
old-commit-hash: d09dffb7cd99aefb7e3c251265f2cfd9ae9e72f8
2022-02-25 14:16:44 -08:00
Jonathan Frey
6f4c93238f 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>
old-commit-hash: 06814748409bd8538edca1b2bcef66f15e1c3ab6
2022-01-18 09:49:48 -08:00
Joost Wooning
9042f18afd 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 d358d93a133270e4edab9e7c07ffb6f577c52bd6.

* cleanup

* undo t_renderer change

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 89d0a52d16872c403c69426ab32e5788a41ee2ec
2021-11-12 17:09:08 +01:00
HaraldSchafer
2d4b64ed04 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
old-commit-hash: 66c275b71128355d634d4daf0f5c18891d4fb047
2021-09-15 19:00:12 -07:00
Harald Schafer
335089db07 fix more acados leaks
old-commit-hash: 32db9184d4cea612a12a0ab8f1948336a390c46b
2021-09-13 17:51:15 -07:00
Harald Schafer
06c018f5bf acados compiled to pyextra
old-commit-hash: de478b75fb93fc37cb414bcfe2af5fd9c6ac7364
2021-09-13 16:32:06 -07:00
Harald Schafer
ab2f65e485 fix more acados mem leaks
old-commit-hash: d774087408e46149b699dbade379507d49050fa5
2021-09-13 16:25:40 -07:00
Adeeb Shihadeh
db3ad9b658 update acados (#22202)
* update acados

* cleanup
old-commit-hash: 63453c951e7d125a49d8c6dc839d8f2849599b25
2021-09-11 21:50:16 -07:00
HaraldSchafer
b40942ff12 Libraries for acados (#22079)
* libs

* build specific commit
old-commit-hash: 22c8564413149349ec16c0ba548601fb126af6e5
2021-08-30 18:43:33 -07:00
Adeeb Shihadeh
0b401cd9e0 support acados on device (#21409)
* build tera

* larch64

* x86

* aarch64 libs

* aarch tera

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f85226412d10b80194c121f514c58a907a954973
2021-06-28 00:38:07 -07:00
Adeeb Shihadeh
03405b81fd acados support (#21319)
* acados support

* add pyextra to python path

* x86 libs
old-commit-hash: 6e4c2aa4d286bb43f091ad13820f564f70e4c0d7
2021-06-17 16:40:00 -07:00
Adeeb Shihadeh
58c4798332 Remove logentries from pyextra (#1721)
* remove logentries from pyextra

* update release files

* gitignore
old-commit-hash: bbb6fa1172b11cb890e60c7c7c5db19d5fb220c5
2020-06-18 11:48:28 -07:00
Willem Melching
0e90443a1b remove overpy from pyextra
old-commit-hash: 7b0977dcfd0e39768ac6ad096b3a32b9ec366fa5
2020-04-24 14:27:05 -07:00
George Hotz
db5942333a merge in pyextra
old-commit-hash: 3fe9bbe66577a3307053c505f18c6a71a6c71a9c
2020-01-17 10:08:05 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3878e1d8c8a9db600dd44d188f02c87
2020-01-17 10:02:52 -08:00
Vehicle Researcher
5446b30185 Merge pyextra subtree
old-commit-hash: ae44a57565d5eac6d876b62bd40474f1263e2829
2019-06-28 21:09:14 +00:00
Vehicle Researcher
86fb001d62 Merge pyextra subtree
old-commit-hash: 59bd6b88373806baff545a003c1f42b9e41d0ff9
2019-06-06 04:31:54 +00:00
Vehicle Researcher
1bbcc51a36 Merge pyextra subtree
old-commit-hash: be5c2aef3a043c5e84e1286cac8ceb750bdd176b
2019-03-26 01:03:51 -07:00
Vehicle Researcher
6b0270ba63 Merge pyextra subtree
old-commit-hash: 573a6915fcdce1eee7c1c14422a4a5a490881083
2018-12-10 14:06:10 -08:00
Vehicle Researcher
29685c91e8 Merge pyextra subtree
old-commit-hash: 92c596544dd833aeb97a324eb77c465c323e2a9a
2018-11-17 01:58:38 -08:00
Vehicle Researcher
a481644949 Merge pyextra subtree
old-commit-hash: 28e3543ec44a15436f235fab1e934242e97cc330
2018-05-23 03:55:35 +00:00
Vehicle Researcher
680ec1792b Merge commit '10c2ef6bfbe0a64c0ac9e499d0dbbbdbffac4fd6' as 'pyextra'
old-commit-hash: c7b5fb9116f4eda9676ec944842ad08fe42d76b2
2017-12-23 17:10:45 -08:00
Vehicle Researcher
3468128001 remove submodules
old-commit-hash: a34c87ab46052b68ea33fe87a38fad85dec8c5d1
2017-12-23 17:06:56 -08:00
Vehicle Researcher
2c0cc6103a openpilot v0.3.7 release
old-commit-hash: daf54ad54d6356d35061ea2864d6397dc6184f3f
2017-09-30 19:05:03 -07:00
Vehicle Researcher
46e0ee7750 openpilot v0.3.4 release
old-commit-hash: 6f46f988d9d89b5bd18e38c5e5509b5c252ae2c1
2017-07-28 03:23:57 -07:00