Open johschmitz opened 4 months ago
I'm having the same problem,After understanding this causes and solutions are as follows
The opendrive standard requires signal and object ids to be Unique ID within database.
https://publications.pages.asam.net/standards/ASAM_OpenDRIVE/ASAM_OpenDRIVE_Specification/latest/specification/13_objects/13_01_introduction.html
So in the code implemented here, class _SignalObjectBase sets up that the id needs to be unique, and if it's not then a new id is automatically created.
and both class Signal and class Object are integrated from class _SignalObjectBase.
My solution so far is to use a global id setting, e.g. set it in the config file or set the starting id of the object and signal to differ by 100 and then add 1 for each execution.
I am getting this warning
when I use the library the second time. Is there some kind of memory for the IDs that I need to reset somehow before doing that? Or can I somehow disable this behavior and avoid changing the IDs? Strange enough this same problem does not happen with roads.