Can the hdmap library be used to generate traffic lights(signals) in a scene? If possible, which interface of hdmap should be used?
Show older comments
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)
Arun
on 25 Apr 2024
0 votes
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:
- To generate the scene: “MATLAB example to generate RoadRunner Scene with Traffic Signs Using Recorded Sensor Data”: https://www.mathworks.com/help/driving/ug/generate-scene-with-traffic-signs-using-recorded-sensor-data.html
- To export the scene to “Opendrive” format:
- 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
- MathWorks documentation to Export to ASAM OpenSCENARIO: https://www.mathworks.com/help/roadrunner-scenario/ug/export-to-asam-openscenario.html
- Controlling “RoadRunner” Programmatically: https://www.mathworks.com/help/roadrunner/ug/create-cpp-client-for-controlling-roadrunner-programmatically.html
I Hope this helps!
Categories
Find more on RoadRunner in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!