Can the hdmap library be used to generate traffic lights(signals) in a scene? If possible, which interface of hdmap should be used?

Can the hdmap library be used to generate traffic lights(signals) in a scene? If possible, which interface of hdmap should be used?Is it possible to use the hdmap library to build traffic lights in a scene, export it to opendrive format via Roadrunner, and control the dynamic changes of traffic lights by writing openario? grateful!

Answers (1)

Hi 鹏,
I understand that you want to generate dynamically changing traffic lights (signals) in a scene and export it to “OpenDrive” format using “RoadRunner”.
Here are some resources that might be useful for the required task:
  1. Use “export” function which exports the actors in a driving scenario to the ASAM OpenDRIVE file format: https://www.mathworks.com/help/driving/ref/drivingscenario.export.html
  2. MathWorks documentation to Export to ASAM OpenSCENARIO: https://www.mathworks.com/help/roadrunner-scenario/ug/export-to-asam-openscenario.html
I Hope this helps!

Asked:

鹏
on 2 Apr 2024

Answered:

on 25 Apr 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!