move all third party stuff into third_party/ (#26853)

* mv fastcluster

* move msm_kgsl.h

* camerad include

* update path

* mv pyextra

* fix tici build

* add acados_template to release build

Co-authored-by: Comma Device <device@comma.ai>
pull/26857/merge
Adeeb Shihadeh 2 years ago committed by GitHub
parent 304796bafe
commit cd8e03d53e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .pre-commit-config.yaml
  2. 1
      Dockerfile.openpilot
  3. 1
      README.md
  4. 5
      SConstruct
  5. 2
      docs/Makefile
  6. 1
      docs/docker/Dockerfile
  7. 2
      launch_chffrplus.sh
  8. 2
      mypy.ini
  9. 11
      release/files_common
  10. 6
      selfdrive/controls/lib/lateral_mpc_lib/SConscript
  11. 2
      selfdrive/controls/lib/lateral_mpc_lib/lat_mpc.py
  12. 6
      selfdrive/controls/lib/longitudinal_mpc_lib/SConscript
  13. 2
      selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
  14. 2
      selfdrive/controls/radard.py
  15. 4
      selfdrive/controls/tests/test_clustering.py
  16. 2
      selfdrive/manager/manager.py
  17. 2
      selfdrive/modeld/thneed/thneed.h
  18. 14
      system/camerad/SConscript
  19. 0
      third_party/.gitignore
  20. 2
      third_party/SConscript
  21. 0
      third_party/acados/acados_template/.gitignore
  22. 0
      third_party/acados/acados_template/__init__.py
  23. 0
      third_party/acados/acados_template/acados_layout.json
  24. 0
      third_party/acados/acados_template/acados_model.py
  25. 0
      third_party/acados/acados_template/acados_ocp.py
  26. 0
      third_party/acados/acados_template/acados_ocp_solver.py
  27. 0
      third_party/acados/acados_template/acados_ocp_solver_pyx.pyx
  28. 0
      third_party/acados/acados_template/acados_sim.py
  29. 0
      third_party/acados/acados_template/acados_sim_layout.json
  30. 0
      third_party/acados/acados_template/acados_sim_solver.py
  31. 0
      third_party/acados/acados_template/acados_solver_common.pxd
  32. 0
      third_party/acados/acados_template/builders.py
  33. 0
      third_party/acados/acados_template/c_templates_tera/CMakeLists.in.txt
  34. 0
      third_party/acados/acados_template/c_templates_tera/CPPLINT.cfg
  35. 0
      third_party/acados/acados_template/c_templates_tera/Makefile.in
  36. 0
      third_party/acados/acados_template/c_templates_tera/acados_mex_create.in.c
  37. 0
      third_party/acados/acados_template/c_templates_tera/acados_mex_free.in.c
  38. 0
      third_party/acados/acados_template/c_templates_tera/acados_mex_set.in.c
  39. 0
      third_party/acados/acados_template/c_templates_tera/acados_mex_solve.in.c
  40. 0
      third_party/acados/acados_template/c_templates_tera/acados_sim_solver.in.c
  41. 0
      third_party/acados/acados_template/c_templates_tera/acados_sim_solver.in.h
  42. 0
      third_party/acados/acados_template/c_templates_tera/acados_sim_solver_sfun.in.c
  43. 0
      third_party/acados/acados_template/c_templates_tera/acados_solver.in.c
  44. 0
      third_party/acados/acados_template/c_templates_tera/acados_solver.in.h
  45. 0
      third_party/acados/acados_template/c_templates_tera/acados_solver.in.pxd
  46. 0
      third_party/acados/acados_template/c_templates_tera/acados_solver_sfun.in.c
  47. 0
      third_party/acados/acados_template/c_templates_tera/cost_y_0_fun.in.h
  48. 0
      third_party/acados/acados_template/c_templates_tera/cost_y_e_fun.in.h
  49. 0
      third_party/acados/acados_template/c_templates_tera/cost_y_fun.in.h
  50. 0
      third_party/acados/acados_template/c_templates_tera/external_cost.in.h
  51. 0
      third_party/acados/acados_template/c_templates_tera/external_cost_0.in.h
  52. 0
      third_party/acados/acados_template/c_templates_tera/external_cost_e.in.h
  53. 0
      third_party/acados/acados_template/c_templates_tera/h_constraint.in.h
  54. 0
      third_party/acados/acados_template/c_templates_tera/h_e_constraint.in.h
  55. 0
      third_party/acados/acados_template/c_templates_tera/main.in.c
  56. 0
      third_party/acados/acados_template/c_templates_tera/main_mex.in.c
  57. 0
      third_party/acados/acados_template/c_templates_tera/main_sim.in.c
  58. 0
      third_party/acados/acados_template/c_templates_tera/make_main_mex.in.m
  59. 0
      third_party/acados/acados_template/c_templates_tera/make_mex.in.m
  60. 0
      third_party/acados/acados_template/c_templates_tera/make_sfun.in.m
  61. 0
      third_party/acados/acados_template/c_templates_tera/make_sfun_sim.in.m
  62. 0
      third_party/acados/acados_template/c_templates_tera/mex_solver.in.m
  63. 0
      third_party/acados/acados_template/c_templates_tera/model.in.h
  64. 0
      third_party/acados/acados_template/c_templates_tera/phi_constraint.in.h
  65. 0
      third_party/acados/acados_template/c_templates_tera/phi_e_constraint.in.h
  66. 0
      third_party/acados/acados_template/generate_c_code_constraint.py
  67. 0
      third_party/acados/acados_template/generate_c_code_discrete_dynamics.py
  68. 0
      third_party/acados/acados_template/generate_c_code_explicit_ode.py
  69. 0
      third_party/acados/acados_template/generate_c_code_external_cost.py
  70. 0
      third_party/acados/acados_template/generate_c_code_gnsf.py
  71. 0
      third_party/acados/acados_template/generate_c_code_implicit_ode.py
  72. 0
      third_party/acados/acados_template/generate_c_code_nls_cost.py
  73. 0
      third_party/acados/acados_template/simulink_default_opts.json
  74. 0
      third_party/acados/acados_template/utils.py
  75. 5
      third_party/acados/build.sh
  76. 0
      third_party/cluster/.gitignore
  77. 0
      third_party/cluster/LICENSE
  78. 0
      third_party/cluster/README
  79. 0
      third_party/cluster/SConscript
  80. 0
      third_party/cluster/__init__.py
  81. 0
      third_party/cluster/fastcluster.cpp
  82. 0
      third_party/cluster/fastcluster.h
  83. 0
      third_party/cluster/fastcluster_R_dm.cpp
  84. 0
      third_party/cluster/fastcluster_dm.cpp
  85. 0
      third_party/cluster/fastcluster_py.py
  86. 0
      third_party/cluster/test.cpp
  87. 0
      third_party/linux/include/media/cam_cpas.h
  88. 0
      third_party/linux/include/media/cam_defs.h
  89. 0
      third_party/linux/include/media/cam_fd.h
  90. 0
      third_party/linux/include/media/cam_icp.h
  91. 0
      third_party/linux/include/media/cam_isp.h
  92. 0
      third_party/linux/include/media/cam_isp_ife.h
  93. 0
      third_party/linux/include/media/cam_isp_vfe.h
  94. 0
      third_party/linux/include/media/cam_jpeg.h
  95. 0
      third_party/linux/include/media/cam_lrme.h
  96. 0
      third_party/linux/include/media/cam_req_mgr.h
  97. 0
      third_party/linux/include/media/cam_sensor.h
  98. 0
      third_party/linux/include/media/cam_sensor_cmn_header.h
  99. 0
      third_party/linux/include/media/cam_sync.h
  100. 0
      third_party/linux/include/msm_cam_sensor.h
  101. Some files were not shown because too many files have changed in this diff Show More

@ -7,7 +7,7 @@ repos:
rev: v4.1.0 rev: v4.1.0
hooks: hooks:
- id: check-ast - id: check-ast
exclude: '^(pyextra)/' exclude: '^(third_party)/'
- id: check-json - id: check-json
- id: check-xml - id: check-xml
- id: check-yaml - id: check-yaml
@ -19,7 +19,7 @@ repos:
rev: v2.2.1 rev: v2.2.1
hooks: hooks:
- id: codespell - id: codespell
exclude: '^(pyextra/)|(third_party/)|(body/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(include/)|(selfdrive/ui/translations/.*.ts)|(selfdrive/controls/lib/cluster)' exclude: '^(third_party/)|(body/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(selfdrive/ui/translations/.*.ts)'
args: args:
# if you've got a short variable name that's getting flagged, add it here # if you've got a short variable name that's getting flagged, add it here
- -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup - -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup
@ -31,12 +31,12 @@ repos:
entry: mypy entry: mypy
language: system language: system
types: [python] types: [python]
exclude: '^(pyextra/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/)' exclude: '^(third_party/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/)'
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 4.0.1 rev: 4.0.1
hooks: hooks:
- id: flake8 - id: flake8
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(selfdrive/debug/)/' exclude: '^(third_party/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(selfdrive/debug/)/'
additional_dependencies: ['flake8-no-implicit-concat'] additional_dependencies: ['flake8-no-implicit-concat']
args: args:
- --indent-size=2 - --indent-size=2
@ -51,7 +51,7 @@ repos:
entry: pylint entry: pylint
language: system language: system
types: [python] types: [python]
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)' exclude: '^(third_party/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)'
args: args:
- -j0 - -j0
- -rn - -rn
@ -64,7 +64,7 @@ repos:
entry: cppcheck entry: cppcheck
language: system language: system
types: [c++] types: [c++]
exclude: '^(third_party/)|(pyextra/)|(cereal/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(tools/)|(selfdrive/modeld/thneed/debug/)|(selfdrive/modeld/test/)|(selfdrive/camerad/test/)|(installer/)' exclude: '^(third_party/)|(cereal/)|(body/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(tools/)|(selfdrive/modeld/thneed/debug/)|(selfdrive/modeld/test/)|(selfdrive/camerad/test/)|(installer/)'
args: args:
- --error-exitcode=1 - --error-exitcode=1
- --language=c++ - --language=c++

@ -10,7 +10,6 @@ WORKDIR ${OPENPILOT_PATH}
COPY SConstruct ${OPENPILOT_PATH} COPY SConstruct ${OPENPILOT_PATH}
COPY ./pyextra ${OPENPILOT_PATH}/pyextra
COPY ./third_party ${OPENPILOT_PATH}/third_party COPY ./third_party ${OPENPILOT_PATH}/third_party
COPY ./site_scons ${OPENPILOT_PATH}/site_scons COPY ./site_scons ${OPENPILOT_PATH}/site_scons
COPY ./laika ${OPENPILOT_PATH}/laika COPY ./laika ${OPENPILOT_PATH}/laika

@ -103,7 +103,6 @@ Directory Structure
├── opendbc # Files showing how to interpret data from cars ├── opendbc # Files showing how to interpret data from cars
├── panda # Code used to communicate on CAN ├── panda # Code used to communicate on CAN
├── third_party # External libraries ├── third_party # External libraries
├── pyextra # Extra python packages
└── system # Generic services └── system # Generic services
├── camerad # Driver to capture images from the camera sensors ├── camerad # Driver to capture images from the camera sensors
├── clocksd # Broadcasts current time ├── clocksd # Broadcasts current time

@ -71,10 +71,10 @@ if arch == "aarch64" and AGNOS:
lenv = { lenv = {
"PATH": os.environ['PATH'], "PATH": os.environ['PATH'],
"LD_LIBRARY_PATH": [Dir(f"#third_party/acados/{arch}/lib").abspath], "LD_LIBRARY_PATH": [Dir(f"#third_party/acados/{arch}/lib").abspath],
"PYTHONPATH": Dir("#").abspath + ":" + Dir("#pyextra/").abspath, "PYTHONPATH": Dir("#").abspath,
"ACADOS_SOURCE_DIR": Dir("#third_party/acados/include/acados").abspath, "ACADOS_SOURCE_DIR": Dir("#third_party/acados/include/acados").abspath,
"ACADOS_PYTHON_INTERFACE_PATH": Dir("#pyextra/acados_template").abspath, "ACADOS_PYTHON_INTERFACE_PATH": Dir("#third_party/acados/acados_template").abspath,
"TERA_PATH": Dir("#").abspath + f"/third_party/acados/{arch}/t_renderer" "TERA_PATH": Dir("#").abspath + f"/third_party/acados/{arch}/t_renderer"
} }
@ -422,7 +422,6 @@ SConscript(['common/transformations/SConscript'])
SConscript(['selfdrive/modeld/SConscript']) SConscript(['selfdrive/modeld/SConscript'])
SConscript(['selfdrive/controls/lib/cluster/SConscript'])
SConscript(['selfdrive/controls/lib/lateral_mpc_lib/SConscript']) SConscript(['selfdrive/controls/lib/lateral_mpc_lib/SConscript'])
SConscript(['selfdrive/controls/lib/longitudinal_mpc_lib/SConscript']) SConscript(['selfdrive/controls/lib/longitudinal_mpc_lib/SConscript'])

@ -41,7 +41,7 @@ clean:
@echo "Building rst files..." @echo "Building rst files..."
sphinx-apidoc -o "$(DOCSBUILDDIR)" ../ \ sphinx-apidoc -o "$(DOCSBUILDDIR)" ../ \
../xx ../laika_repo ../rednose_repo ../pyextra ../notebooks ../panda_jungle \ ../xx ../laika_repo ../rednose_repo ../notebooks ../panda_jungle \
../third_party \ ../third_party \
../panda/examples \ ../panda/examples \
../scripts \ ../scripts \

@ -11,7 +11,6 @@ WORKDIR ${OPENPILOT_PATH}
COPY SConstruct ${OPENPILOT_PATH} COPY SConstruct ${OPENPILOT_PATH}
COPY ./pyextra ${OPENPILOT_PATH}/pyextra
COPY ./third_party ${OPENPILOT_PATH}/third_party COPY ./third_party ${OPENPILOT_PATH}/third_party
COPY ./site_scons ${OPENPILOT_PATH}/site_scons COPY ./site_scons ${OPENPILOT_PATH}/site_scons
COPY ./laika ${OPENPILOT_PATH}/laika COPY ./laika ${OPENPILOT_PATH}/laika

@ -74,7 +74,7 @@ function launch {
# handle pythonpath # handle pythonpath
ln -sfn $(pwd) /data/pythonpath ln -sfn $(pwd) /data/pythonpath
export PYTHONPATH="$PWD:$PWD/pyextra" export PYTHONPATH="$PWD"
# hardware specific init # hardware specific init
agnos_init agnos_init

@ -2,7 +2,7 @@
python_version = 3.8 python_version = 3.8
plugins = numpy.typing.mypy_plugin plugins = numpy.typing.mypy_plugin
files = body, common, docs, scripts, selfdrive, site_scons, system, tools files = body, common, docs, scripts, selfdrive, site_scons, system, tools
exclude = ^(pyextra/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/) exclude = ^(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/)
; third-party packages ; third-party packages
ignore_missing_imports = True ignore_missing_imports = True

@ -192,8 +192,6 @@ selfdrive/controls/lib/pid.py
selfdrive/controls/lib/radar_helpers.py selfdrive/controls/lib/radar_helpers.py
selfdrive/controls/lib/vehicle_model.py selfdrive/controls/lib/vehicle_model.py
selfdrive/controls/lib/cluster/*
selfdrive/controls/lib/lateral_mpc_lib/.gitignore selfdrive/controls/lib/lateral_mpc_lib/.gitignore
selfdrive/controls/lib/longitudinal_mpc_lib/.gitignore selfdrive/controls/lib/longitudinal_mpc_lib/.gitignore
selfdrive/controls/lib/lateral_mpc_lib/* selfdrive/controls/lib/lateral_mpc_lib/*
@ -328,7 +326,6 @@ system/camerad/SConscript
system/camerad/main.cc system/camerad/main.cc
system/camerad/snapshot/* system/camerad/snapshot/*
system/camerad/include/*
system/camerad/cameras/camera_common.h system/camerad/cameras/camera_common.h
system/camerad/cameras/camera_common.cc system/camerad/cameras/camera_common.cc
system/camerad/cameras/sensor2_i2c.h system/camerad/cameras/sensor2_i2c.h
@ -384,7 +381,6 @@ selfdrive/modeld/thneed/thneed.h
selfdrive/modeld/thneed/thneed_common.cc selfdrive/modeld/thneed/thneed_common.cc
selfdrive/modeld/thneed/thneed_qcom2.cc selfdrive/modeld/thneed/thneed_qcom2.cc
selfdrive/modeld/thneed/serialize.cc selfdrive/modeld/thneed/serialize.cc
selfdrive/modeld/thneed/include/*
selfdrive/modeld/runners/snpemodel.cc selfdrive/modeld/runners/snpemodel.cc
selfdrive/modeld/runners/snpemodel.h selfdrive/modeld/runners/snpemodel.h
@ -412,8 +408,11 @@ selfdrive/assets/offroad/*
selfdrive/assets/sounds/* selfdrive/assets/sounds/*
selfdrive/assets/training/* selfdrive/assets/training/*
third_party/.gitignore
third_party/SConscript third_party/SConscript
third_party/cluster/*
third_party/linux/** third_party/linux/**
third_party/opencl/** third_party/opencl/**
@ -436,15 +435,13 @@ third_party/snpe/dsp**
third_party/acados/x86_64/** third_party/acados/x86_64/**
third_party/acados/larch64/** third_party/acados/larch64/**
third_party/acados/include/** third_party/acados/include/**
third_party/acados/acados_template/**
third_party/qt5/larch64/bin/** third_party/qt5/larch64/bin/**
scripts/update_now.sh scripts/update_now.sh
scripts/stop_updater.sh scripts/stop_updater.sh
pyextra/.gitignore
pyextra/acados_template/**
rednose/.gitignore rednose/.gitignore
rednose/** rednose/**
laika/** laika/**

@ -44,7 +44,7 @@ generated_files = [
] + build_files ] + build_files
acados_dir = '#third_party/acados' acados_dir = '#third_party/acados'
acados_templates_dir = '#pyextra/acados_template/c_templates_tera' acados_templates_dir = '#third_party/acados/acados_template/c_templates_tera'
source_list = ['lat_mpc.py', source_list = ['lat_mpc.py',
f'{acados_dir}/include/acados_c/ocp_nlp_interface.h', f'{acados_dir}/include/acados_c/ocp_nlp_interface.h',
@ -70,8 +70,8 @@ lib_solver = lenv.SharedLibrary(f"{gen}/acados_ocp_solver_lat",
LIBS=['m', 'acados', 'hpipm', 'blasfeo', 'qpOASES_e']) LIBS=['m', 'acados', 'hpipm', 'blasfeo', 'qpOASES_e'])
# generate cython stuff # generate cython stuff
acados_ocp_solver_pyx = File("#pyextra/acados_template/acados_ocp_solver_pyx.pyx") acados_ocp_solver_pyx = File("#third_party/acados/acados_template/acados_ocp_solver_pyx.pyx")
acados_ocp_solver_common = File("#pyextra/acados_template/acados_solver_common.pxd") acados_ocp_solver_common = File("#third_party/acados/acados_template/acados_solver_common.pxd")
libacados_ocp_solver_pxd = File(f'{gen}/acados_solver.pxd') libacados_ocp_solver_pxd = File(f'{gen}/acados_solver.pxd')
libacados_ocp_solver_c = File(f'{gen}/acados_ocp_solver_pyx.c') libacados_ocp_solver_c = File(f'{gen}/acados_ocp_solver_pyx.c')

@ -8,7 +8,7 @@ from common.realtime import sec_since_boot
from selfdrive.modeld.constants import T_IDXS from selfdrive.modeld.constants import T_IDXS
if __name__ == '__main__': # generating code if __name__ == '__main__': # generating code
from pyextra.acados_template import AcadosModel, AcadosOcp, AcadosOcpSolver from third_party.acados.acados_template import AcadosModel, AcadosOcp, AcadosOcpSolver
else: else:
from selfdrive.controls.lib.lateral_mpc_lib.c_generated_code.acados_ocp_solver_pyx import AcadosOcpSolverCython # pylint: disable=no-name-in-module, import-error from selfdrive.controls.lib.lateral_mpc_lib.c_generated_code.acados_ocp_solver_pyx import AcadosOcpSolverCython # pylint: disable=no-name-in-module, import-error

@ -51,7 +51,7 @@ generated_files = [
] + build_files ] + build_files
acados_dir = '#third_party/acados' acados_dir = '#third_party/acados'
acados_templates_dir = '#pyextra/acados_template/c_templates_tera' acados_templates_dir = '#third_party/acados/acados_template/c_templates_tera'
source_list = ['long_mpc.py', source_list = ['long_mpc.py',
f'{acados_dir}/include/acados_c/ocp_nlp_interface.h', f'{acados_dir}/include/acados_c/ocp_nlp_interface.h',
@ -77,8 +77,8 @@ lib_solver = lenv.SharedLibrary(f"{gen}/acados_ocp_solver_long",
LIBS=['m', 'acados', 'hpipm', 'blasfeo', 'qpOASES_e']) LIBS=['m', 'acados', 'hpipm', 'blasfeo', 'qpOASES_e'])
# generate cython stuff # generate cython stuff
acados_ocp_solver_pyx = File("#pyextra/acados_template/acados_ocp_solver_pyx.pyx") acados_ocp_solver_pyx = File("#third_party/acados/acados_template/acados_ocp_solver_pyx.pyx")
acados_ocp_solver_common = File("#pyextra/acados_template/acados_solver_common.pxd") acados_ocp_solver_common = File("#third_party/acados/acados_template/acados_solver_common.pxd")
libacados_ocp_solver_pxd = File(f'{gen}/acados_solver.pxd') libacados_ocp_solver_pxd = File(f'{gen}/acados_solver.pxd')
libacados_ocp_solver_c = File(f'{gen}/acados_ocp_solver_pyx.c') libacados_ocp_solver_c = File(f'{gen}/acados_ocp_solver_pyx.c')

@ -9,7 +9,7 @@ from selfdrive.modeld.constants import index_function
from selfdrive.controls.lib.radar_helpers import _LEAD_ACCEL_TAU from selfdrive.controls.lib.radar_helpers import _LEAD_ACCEL_TAU
if __name__ == '__main__': # generating code if __name__ == '__main__': # generating code
from pyextra.acados_template import AcadosModel, AcadosOcp, AcadosOcpSolver from third_party.acados.acados_template import AcadosModel, AcadosOcp, AcadosOcpSolver
else: else:
from selfdrive.controls.lib.longitudinal_mpc_lib.c_generated_code.acados_ocp_solver_pyx import AcadosOcpSolverCython # pylint: disable=no-name-in-module, import-error from selfdrive.controls.lib.longitudinal_mpc_lib.c_generated_code.acados_ocp_solver_pyx import AcadosOcpSolverCython # pylint: disable=no-name-in-module, import-error

@ -8,9 +8,9 @@ from cereal import car
from common.numpy_fast import interp from common.numpy_fast import interp
from common.params import Params from common.params import Params
from common.realtime import Ratekeeper, Priority, config_realtime_process from common.realtime import Ratekeeper, Priority, config_realtime_process
from selfdrive.controls.lib.cluster.fastcluster_py import cluster_points_centroid
from selfdrive.controls.lib.radar_helpers import Cluster, Track, RADAR_TO_CAMERA from selfdrive.controls.lib.radar_helpers import Cluster, Track, RADAR_TO_CAMERA
from system.swaglog import cloudlog from system.swaglog import cloudlog
from third_party.cluster.fastcluster_py import cluster_points_centroid
class KalmanParams(): class KalmanParams():

@ -7,8 +7,8 @@ from fastcluster import linkage_vector
from scipy.cluster import _hierarchy from scipy.cluster import _hierarchy
from scipy.spatial.distance import pdist from scipy.spatial.distance import pdist
from selfdrive.controls.lib.cluster.fastcluster_py import hclust, ffi from third_party.cluster.fastcluster_py import hclust, ffi
from selfdrive.controls.lib.cluster.fastcluster_py import cluster_points_centroid from third_party.cluster.fastcluster_py import cluster_points_centroid
def fcluster(Z, t, criterion='inconsistent', depth=2, R=None, monocrit=None): def fcluster(Z, t, criterion='inconsistent', depth=2, R=None, monocrit=None):

@ -23,8 +23,6 @@ from system.version import is_dirty, get_commit, get_version, get_origin, get_sh
terms_version, training_version, is_tested_branch terms_version, training_version, is_tested_branch
sys.path.append(os.path.join(BASEDIR, "pyextra"))
def manager_init() -> None: def manager_init() -> None:
# update system time from panda # update system time from panda

@ -12,7 +12,7 @@
#include <CL/cl.h> #include <CL/cl.h>
#include "selfdrive/modeld/thneed/include/msm_kgsl.h" #include "msm_kgsl.h"
using namespace std; using namespace std;

@ -2,17 +2,13 @@ Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc')
libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', 'yuv', cereal, messaging, 'zmq', 'capnp', 'kj', visionipc, gpucommon, 'atomic'] libs = ['m', 'pthread', common, 'jpeg', 'OpenCL', 'yuv', cereal, messaging, 'zmq', 'capnp', 'kj', visionipc, gpucommon, 'atomic']
cenv = env.Clone() camera_obj = env.Object(['cameras/camera_qcom2.cc', 'cameras/camera_common.cc', 'cameras/camera_util.cc'])
cenv['CPPPATH'].append('include/') env.Program('camerad', [
camera_obj = cenv.Object(['cameras/camera_qcom2.cc', 'cameras/camera_common.cc', 'cameras/camera_util.cc'])
cenv.Program('camerad', [
'main.cc', 'main.cc',
camera_obj, camera_obj,
], LIBS=libs) ], LIBS=libs)
if GetOption("test") and arch == "x86_64": if GetOption("test") and arch == "x86_64":
cenv.Program('test/ae_gray_test', [ env.Program('test/ae_gray_test',
'test/ae_gray_test.cc', ['test/ae_gray_test.cc', camera_obj],
camera_obj, LIBS=libs)
], LIBS=libs)

@ -4,3 +4,5 @@ env.Library('json11', ['json11/json11.cpp'], CCFLAGS=env['CCFLAGS'] + ['-Wno-unq
env.Append(CPPPATH=[Dir('json11')]) env.Append(CPPPATH=[Dir('json11')])
env.Library('kaitai', ['kaitai/kaitaistream.cpp'], CPPDEFINES=['KS_STR_ENCODING_NONE']) env.Library('kaitai', ['kaitai/kaitaistream.cpp'], CPPDEFINES=['KS_STR_ENCODING_NONE'])
SConscript(['cluster/SConscript'])

@ -43,11 +43,10 @@ mkdir -p $INSTALL_DIR
rm $DIR/acados_repo/lib/*.json rm $DIR/acados_repo/lib/*.json
rm -rf $DIR/include rm -rf $DIR/include $DIR/acados_template
cp -r $DIR/acados_repo/include $DIR cp -r $DIR/acados_repo/include $DIR
cp -r $DIR/acados_repo/lib $INSTALL_DIR cp -r $DIR/acados_repo/lib $INSTALL_DIR
rm -rf $DIR/../../pyextra/acados_template cp -r $DIR/acados_repo/interfaces/acados_template/acados_template $DIR/
cp -r $DIR/acados_repo/interfaces/acados_template/acados_template $DIR/../../pyextra
#pip3 install -e $DIR/acados/interfaces/acados_template #pip3 install -e $DIR/acados/interfaces/acados_template
# build tera # build tera

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save