commaai / openpilot

openpilot is an operating system for robotics. Currently, it upgrades the driver assistance system in 275+ supported cars.
https://comma.ai/openpilot
MIT License
49.05k stars 8.94k forks source link

Turn Signals and Lane Changes #32771

Closed dennisklad closed 2 weeks ago

dennisklad commented 2 months ago

Describe the bug

The _run function in the tools/sim/bridge/common.py has some control message types already defined for impementing turns. I have tried to use this messages, but the car does not seem to react at all to them in the virtual environment. Do the lane change and the blinker_left/ blinker_right messages work or is this still under developement?

message = q.get()
[...]
elif m[0] == "blinker":
  if m[1] == "left":
    self.simulator_state.left_blinker = True
  elif m[1] == "right":
    self.simulator_state.right_blinker = True

OS Version

Ubuntu 20.04

openpilot version or commit

No response

Additional info

No response

dennisklad commented 1 month ago

Are there any plans to integrate this messages to the MetaDrive simulator so that we can change lanes and potentially decide where to turn in a T-intersection?

adeebshihadeh commented 2 weeks ago

This isn't supported yet. Join the simulation channel in Discord for further discussion.