Skip to content

Commit

Permalink
Carla simulator: set driver orientation (commaai#27363)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorKikelj authored Feb 16, 2023
1 parent 2510f78 commit 202eb06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/sim/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ def fake_driver_monitoring(exit_event: threading.Event):
while not exit_event.is_set():
# dmonitoringmodeld output
dat = messaging.new_message('driverStateV2')
dat.driverStateV2.leftDriverData.faceOrientation = [0., 0., 0.]
dat.driverStateV2.leftDriverData.faceProb = 1.0
dat.driverStateV2.rightDriverData.faceOrientation = [0., 0., 0.]
dat.driverStateV2.rightDriverData.faceProb = 1.0
pm.send('driverStateV2', dat)

# dmonitoringd output
Expand Down

0 comments on commit 202eb06

Please sign in to comment.