|
|
@ -6,8 +6,6 @@ from multiprocessing import Process, Queue |
|
|
|
from abc import ABC, abstractmethod |
|
|
|
from abc import ABC, abstractmethod |
|
|
|
from typing import Optional |
|
|
|
from typing import Optional |
|
|
|
|
|
|
|
|
|
|
|
import cereal.messaging as messaging |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from openpilot.common.params import Params |
|
|
|
from openpilot.common.params import Params |
|
|
|
from openpilot.common.numpy_fast import clip |
|
|
|
from openpilot.common.numpy_fast import clip |
|
|
|
from openpilot.common.realtime import Ratekeeper |
|
|
|
from openpilot.common.realtime import Ratekeeper |
|
|
@ -34,11 +32,6 @@ class SimulatorBridge(ABC): |
|
|
|
|
|
|
|
|
|
|
|
self.rk = Ratekeeper(100, None) |
|
|
|
self.rk = Ratekeeper(100, None) |
|
|
|
|
|
|
|
|
|
|
|
msg = messaging.new_message('liveCalibration') |
|
|
|
|
|
|
|
msg.liveCalibration.validBlocks = 20 |
|
|
|
|
|
|
|
msg.liveCalibration.rpyCalib = [0.0, 0.0, 0.0] |
|
|
|
|
|
|
|
self.params.put("CalibrationParams", msg.to_bytes()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.dual_camera = arguments.dual_camera |
|
|
|
self.dual_camera = arguments.dual_camera |
|
|
|
self.high_quality = arguments.high_quality |
|
|
|
self.high_quality = arguments.high_quality |
|
|
|
|
|
|
|
|
|
|
@ -94,8 +87,6 @@ class SimulatorBridge(ABC): |
|
|
|
for _ in range(20): |
|
|
|
for _ in range(20): |
|
|
|
self.world.tick() |
|
|
|
self.world.tick() |
|
|
|
|
|
|
|
|
|
|
|
throttle_manual = steer_manual = brake_manual = 0. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while self._keep_alive: |
|
|
|
while self._keep_alive: |
|
|
|
throttle_out = steer_out = brake_out = 0.0 |
|
|
|
throttle_out = steer_out = brake_out = 0.0 |
|
|
|
throttle_op = steer_op = brake_op = 0.0 |
|
|
|
throttle_op = steer_op = brake_op = 0.0 |
|
|
|