We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imap.imap.lib.convertor.Opendrive2Apollo.add_lane_boundary
$ python3 -m pip show imap_box | grep Version Version: 0.1.6
... segment.start_position.x = lane.left_boundary[0].x IndexError: list index out of range
... segment.start_position.x = lane.center_line[0].x IndexError: list index out of range
... segment.start_position.x = lane.right_boundary[0].x IndexError: list index out of range
imap/imap/lib/convertor.py
Lines 205 to 223 in e4afa8f
Lines 225 to 238 in e4afa8f
Lines 240 to 258 in e4afa8f
Check if the list is empty.
# 1. left boundary if lane.left_boundary: segment = pb_lane.left_boundary.curve.segment.add() for point3d in lane.left_boundary: ... ... boundary_type.s = 0 boundary_type.types.append(pb_boundary_type)
# 2. center line if lane.center_line: segment = pb_lane.central_curve.segment.add() for point3d in lane.center_line: ... ... segment.length = pb_lane.length
# 3. right boundary if lane.right_boundary: segment = pb_lane.right_boundary.curve.segment.add() for point3d in lane.right_boundary: ... ... boundary_type.s = 0 boundary_type.types.append(pb_boundary_type)
The text was updated successfully, but these errors were encountered:
This scenario is too extreme, will there be a lane without a left_boundary?
Sorry, something went wrong.
No branches or pull requests
Version
$ python3 -m pip show imap_box | grep Version Version: 0.1.6
Traceback
Fix
imap/imap/lib/convertor.py
Lines 205 to 223 in e4afa8f
imap/imap/lib/convertor.py
Lines 225 to 238 in e4afa8f
imap/imap/lib/convertor.py
Lines 240 to 258 in e4afa8f
Check if the list is empty.
Suggested fix
The text was updated successfully, but these errors were encountered: