pull/29498/head
Adeeb Shihadeh 2 years ago
parent 6dc2e6e005
commit 72905fb18f
  1. 1
      Dockerfile.openpilot
  2. 2
      common/transformations/camera.py
  3. 2
      common/transformations/tests/test_coordinates.py
  4. 3
      release/files_common
  5. 2
      selfdrive/controls/lib/lateral_mpc_lib/lat_mpc.py
  6. 2
      selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py
  7. 2
      selfdrive/manager/manager.py
  8. 2
      selfdrive/manager/process.py
  9. 2
      selfdrive/manager/test/test_manager.py
  10. 6
      selfdrive/test/process_replay/README.md
  11. 2
      selfdrive/test/process_replay/test_fuzzy.py
  12. 2
      selfdrive/tombstoned.py
  13. 2
      system/hardware/tici/agnos.py
  14. 2
      system/hardware/tici/tests/compare_casync_manifest.py
  15. 2
      system/hardware/tici/tests/test_casync.py
  16. 4
      system/loggerd/tests/loggerd_tests_common.py
  17. 2
      system/loggerd/tests/test_deleter.py
  18. 2
      tools/gpstest/test_gps.py
  19. 2
      tools/gpstest/test_laikad.py
  20. 3
      tools/sim/Dockerfile.sim

@ -10,6 +10,7 @@ WORKDIR ${OPENPILOT_PATH}
COPY SConstruct ${OPENPILOT_PATH} COPY SConstruct ${OPENPILOT_PATH}
COPY ./openpilot ${OPENPILOT_PATH}/openpilot
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

@ -1,6 +1,6 @@
import numpy as np import numpy as np
import common.transformations.orientation as orient import openpilot.common.transformations.orientation as orient
## -- hardcoded hardware params -- ## -- hardcoded hardware params --
eon_f_focal_length = 910.0 eon_f_focal_length = 910.0

@ -3,7 +3,7 @@
import numpy as np import numpy as np
import unittest import unittest
import common.transformations.coordinates as coord import openpilot.common.transformations.coordinates as coord
geodetic_positions = np.array([[37.7610403, -122.4778699, 115], geodetic_positions = np.array([[37.7610403, -122.4778699, 115],
[27.4840915, -68.5867592, 2380], [27.4840915, -68.5867592, 2380],

@ -15,6 +15,9 @@ docs/INTEGRATION.md
docs/LIMITATIONS.md docs/LIMITATIONS.md
site_scons/site_tools/cython.py site_scons/site_tools/cython.py
openpilot/__init__.py
openpilot/**
common/.gitignore common/.gitignore
common/__init__.py common/__init__.py
common/conversions.py common/conversions.py

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

@ -11,7 +11,7 @@ from openpilot.selfdrive.car.interfaces import ACCEL_MIN
from openpilot.selfdrive.controls.radard import _LEAD_ACCEL_TAU from openpilot.selfdrive.controls.radard import _LEAD_ACCEL_TAU
if __name__ == '__main__': # generating code if __name__ == '__main__': # generating code
from third_party.acados.acados_template import AcadosModel, AcadosOcp, AcadosOcpSolver from openpilot.third_party.acados.acados_template import AcadosModel, AcadosOcp, AcadosOcpSolver
else: else:
from openpilot.selfdrive.controls.lib.longitudinal_mpc_lib.c_generated_code.acados_ocp_solver_pyx import AcadosOcpSolverCython from openpilot.selfdrive.controls.lib.longitudinal_mpc_lib.c_generated_code.acados_ocp_solver_pyx import AcadosOcpSolverCython

@ -9,7 +9,7 @@ from typing import List, Tuple, Union
from cereal import log from cereal import log
import cereal.messaging as messaging import cereal.messaging as messaging
import selfdrive.sentry as sentry import openpilot.selfdrive.sentry as sentry
from openpilot.common.basedir import BASEDIR from openpilot.common.basedir import BASEDIR
from openpilot.common.params import Params, ParamKeyType from openpilot.common.params import Params, ParamKeyType
from openpilot.common.text_window import TextWindow from openpilot.common.text_window import TextWindow

@ -11,7 +11,7 @@ from multiprocessing import Process
from setproctitle import setproctitle # pylint: disable=no-name-in-module from setproctitle import setproctitle # pylint: disable=no-name-in-module
import cereal.messaging as messaging import cereal.messaging as messaging
import selfdrive.sentry as sentry import openpilot.selfdrive.sentry as sentry
from cereal import car from cereal import car
from openpilot.common.basedir import BASEDIR from openpilot.common.basedir import BASEDIR
from openpilot.common.params import Params from openpilot.common.params import Params

@ -6,7 +6,7 @@ import unittest
from cereal import car from cereal import car
from openpilot.common.params import Params from openpilot.common.params import Params
import selfdrive.manager.manager as manager import openpilot.selfdrive.manager.manager as manager
from openpilot.selfdrive.manager.process import ensure_running from openpilot.selfdrive.manager.process import ensure_running
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.selfdrive.manager.process_config import managed_processes
from openpilot.system.hardware import HARDWARE from openpilot.system.hardware import HARDWARE

@ -62,8 +62,8 @@ def replay_process(
Example usage: Example usage:
```py ```py
from selfdrive.test.process_replay import replay_process_with_name from openpilot.selfdrive.test.process_replay import replay_process_with_name
from tools.lib.logreader import LogReader from openpilot.tools.lib.logreader import LogReader
lr = LogReader(...) lr = LogReader(...)
@ -91,7 +91,7 @@ Supported processes:
Certain processes may require an initial state, which is usually supplied within `Params` and persisting from segment to segment (e.g CalibrationParams, LiveParameters). The `custom_params` is dictionary used to prepopulate `Params` with arbitrary values. The `get_custom_params_from_lr` helper is provided to fetch meaningful values from log files. Certain processes may require an initial state, which is usually supplied within `Params` and persisting from segment to segment (e.g CalibrationParams, LiveParameters). The `custom_params` is dictionary used to prepopulate `Params` with arbitrary values. The `get_custom_params_from_lr` helper is provided to fetch meaningful values from log files.
```py ```py
from selfdrive.test.process_replay import get_custom_params_from_lr from openpilot.selfdrive.test.process_replay import get_custom_params_from_lr
previous_segment_lr = LogReader(...) previous_segment_lr = LogReader(...)
current_segment_lr = LogReader(...) current_segment_lr = LogReader(...)

@ -8,7 +8,7 @@ import unittest
from cereal import log from cereal import log
from openpilot.selfdrive.car.toyota.values import CAR as TOYOTA from openpilot.selfdrive.car.toyota.values import CAR as TOYOTA
from openpilot.selfdrive.test.fuzzy_generation import FuzzyGenerator from openpilot.selfdrive.test.fuzzy_generation import FuzzyGenerator
import selfdrive.test.process_replay.process_replay as pr import openpilot.selfdrive.test.process_replay.process_replay as pr
# These processes currently fail because of unrealistic data breaking assumptions # These processes currently fail because of unrealistic data breaking assumptions
# that openpilot makes causing error with NaN, inf, int size, array indexing ... # that openpilot makes causing error with NaN, inf, int size, array indexing ...

@ -11,7 +11,7 @@ from typing import NoReturn
from openpilot.common.file_helpers import mkdirs_exists_ok from openpilot.common.file_helpers import mkdirs_exists_ok
from openpilot.system.loggerd.config import ROOT from openpilot.system.loggerd.config import ROOT
import selfdrive.sentry as sentry import openpilot.selfdrive.sentry as sentry
from openpilot.system.swaglog import cloudlog from openpilot.system.swaglog import cloudlog
from openpilot.system.version import get_commit from openpilot.system.version import get_commit

@ -10,7 +10,7 @@ from typing import Dict, Generator, List, Tuple, Union
import requests import requests
import system.hardware.tici.casync as casync import openpilot.system.hardware.tici.casync as casync
SPARSE_CHUNK_FMT = struct.Struct('H2xI4x') SPARSE_CHUNK_FMT = struct.Struct('H2xI4x')
CAIBX_URL = "https://commadist.azureedge.net/agnosupdate/" CAIBX_URL = "https://commadist.azureedge.net/agnosupdate/"

@ -8,7 +8,7 @@ from typing import Dict, List
import requests import requests
from tqdm import tqdm from tqdm import tqdm
import system.hardware.tici.casync as casync import openpilot.system.hardware.tici.casync as casync
def get_chunk_download_size(chunk): def get_chunk_download_size(chunk):

@ -4,7 +4,7 @@ import unittest
import tempfile import tempfile
import subprocess import subprocess
import system.hardware.tici.casync as casync import openpilot.system.hardware.tici.casync as casync
# dd if=/dev/zero of=/tmp/img.raw bs=1M count=2 # dd if=/dev/zero of=/tmp/img.raw bs=1M count=2
# sudo losetup -f /tmp/img.raw # sudo losetup -f /tmp/img.raw

@ -7,8 +7,8 @@ import unittest
from pathlib import Path from pathlib import Path
from typing import Optional from typing import Optional
import system.loggerd.deleter as deleter import openpilot.system.loggerd.deleter as deleter
import system.loggerd.uploader as uploader import openpilot.system.loggerd.uploader as uploader
from openpilot.system.loggerd.xattr_cache import setxattr from openpilot.system.loggerd.xattr_cache import setxattr

@ -6,7 +6,7 @@ from collections import namedtuple
from pathlib import Path from pathlib import Path
from typing import Sequence from typing import Sequence
import system.loggerd.deleter as deleter import openpilot.system.loggerd.deleter as deleter
from openpilot.common.timeout import Timeout, TimeoutException from openpilot.common.timeout import Timeout, TimeoutException
from openpilot.system.loggerd.tests.loggerd_tests_common import UploaderTestCase from openpilot.system.loggerd.tests.loggerd_tests_common import UploaderTestCase

@ -5,7 +5,7 @@ import struct
from openpilot.common.params import Params from openpilot.common.params import Params
import cereal.messaging as messaging import cereal.messaging as messaging
import system.sensord.pigeond as pd import openpilot.system.sensord.pigeond as pd
from openpilot.system.hardware import TICI from openpilot.system.hardware import TICI
from openpilot.selfdrive.test.helpers import with_processes from openpilot.selfdrive.test.helpers import with_processes

@ -4,7 +4,7 @@ import time
import unittest import unittest
import cereal.messaging as messaging import cereal.messaging as messaging
import system.sensord.pigeond as pd import openpilot.system.sensord.pigeond as pd
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.system.hardware import TICI from openpilot.system.hardware import TICI

@ -14,6 +14,7 @@ RUN mkdir -p $HOME/openpilot
COPY SConstruct $HOME/openpilot/ COPY SConstruct $HOME/openpilot/
COPY ./openpilot $HOME/openpilot/openpilot
COPY ./body $HOME/openpilot/body COPY ./body $HOME/openpilot/body
COPY ./third_party $HOME/openpilot/third_party COPY ./third_party $HOME/openpilot/third_party
COPY ./site_scons $HOME/openpilot/site_scons COPY ./site_scons $HOME/openpilot/site_scons
@ -30,4 +31,4 @@ COPY ./tools $HOME/openpilot/tools
WORKDIR $HOME/openpilot WORKDIR $HOME/openpilot
RUN scons --cache-readonly -j12 RUN scons --cache-readonly -j12
RUN python -c "from selfdrive.test.helpers import set_params_enabled; set_params_enabled()" RUN python -c "from openpilot.selfdrive.test.helpers import set_params_enabled; set_params_enabled()"

Loading…
Cancel
Save