pyoscx / scenariogeneration

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

Add "length" parameter to add_signal() method #221

Open johschmitz opened 5 months ago

johschmitz commented 5 months ago

OpenDRIVE 1.8 has added a length attribute to the signal definition which allows for the complete definition of a bounding box:

https://publications.pages.asam.net/standards/ASAM_OpenDRIVE/ASAM_OpenDRIVE_Specification/latest/specification/14_signals/14_01_introduction.html -> see Table 120.

This should be added to the add_signal() method. Since this is an optional attribute it does not break compatibility and can just be omitted by users of the scenariogeneration lib who want to generate older OpenDRIVE.

johschmitz commented 1 week ago

244 partially fixes this but we also need to add the .xsd files for OpenDRIVE 1.8 and write this to the XML.

I need this to implement stop line objects. Would there be any time to upgrade to 1.8 any time soon with just the 1.7 feature subset but as a basis to start implementing such features?