libOpenDRIVE icon indicating copy to clipboard operation
libOpenDRIVE copied to clipboard

Lane direction is not taken into account

Open hahne opened this issue 1 year ago • 3 comments

Hi,

Thanks for the great work!

One question, is there a reason why the lane direction is not taken into account or am I missing something?

According to the OpenDRIVE standard, lanes are grouped in left and in right lanes: <lanes> <laneSection s="0.0"> <left> <lane id="2" type="border" level="false"> <link> </link> <width sOffset="0.0" a="1.0" b="0.0" c="0.0" d="0.0"/> </lane> <lane id="1" type="driving" level="false"> <link> </link> <width sOffset="0.0" a="4.0" b="0.0" c="0.0" d="0.0"/> </lane> </left> <center> <lane id="0" type="none" level="false"> <link> </link> </lane> </center> <right> <lane id="-1" type="driving" level="false"> <link> </link> <width sOffset="0.0" a="4.0" b="0.0" c="0.0" d="0.0"/> </lane> <lane id="-2" type="border" level="false"> <link> </link> <width sOffset="0.0" a="1.0" b="0.0" c="0.0" d="0.0"/> </lane> </right> </laneSection> </lanes>

This tells you that the lane direction is equal to the center lane direction for for the lanes grouped under the -tag. But I don't see this information being available in libOpenDRIVE. Am I missing something?

I added it in my implementation. Can make a pull request if there's any interest.

Kind Regards, Johannes

hahne avatar May 22 '23 08:05 hahne