|
|
|
@ -19,7 +19,6 @@ import numpy as np |
|
|
|
|
import cereal.messaging as messaging |
|
|
|
|
from cereal import car, log |
|
|
|
|
from pathlib import Path |
|
|
|
|
from setproctitle import setproctitle |
|
|
|
|
from cereal.messaging import PubMaster, SubMaster |
|
|
|
|
from msgq.visionipc import VisionIpcClient, VisionStreamType, VisionBuf |
|
|
|
|
from opendbc.car.car_helpers import get_demo_car_params |
|
|
|
@ -29,7 +28,6 @@ from openpilot.common.filter_simple import FirstOrderFilter |
|
|
|
|
from openpilot.common.realtime import config_realtime_process, DT_MDL |
|
|
|
|
from openpilot.common.transformations.camera import DEVICE_CAMERAS |
|
|
|
|
from openpilot.common.transformations.model import get_warp_matrix |
|
|
|
|
from openpilot.system import sentry |
|
|
|
|
from openpilot.selfdrive.controls.lib.desire_helper import DesireHelper |
|
|
|
|
from openpilot.selfdrive.controls.lib.drive_helpers import get_accel_from_plan, smooth_value, get_curvature_from_plan |
|
|
|
|
from openpilot.selfdrive.modeld.parse_model_outputs import Parser |
|
|
|
@ -190,9 +188,6 @@ class ModelState: |
|
|
|
|
def main(demo=False): |
|
|
|
|
cloudlog.warning("modeld init") |
|
|
|
|
|
|
|
|
|
sentry.set_tag("daemon", PROCESS_NAME) |
|
|
|
|
cloudlog.bind(daemon=PROCESS_NAME) |
|
|
|
|
setproctitle(PROCESS_NAME) |
|
|
|
|
if not USBGPU: |
|
|
|
|
# USB GPU currently saturates a core so can't do this yet, |
|
|
|
|
# also need to move the aux USB interrupts for good timings |
|
|
|
@ -378,7 +373,4 @@ if __name__ == "__main__": |
|
|
|
|
args = parser.parse_args() |
|
|
|
|
main(demo=args.demo) |
|
|
|
|
except KeyboardInterrupt: |
|
|
|
|
cloudlog.warning(f"child {PROCESS_NAME} got SIGINT") |
|
|
|
|
except Exception: |
|
|
|
|
sentry.capture_exception() |
|
|
|
|
raise |
|
|
|
|
cloudlog.warning("got SIGINT") |
|
|
|
|