pyoscx / scenariogeneration

Python library to generate linked OpenDRIVE and OpenSCENARIO files
Mozilla Public License 2.0
256 stars 81 forks source link

Example for road signs #217

Open johschmitz opened 5 months ago

johschmitz commented 5 months ago

I am now trying to implement road/traffic signs into my Blender add-on. However, I could not find any scenariogeneration example including traffic signs. Could you add one? Especially with STOP signs and speed limit signs.

mander76 commented 5 months ago

Techinically this example https://github.com/pyoscx/scenariogeneration/blob/main/examples/xodr/junction_with_signals.py has signs, they are called Signals in OpenDRIVE.

But I can add a more simple example without junction aswell

mander76 commented 5 months ago

New example added:

https://github.com/pyoscx/scenariogeneration/blob/main/examples/xodr/road_with_speed_signs.py

johschmitz commented 5 months ago

Awesome, would it also be possible to add an example with a T-junction with a STOP sign and a stop line where the stop line is available both as signal as well as marking of the corresponding object?

Also bonus question since some of the details around this changed in OpenDRIVE 1.8 I am wondering when it will be supported?

MandolinMicke commented 5 months ago

For a junction then look at the existing example, (it's a four way crossing, but same thing)

Don't know, have not looked into 1.8

johschmitz commented 5 months ago

Okay makes sense but I think in that example the stoplines are missing. Also the stoplines should exist as signal + object with marking.

https://publications.pages.asam.net/standards/ASAM_OpenDRIVE/ASAM_OpenDRIVE_Specification/latest/specification/14_signals/14_04_signal_reference.html

https://publications.pages.asam.net/standards/ASAM_OpenDRIVE/ASAM_OpenDRIVE_Specification/latest/specification/13_objects/13_08_object_marking.html