|
|
|
@ -6,6 +6,7 @@ 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.card import convert_to_capnp |
|
|
|
|
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 |
|
|
|
@ -23,7 +24,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() |
|
|
|
|
Params().put("CarParams", get_demo_car_params().to_bytes()) |
|
|
|
|
Params().put("CarParams", convert_to_capnp(get_demo_car_params()).to_bytes()) |
|
|
|
|
|
|
|
|
|
self.sm = messaging.SubMaster(['modelV2', 'cameraOdometry']) |
|
|
|
|
self.pm = messaging.PubMaster(['roadCameraState', 'wideRoadCameraState', 'liveCalibration']) |
|
|
|
|