Carla simulator: set driver orientation (#27363)

old-commit-hash: 202eb06a05
beeps
grekiki 2 years ago committed by GitHub
parent c043ea7fa2
commit 0393f8b99c
  1. 3
      tools/sim/bridge.py

@ -211,7 +211,10 @@ def fake_driver_monitoring(exit_event: threading.Event):
while not exit_event.is_set(): while not exit_event.is_set():
# dmonitoringmodeld output # dmonitoringmodeld output
dat = messaging.new_message('driverStateV2') dat = messaging.new_message('driverStateV2')
dat.driverStateV2.leftDriverData.faceOrientation = [0., 0., 0.]
dat.driverStateV2.leftDriverData.faceProb = 1.0 dat.driverStateV2.leftDriverData.faceProb = 1.0
dat.driverStateV2.rightDriverData.faceOrientation = [0., 0., 0.]
dat.driverStateV2.rightDriverData.faceProb = 1.0
pm.send('driverStateV2', dat) pm.send('driverStateV2', dat)
# dmonitoringd output # dmonitoringd output

Loading…
Cancel
Save