Skip to content

Commit

Permalink
Fix coefficient value in lanewidth entry
Browse files Browse the repository at this point in the history
- width to increase 2 m along 50 m
- for linear change b = 2/50 = 0.04
  • Loading branch information
eknabevcc committed Oct 17, 2024
1 parent 787d0bc commit e8c7a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/xodr/road_with_multiple_lane_widths.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def road(self, **kwargs):

road = xodr.create_road(xodr.Line(200), id=0, lane_width=3)

road.lanes.lanesections[0].leftlanes[0].add_lane_width(a=3, b=2, soffset=100)
road.lanes.lanesections[0].leftlanes[0].add_lane_width(a=3, b=0.04, soffset=100)
road.lanes.lanesections[0].leftlanes[0].add_lane_width(a=5, b=0, soffset=150)

# create the opendrive
Expand Down

0 comments on commit e8c7a6e

Please sign in to comment.