manager: move to system/ (#32538)

* manager: move to system/

* one more
pull/32539/head
Adeeb Shihadeh 11 months ago committed by GitHub
parent 73b02f2cda
commit accdade4cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/selfdrive_tests.yaml
  2. 20
      Jenkinsfile
  3. 2
      conftest.py
  4. 2
      launch_chffrplus.sh
  5. 2
      release/build_release.sh
  6. 10
      release/files_common
  7. 2
      selfdrive/boardd/tests/test_pandad.py
  8. 2
      selfdrive/controls/tests/test_startup.py
  9. 2
      selfdrive/debug/cpu_usage_stat.py
  10. 2
      selfdrive/debug/cycle_alerts.py
  11. 2
      selfdrive/debug/uiview.py
  12. 2
      selfdrive/locationd/test/test_locationd.py
  13. 2
      selfdrive/modeld/tests/test_modeld.py
  14. 2
      selfdrive/modeld/tests/timing/benchmark.py
  15. 2
      selfdrive/navd/tests/test_navd.py
  16. 2
      selfdrive/test/helpers.py
  17. 2
      selfdrive/test/process_replay/migration.py
  18. 2
      selfdrive/test/process_replay/process_replay.py
  19. 2
      selfdrive/test/test_onroad.py
  20. 2
      selfdrive/test/test_time_to_onroad.py
  21. 2
      system/athena/manage_athenad.py
  22. 2
      system/athena/tests/test_athenad_ping.py
  23. 2
      system/camerad/snapshot/snapshot.py
  24. 2
      system/camerad/test/test_camerad.py
  25. 4
      system/hardware/tici/tests/test_power_draw.py
  26. 2
      system/loggerd/tests/test_encoder.py
  27. 2
      system/loggerd/tests/test_loggerd.py
  28. 0
      system/manager/__init__.py
  29. 0
      system/manager/build.py
  30. 0
      system/manager/helpers.py
  31. 6
      system/manager/manager.py
  32. 0
      system/manager/process.py
  33. 2
      system/manager/process_config.py
  34. 0
      system/manager/test/__init__.py
  35. 6
      system/manager/test/test_manager.py
  36. 2
      system/qcomgpsd/tests/test_qcomgpsd.py
  37. 2
      system/sensord/tests/test_sensord.py
  38. 2
      system/sensord/tests/ttff_test.py
  39. 2
      system/tests/test_logmessaged.py
  40. 2
      system/ubloxd/tests/test_pigeond.py
  41. 2
      system/updated/tests/test_base.py
  42. 2
      tools/sim/launch_openpilot.sh
  43. 2
      tools/webcam/README.md

@ -47,7 +47,7 @@ jobs:
timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 10 || 30) }} # allow more time when we missed the scons cache timeout-minutes: ${{ ((steps.restore-scons-cache.outputs.cache-hit == 'true') && 10 || 30) }} # allow more time when we missed the scons cache
run: | run: |
cd $STRIPPED_DIR cd $STRIPPED_DIR
${{ env.RUN }} "python selfdrive/manager/build.py" ${{ env.RUN }} "python system/manager/build.py"
- name: Run tests - name: Run tests
timeout-minutes: 3 timeout-minutes: 3
run: | run: |

20
Jenkinsfile vendored

@ -183,7 +183,7 @@ node {
deviceStage("onroad", "tici-needs-can", [], [ deviceStage("onroad", "tici-needs-can", [], [
// TODO: ideally, this test runs in master-ci, but it takes 5+m to build it // TODO: ideally, this test runs in master-ci, but it takes 5+m to build it
//["build master-ci", "cd $SOURCE_DIR/release && TARGET_DIR=$TEST_DIR $SOURCE_DIR/scripts/retry.sh ./build_devel.sh"], //["build master-ci", "cd $SOURCE_DIR/release && TARGET_DIR=$TEST_DIR $SOURCE_DIR/scripts/retry.sh ./build_devel.sh"],
["build openpilot", "cd selfdrive/manager && ./build.py"], ["build openpilot", "cd system/manager && ./build.py"],
["check dirty", "release/check-dirty.sh"], ["check dirty", "release/check-dirty.sh"],
["onroad tests", "pytest selfdrive/test/test_onroad.py -s"], ["onroad tests", "pytest selfdrive/test/test_onroad.py -s"],
["time to onroad", "pytest selfdrive/test/test_time_to_onroad.py"], ["time to onroad", "pytest selfdrive/test/test_time_to_onroad.py"],
@ -191,51 +191,51 @@ node {
}, },
'HW + Unit Tests': { 'HW + Unit Tests': {
deviceStage("tici-hardware", "tici-common", ["UNSAFE=1"], [ deviceStage("tici-hardware", "tici-common", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"], ["build", "cd system/manager && ./build.py"],
["test pandad", "pytest selfdrive/boardd/tests/test_pandad.py"], ["test pandad", "pytest selfdrive/boardd/tests/test_pandad.py"],
["test power draw", "pytest -s system/hardware/tici/tests/test_power_draw.py"], ["test power draw", "pytest -s system/hardware/tici/tests/test_power_draw.py"],
["test encoder", "LD_LIBRARY_PATH=/usr/local/lib pytest system/loggerd/tests/test_encoder.py"], ["test encoder", "LD_LIBRARY_PATH=/usr/local/lib pytest system/loggerd/tests/test_encoder.py"],
["test pigeond", "pytest system/ubloxd/tests/test_pigeond.py"], ["test pigeond", "pytest system/ubloxd/tests/test_pigeond.py"],
["test manager", "pytest selfdrive/manager/test/test_manager.py"], ["test manager", "pytest system/manager/test/test_manager.py"],
]) ])
}, },
'loopback': { 'loopback': {
deviceStage("loopback", "tici-loopback", ["UNSAFE=1"], [ deviceStage("loopback", "tici-loopback", ["UNSAFE=1"], [
["build openpilot", "cd selfdrive/manager && ./build.py"], ["build openpilot", "cd system/manager && ./build.py"],
["test boardd loopback", "pytest selfdrive/boardd/tests/test_boardd_loopback.py"], ["test boardd loopback", "pytest selfdrive/boardd/tests/test_boardd_loopback.py"],
]) ])
}, },
'camerad': { 'camerad': {
deviceStage("AR0231", "tici-ar0231", ["UNSAFE=1"], [ deviceStage("AR0231", "tici-ar0231", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"], ["build", "cd system/manager && ./build.py"],
["test camerad", "pytest system/camerad/test/test_camerad.py"], ["test camerad", "pytest system/camerad/test/test_camerad.py"],
["test exposure", "pytest system/camerad/test/test_exposure.py"], ["test exposure", "pytest system/camerad/test/test_exposure.py"],
]) ])
deviceStage("OX03C10", "tici-ox03c10", ["UNSAFE=1"], [ deviceStage("OX03C10", "tici-ox03c10", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"], ["build", "cd system/manager && ./build.py"],
["test camerad", "pytest system/camerad/test/test_camerad.py"], ["test camerad", "pytest system/camerad/test/test_camerad.py"],
["test exposure", "pytest system/camerad/test/test_exposure.py"], ["test exposure", "pytest system/camerad/test/test_exposure.py"],
]) ])
}, },
'sensord': { 'sensord': {
deviceStage("LSM + MMC", "tici-lsmc", ["UNSAFE=1"], [ deviceStage("LSM + MMC", "tici-lsmc", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"], ["build", "cd system/manager && ./build.py"],
["test sensord", "pytest system/sensord/tests/test_sensord.py"], ["test sensord", "pytest system/sensord/tests/test_sensord.py"],
]) ])
deviceStage("BMX + LSM", "tici-bmx-lsm", ["UNSAFE=1"], [ deviceStage("BMX + LSM", "tici-bmx-lsm", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"], ["build", "cd system/manager && ./build.py"],
["test sensord", "pytest system/sensord/tests/test_sensord.py"], ["test sensord", "pytest system/sensord/tests/test_sensord.py"],
]) ])
}, },
'replay': { 'replay': {
deviceStage("model-replay", "tici-replay", ["UNSAFE=1"], [ deviceStage("model-replay", "tici-replay", ["UNSAFE=1"], [
["build", "cd selfdrive/manager && ./build.py"], ["build", "cd system/manager && ./build.py"],
["model replay", "selfdrive/test/process_replay/model_replay.py"], ["model replay", "selfdrive/test/process_replay/model_replay.py"],
]) ])
}, },
'tizi': { 'tizi': {
deviceStage("tizi", "tizi", ["UNSAFE=1"], [ deviceStage("tizi", "tizi", ["UNSAFE=1"], [
["build openpilot", "cd selfdrive/manager && ./build.py"], ["build openpilot", "cd system/manager && ./build.py"],
["test boardd loopback", "SINGLE_PANDA=1 pytest selfdrive/boardd/tests/test_boardd_loopback.py"], ["test boardd loopback", "SINGLE_PANDA=1 pytest selfdrive/boardd/tests/test_boardd_loopback.py"],
["test boardd spi", "pytest selfdrive/boardd/tests/test_boardd_spi.py"], ["test boardd spi", "pytest selfdrive/boardd/tests/test_boardd_spi.py"],
["test pandad", "pytest selfdrive/boardd/tests/test_pandad.py"], ["test pandad", "pytest selfdrive/boardd/tests/test_pandad.py"],

@ -5,7 +5,7 @@ import pytest
import random import random
from openpilot.common.prefix import OpenpilotPrefix from openpilot.common.prefix import OpenpilotPrefix
from openpilot.selfdrive.manager import manager from openpilot.system.manager import manager
from openpilot.system.hardware import TICI, HARDWARE from openpilot.system.hardware import TICI, HARDWARE

@ -82,7 +82,7 @@ function launch {
tmux capture-pane -pq -S-1000 > /tmp/launch_log tmux capture-pane -pq -S-1000 > /tmp/launch_log
# start manager # start manager
cd selfdrive/manager cd system/manager
if [ ! -f $DIR/prebuilt ]; then if [ ! -f $DIR/prebuilt ]; then
./build.py ./build.py
fi fi

@ -93,7 +93,7 @@ cd $SOURCE_DIR
cp -pR -n --parents $TEST_FILES $BUILD_DIR/ cp -pR -n --parents $TEST_FILES $BUILD_DIR/
cd $BUILD_DIR cd $BUILD_DIR
RELEASE=1 selfdrive/test/test_onroad.py RELEASE=1 selfdrive/test/test_onroad.py
#selfdrive/manager/test/test_manager.py #system/manager/test/test_manager.py
selfdrive/car/tests/test_car_interfaces.py selfdrive/car/tests/test_car_interfaces.py
rm -rf $TEST_FILES rm -rf $TEST_FILES

@ -303,14 +303,8 @@ system/camerad/cameras/camera_common.cc
system/camerad/sensors/*.h system/camerad/sensors/*.h
system/camerad/sensors/*.cc system/camerad/sensors/*.cc
selfdrive/manager/__init__.py system/manager/__init__.py
selfdrive/manager/build.py system/manager/**
selfdrive/manager/helpers.py
selfdrive/manager/manager.py
selfdrive/manager/process_config.py
selfdrive/manager/process.py
selfdrive/manager/test/__init__.py
selfdrive/manager/test/test_manager.py
selfdrive/modeld/.gitignore selfdrive/modeld/.gitignore
selfdrive/modeld/__init__.py selfdrive/modeld/__init__.py

@ -7,7 +7,7 @@ import cereal.messaging as messaging
from cereal import log from cereal import log
from openpilot.common.gpio import gpio_set, gpio_init from openpilot.common.gpio import gpio_set, gpio_init
from panda import Panda, PandaDFU, PandaProtocolMismatch from panda import Panda, PandaDFU, PandaProtocolMismatch
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.hardware import HARDWARE from openpilot.system.hardware import HARDWARE
from openpilot.system.hardware.tici.pins import GPIO from openpilot.system.hardware.tici.pins import GPIO

@ -9,7 +9,7 @@ from openpilot.selfdrive.car.fingerprints import _FINGERPRINTS
from openpilot.selfdrive.car.toyota.values import CAR as TOYOTA from openpilot.selfdrive.car.toyota.values import CAR as TOYOTA
from openpilot.selfdrive.car.mazda.values import CAR as MAZDA from openpilot.selfdrive.car.mazda.values import CAR as MAZDA
from openpilot.selfdrive.controls.lib.events import EVENT_NAME from openpilot.selfdrive.controls.lib.events import EVENT_NAME
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
EventName = car.CarEvent.EventName EventName = car.CarEvent.EventName
Ecu = car.CarParams.Ecu Ecu = car.CarParams.Ecu

@ -24,7 +24,7 @@ import argparse
import re import re
from collections import defaultdict from collections import defaultdict
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
# Do statistics every 5 seconds # Do statistics every 5 seconds
PRINT_INTERVAL = 5 PRINT_INTERVAL = 5

@ -8,7 +8,7 @@ from openpilot.common.realtime import DT_CTRL
from openpilot.selfdrive.car.honda.interface import CarInterface from openpilot.selfdrive.car.honda.interface import CarInterface
from openpilot.selfdrive.controls.lib.events import ET, Events from openpilot.selfdrive.controls.lib.events import ET, Events
from openpilot.selfdrive.controls.lib.alertmanager import AlertManager from openpilot.selfdrive.controls.lib.alertmanager import AlertManager
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
EventName = car.CarEvent.EventName EventName = car.CarEvent.EventName

@ -3,7 +3,7 @@ import time
from cereal import car, log, messaging from cereal import car, log, messaging
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.hardware import HARDWARE from openpilot.system.hardware import HARDWARE
if __name__ == "__main__": if __name__ == "__main__":

@ -10,7 +10,7 @@ from cereal.services import SERVICE_LIST
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.common.transformations.coordinates import ecef2geodetic from openpilot.common.transformations.coordinates import ecef2geodetic
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
class TestLocationdProc: class TestLocationdProc:

@ -7,7 +7,7 @@ from cereal.visionipc import VisionIpcServer, VisionStreamType
from openpilot.common.transformations.camera import DEVICE_CAMERAS from openpilot.common.transformations.camera import DEVICE_CAMERAS
from openpilot.common.realtime import DT_MDL from openpilot.common.realtime import DT_MDL
from openpilot.selfdrive.car.car_helpers import write_car_param from openpilot.selfdrive.car.car_helpers import write_car_param
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_camera_state from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_camera_state
CAM = DEVICE_CAMERAS[("tici", "ar0231")].fcam CAM = DEVICE_CAMERAS[("tici", "ar0231")].fcam

@ -6,7 +6,7 @@ import time
import numpy as np import numpy as np
import cereal.messaging as messaging import cereal.messaging as messaging
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
N = int(os.getenv("N", "5")) N = int(os.getenv("N", "5"))

@ -7,7 +7,7 @@ from parameterized import parameterized
import cereal.messaging as messaging import cereal.messaging as messaging
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
class TestNavd: class TestNavd:

@ -9,7 +9,7 @@ from functools import wraps
import cereal.messaging as messaging import cereal.messaging as messaging
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.hardware import PC from openpilot.system.hardware import PC
from openpilot.system.version import training_version, terms_version from openpilot.system.version import training_version, terms_version

@ -4,7 +4,7 @@ from cereal import messaging
from openpilot.selfdrive.car.fingerprints import MIGRATION from openpilot.selfdrive.car.fingerprints import MIGRATION
from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_encode_index from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_encode_index
from openpilot.selfdrive.car.toyota.values import EPS_SCALE from openpilot.selfdrive.car.toyota.values import EPS_SCALE
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from panda import Panda from panda import Panda

@ -23,7 +23,7 @@ from openpilot.common.timeout import Timeout
from openpilot.common.realtime import DT_CTRL from openpilot.common.realtime import DT_CTRL
from panda.python import ALTERNATIVE_EXPERIENCE from panda.python import ALTERNATIVE_EXPERIENCE
from openpilot.selfdrive.car.car_helpers import get_car, interfaces from openpilot.selfdrive.car.car_helpers import get_car, interfaces
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_camera_state, available_streams from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_camera_state, available_streams
from openpilot.selfdrive.test.process_replay.migration import migrate_all from openpilot.selfdrive.test.process_replay.migration import migrate_all
from openpilot.selfdrive.test.process_replay.capture import ProcessOutputCapture from openpilot.selfdrive.test.process_replay.capture import ProcessOutputCapture

@ -125,7 +125,7 @@ class TestOnroad:
# start manager and run openpilot for a minute # start manager and run openpilot for a minute
proc = None proc = None
try: try:
manager_path = os.path.join(BASEDIR, "selfdrive/manager/manager.py") manager_path = os.path.join(BASEDIR, "system/manager/manager.py")
proc = subprocess.Popen(["python", manager_path]) proc = subprocess.Popen(["python", manager_path])
sm = messaging.SubMaster(['carState']) sm = messaging.SubMaster(['carState'])

@ -17,7 +17,7 @@ EventName = car.CarEvent.EventName
def test_time_to_onroad(): def test_time_to_onroad():
# launch # launch
set_params_enabled() set_params_enabled()
manager_path = os.path.join(BASEDIR, "selfdrive/manager/manager.py") manager_path = os.path.join(BASEDIR, "system/manager/manager.py")
proc = subprocess.Popen(["python", manager_path]) proc = subprocess.Popen(["python", manager_path])
start_time = time.monotonic() start_time = time.monotonic()

@ -4,7 +4,7 @@ import time
from multiprocessing import Process from multiprocessing import Process
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.selfdrive.manager.process import launcher from openpilot.system.manager.process import launcher
from openpilot.common.swaglog import cloudlog from openpilot.common.swaglog import cloudlog
from openpilot.system.hardware import HARDWARE from openpilot.system.hardware import HARDWARE
from openpilot.system.version import get_build_metadata from openpilot.system.version import get_build_metadata

@ -8,7 +8,7 @@ from typing import cast
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.common.timeout import Timeout from openpilot.common.timeout import Timeout
from openpilot.system.athena import athenad from openpilot.system.athena import athenad
from openpilot.selfdrive.manager.helpers import write_onroad_params from openpilot.system.manager.helpers import write_onroad_params
from openpilot.system.hardware import TICI from openpilot.system.hardware import TICI
TIMEOUT_TOLERANCE = 20 # seconds TIMEOUT_TOLERANCE = 20 # seconds

@ -11,7 +11,7 @@ from openpilot.common.params import Params
from openpilot.common.realtime import DT_MDL from openpilot.common.realtime import DT_MDL
from openpilot.system.hardware import PC from openpilot.system.hardware import PC
from openpilot.selfdrive.controls.lib.alertmanager import set_offroad_alert from openpilot.selfdrive.controls.lib.alertmanager import set_offroad_alert
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
VISION_STREAMS = { VISION_STREAMS = {

@ -8,7 +8,7 @@ from collections import defaultdict
import cereal.messaging as messaging import cereal.messaging as messaging
from cereal import log from cereal import log
from cereal.services import SERVICE_LIST from cereal.services import SERVICE_LIST
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
TEST_TIMESPAN = 30 TEST_TIMESPAN = 30
LAG_FRAME_TOLERANCE = {log.FrameData.ImageSensor.ar0231: 0.5, # ARs use synced pulses for frame starts LAG_FRAME_TOLERANCE = {log.FrameData.ImageSensor.ar0231: 0.5, # ARs use synced pulses for frame starts

@ -11,8 +11,8 @@ from cereal.services import SERVICE_LIST
from openpilot.common.mock import mock_messages from openpilot.common.mock import mock_messages
from openpilot.selfdrive.car.car_helpers import write_car_param from openpilot.selfdrive.car.car_helpers import write_car_param
from openpilot.system.hardware.tici.power_monitor import get_power from openpilot.system.hardware.tici.power_monitor import get_power
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.selfdrive.manager.manager import manager_cleanup from openpilot.system.manager.manager import manager_cleanup
SAMPLE_TIME = 8 # seconds to sample power SAMPLE_TIME = 8 # seconds to sample power
MAX_WARMUP_TIME = 30 # seconds to wait for SAMPLE_TIME consecutive valid samples MAX_WARMUP_TIME = 30 # seconds to wait for SAMPLE_TIME consecutive valid samples

@ -14,7 +14,7 @@ from tqdm import trange
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.common.timeout import Timeout from openpilot.common.timeout import Timeout
from openpilot.system.hardware import TICI from openpilot.system.hardware import TICI
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.tools.lib.logreader import LogReader from openpilot.tools.lib.logreader import LogReader
from openpilot.system.hardware.hw import Paths from openpilot.system.hardware.hw import Paths

@ -19,7 +19,7 @@ from openpilot.common.timeout import Timeout
from openpilot.system.hardware.hw import Paths from openpilot.system.hardware.hw import Paths
from openpilot.system.loggerd.xattr_cache import getxattr from openpilot.system.loggerd.xattr_cache import getxattr
from openpilot.system.loggerd.deleter import PRESERVE_ATTR_NAME, PRESERVE_ATTR_VALUE from openpilot.system.loggerd.deleter import PRESERVE_ATTR_NAME, PRESERVE_ATTR_VALUE
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.version import get_version from openpilot.system.version import get_version
from openpilot.tools.lib.helpers import RE from openpilot.tools.lib.helpers import RE
from openpilot.tools.lib.logreader import LogReader from openpilot.tools.lib.logreader import LogReader

@ -11,9 +11,9 @@ import openpilot.system.sentry as sentry
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
from openpilot.system.hardware import HARDWARE, PC from openpilot.system.hardware import HARDWARE, PC
from openpilot.selfdrive.manager.helpers import unblock_stdout, write_onroad_params, save_bootlog from openpilot.system.manager.helpers import unblock_stdout, write_onroad_params, save_bootlog
from openpilot.selfdrive.manager.process import ensure_running from openpilot.system.manager.process import ensure_running
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.athena.registration import register, UNREGISTERED_DONGLE_ID from openpilot.system.athena.registration import register, UNREGISTERED_DONGLE_ID
from openpilot.common.swaglog import cloudlog, add_file_handler from openpilot.common.swaglog import cloudlog, add_file_handler
from openpilot.system.version import get_build_metadata, terms_version, training_version from openpilot.system.version import get_build_metadata, terms_version, training_version

@ -3,7 +3,7 @@ import os
from cereal import car from cereal import car
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.system.hardware import PC, TICI from openpilot.system.hardware import PC, TICI
from openpilot.selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess from openpilot.system.manager.process import PythonProcess, NativeProcess, DaemonProcess
WEBCAM = os.getenv("USE_WEBCAM") is not None WEBCAM = os.getenv("USE_WEBCAM") is not None

@ -8,9 +8,9 @@ from parameterized import parameterized
from cereal import car from cereal import car
from openpilot.common.params import Params from openpilot.common.params import Params
import openpilot.selfdrive.manager.manager as manager import openpilot.system.manager.manager as manager
from openpilot.selfdrive.manager.process import ensure_running from openpilot.system.manager.process import ensure_running
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.hardware import HARDWARE from openpilot.system.hardware import HARDWARE
os.environ['FAKEUPLOAD'] = "1" os.environ['FAKEUPLOAD'] = "1"

@ -8,7 +8,7 @@ import subprocess
import cereal.messaging as messaging import cereal.messaging as messaging
from openpilot.system.qcomgpsd.qcomgpsd import at_cmd, wait_for_modem from openpilot.system.qcomgpsd.qcomgpsd import at_cmd, wait_for_modem
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
GOOD_SIGNAL = bool(int(os.getenv("GOOD_SIGNAL", '0'))) GOOD_SIGNAL = bool(int(os.getenv("GOOD_SIGNAL", '0')))

@ -10,7 +10,7 @@ from cereal import log
from cereal.services import SERVICE_LIST from cereal.services import SERVICE_LIST
from openpilot.common.gpio import get_irqs_for_action from openpilot.common.gpio import get_irqs_for_action
from openpilot.common.timeout import Timeout from openpilot.common.timeout import Timeout
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
BMX = { BMX = {
('bmx055', 'acceleration'), ('bmx055', 'acceleration'),

@ -4,7 +4,7 @@ import time
import atexit import atexit
from cereal import messaging from cereal import messaging
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
TIMEOUT = 10*60 TIMEOUT = 10*60

@ -4,7 +4,7 @@ import os
import time import time
import cereal.messaging as messaging import cereal.messaging as messaging
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.hardware.hw import Paths from openpilot.system.hardware.hw import Paths
from openpilot.common.swaglog import cloudlog, ipchandler from openpilot.common.swaglog import cloudlog, ipchandler

@ -6,7 +6,7 @@ import cereal.messaging as messaging
from cereal.services import SERVICE_LIST from cereal.services import SERVICE_LIST
from openpilot.common.gpio import gpio_read from openpilot.common.gpio import gpio_read
from openpilot.selfdrive.test.helpers import with_processes from openpilot.selfdrive.test.helpers import with_processes
from openpilot.selfdrive.manager.process_config import managed_processes from openpilot.system.manager.process_config import managed_processes
from openpilot.system.hardware.tici.pins import GPIO from openpilot.system.hardware.tici.pins import GPIO

@ -9,7 +9,7 @@ import time
import pytest import pytest
from openpilot.common.params import Params from openpilot.common.params import Params
from openpilot.selfdrive.manager.process import ManagerProcess from openpilot.system.manager.process import ManagerProcess
from openpilot.selfdrive.test.helpers import processes_context from openpilot.selfdrive.test.helpers import processes_context

@ -18,4 +18,4 @@ SCRIPT_DIR=$(dirname "$0")
OPENPILOT_DIR=$SCRIPT_DIR/../../ OPENPILOT_DIR=$SCRIPT_DIR/../../
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd $OPENPILOT_DIR/selfdrive/manager && exec ./manager.py cd $OPENPILOT_DIR/system/manager && exec ./manager.py

@ -29,7 +29,7 @@ USE_WEBCAM=1 scons -j$(nproc)
## GO ## GO
``` ```
cd ~/openpilot/selfdrive/manager cd ~/openpilot/system/manager
NOSENSOR=1 USE_WEBCAM=1 ./manager.py NOSENSOR=1 USE_WEBCAM=1 ./manager.py
``` ```
- Start the car, then the UI should show the road webcam's view - Start the car, then the UI should show the road webcam's view

Loading…
Cancel
Save