|
|
|
@ -3,9 +3,10 @@ import random |
|
|
|
|
|
|
|
|
|
import cereal.messaging as messaging |
|
|
|
|
from msgq.visionipc import VisionIpcServer, VisionStreamType |
|
|
|
|
from openpilot.common.params import Params |
|
|
|
|
from openpilot.common.transformations.camera import DEVICE_CAMERAS |
|
|
|
|
from openpilot.common.realtime import DT_MDL |
|
|
|
|
from openpilot.selfdrive.car.car_helpers import write_car_param |
|
|
|
|
from openpilot.selfdrive.car.car_helpers import get_demo_car_params |
|
|
|
|
from openpilot.system.manager.process_config import managed_processes |
|
|
|
|
from openpilot.selfdrive.test.process_replay.vision_meta import meta_from_camera_state |
|
|
|
|
|
|
|
|
@ -22,7 +23,7 @@ class TestModeld: |
|
|
|
|
self.vipc_server.create_buffers(VisionStreamType.VISION_STREAM_DRIVER, 40, False, CAM.width, CAM.height) |
|
|
|
|
self.vipc_server.create_buffers(VisionStreamType.VISION_STREAM_WIDE_ROAD, 40, False, CAM.width, CAM.height) |
|
|
|
|
self.vipc_server.start_listener() |
|
|
|
|
write_car_param() |
|
|
|
|
Params().put("CarParams", get_demo_car_params().to_bytes()) |
|
|
|
|
|
|
|
|
|
self.sm = messaging.SubMaster(['modelV2', 'cameraOdometry']) |
|
|
|
|
self.pm = messaging.PubMaster(['roadCameraState', 'wideRoadCameraState', 'liveCalibration']) |
|
|
|
|