When a Lane is created using the function modules::world::create_lane_with_offset_from_line in commons.hpp, the created line sometimes is too short by one point.
The bug happens when the requested length of the new Lane, as determined by the parameters lane_width_current_lane.s_start and lane_width_current_lane.s_end, is not equal to 1.
This is almost always the case when a map is created using xodr_parser.py.
sampling to the exact length creates problems with curves, as the previous line is also a curve --> a inner lane has to be shorter and a outer lane has to be longer.
sampling lines not up to the full length does imho no harm, as linestrings are concatinated for planning anyway.
it's probably most obvious in plotting, but we can live with that.
When a Lane is created using the function
modules::world::create_lane_with_offset_from_line
in commons.hpp, the created line sometimes is too short by one point.The bug happens when the requested length of the new Lane, as determined by the parameters
lane_width_current_lane.s_start
andlane_width_current_lane.s_end
, is not equal to 1. This is almost always the case when a map is created using xodr_parser.py.