|
|
@ -1,14 +1,12 @@ |
|
|
|
#!/usr/bin/env python3 |
|
|
|
#!/usr/bin/env python3 |
|
|
|
import gc |
|
|
|
|
|
|
|
import math |
|
|
|
import math |
|
|
|
|
|
|
|
|
|
|
|
import json |
|
|
|
import json |
|
|
|
import numpy as np |
|
|
|
import numpy as np |
|
|
|
|
|
|
|
|
|
|
|
import cereal.messaging as messaging |
|
|
|
import cereal.messaging as messaging |
|
|
|
from cereal import car |
|
|
|
from cereal import car |
|
|
|
from common.params import Params, put_nonblocking |
|
|
|
from common.params import Params, put_nonblocking |
|
|
|
from common.realtime import set_realtime_priority, DT_MDL |
|
|
|
from common.realtime import config_realtime_process, DT_MDL |
|
|
|
from common.numpy_fast import clip |
|
|
|
from common.numpy_fast import clip |
|
|
|
from selfdrive.locationd.models.car_kf import CarKalman, ObservationKind, States |
|
|
|
from selfdrive.locationd.models.car_kf import CarKalman, ObservationKind, States |
|
|
|
from selfdrive.locationd.models.constants import GENERATED_DIR |
|
|
|
from selfdrive.locationd.models.constants import GENERATED_DIR |
|
|
@ -103,8 +101,7 @@ class ParamsLearner: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(sm=None, pm=None): |
|
|
|
def main(sm=None, pm=None): |
|
|
|
gc.disable() |
|
|
|
config_realtime_process([0, 1, 2, 3], 5) |
|
|
|
set_realtime_priority(5) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if sm is None: |
|
|
|
if sm is None: |
|
|
|
sm = messaging.SubMaster(['liveLocationKalman', 'carState'], poll=['liveLocationKalman']) |
|
|
|
sm = messaging.SubMaster(['liveLocationKalman', 'carState'], poll=['liveLocationKalman']) |
|
|
|