locationd and paramsd using cython version of ekfsym (#20610)
* Locationd live_kf using c++ kalman filter
* use both cpp and python live_kf to compare
* Locationd using ekfsym cpp
* Paramsd using c++ ekf_sym
* Other building method
* Cleanup
* cleanup
* Single sconscript for rednose and locationd/models
* CI
* CI
* CI fix
* renamed scons config
* Fix lib loading
* bump rednose
* update cpu usage test
old-commit-hash: e6a8157916
commatwo_master
parent
48af882988
commit
ff9840c53f
9 changed files with 60 additions and 71 deletions
@ -1 +1 @@ |
||||
Subproject commit 946a0345740abe46241b2168262c01d7239d642e |
||||
Subproject commit fbf65ab4aeec9a6891eaf22ddf430e592ab67aa4 |
@ -1,37 +0,0 @@ |
||||
Import('env', 'arch') |
||||
|
||||
templates = Glob('#rednose/templates/*') |
||||
|
||||
sympy_helpers = "#rednose/helpers/sympy_helpers.py" |
||||
ekf_sym = "#rednose/helpers/ekf_sym.py" |
||||
|
||||
to_build = { |
||||
'live': ('live_kf.py', 'generated'), |
||||
'car': ('car_kf.py', 'generated'), |
||||
} |
||||
|
||||
if arch != "aarch64": |
||||
to_build.update({ |
||||
'gnss': ('gnss_kf.py', 'generated'), |
||||
'loc_4': ('loc_kf.py', 'generated'), |
||||
'pos_computer_4': ('#rednose/helpers/lst_sq_computer.py', 'generated'), |
||||
'pos_computer_5': ('#rednose/helpers/lst_sq_computer.py', 'generated'), |
||||
'feature_handler_5': ('#rednose/helpers/feature_handler.py', 'generated'), |
||||
'lane': ('#xx/pipeline/lib/ekf/lane_kf.py', 'generated'), |
||||
}) |
||||
|
||||
found = {} |
||||
|
||||
for target, (command, generated_folder) in to_build.items(): |
||||
if File(command).exists(): |
||||
found[target] = (command, generated_folder) |
||||
|
||||
for target, (command, generated_folder) in found.items(): |
||||
target_files = File([f'{generated_folder}/{target}.cpp', f'{generated_folder}/{target}.h']) |
||||
command_file = File(command) |
||||
|
||||
env.Command(target_files, |
||||
[templates, command_file, sympy_helpers, ekf_sym], |
||||
command_file.get_abspath() + " " + target + " " + Dir(generated_folder).get_abspath()) |
||||
|
||||
env.SharedLibrary(f'{generated_folder}/' + target, target_files[0]) |
Loading…
Reference in new issue