RoadMarking: ReferenceID
Describe the feature
A RoadMarking like e.g. a StopLine will often be logically connected to a corresponding TrafficLight or TrafficSign.
Describe the solution you would like
For that reason the class should have a reference_id that can create this connection
Describe alternatives you have considered
The reference might also be the other way around.
Describe the backwards compatibility
No breaking change.
Additional context
This is a feature that is related to features of TrafficAgents. The agent should
OpenDRIVE has both <reference> and <dependency>, and, since OpenDRIVE 1.8, encourages users to use these for connecting stop lines and traffic lights. Probably OSI should align with what OpenDRIVE does here.
There is a catch, however: previously, traffic lights were logically placed at the position where they affected traffic (so at the stop line, basically; they could still have a separate physical position). OpenDRIVE 1.8 does not recommend this anymore, and instead says to use references to the stop line instead. This is relevant e.g. for Chinese maps. I find this development very unfortunate, since IMHO it breaks backwards compatibility. For OSI, the logical lane description explicitly mandates that the logical lane assignment must be at the place where the traffic sign affects traffic. To keep backward compatibility, I think OSI should keep this requirement at least for 3.x.