Carla simulator: set driver orientation (#27363)

old-commit-hash: 202eb06a05e43ce77e5be19540fb427b5a060cfc
This commit is contained in:
grekiki
2023-02-16 23:51:25 +01:00
committed by GitHub
parent c043ea7fa2
commit 0393f8b99c
+3
View File
@@ -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