Skip to content

Commit

Permalink
disabling shoulder as a valid sign placement lane
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoSilvera committed May 24, 2023
1 parent 0dc5973 commit fd593dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ScenarioRunner/route_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,11 @@ def _get_valid_sign_transform(self, wp_transform):
return None
# find the first non-road waypoint so our drivers can read it (with a limit)
max_tries: int = 100
while max_tries > 0 and _wp.lane_type not in [carla.LaneType.Sidewalk, carla.LaneType.Shoulder]:
valid_sign_lanes = [
carla.LaneType.Sidewalk,
# carla.LaneType.Shoulder, # disable shoulder
]
while max_tries > 0 and _wp.lane_type not in valid_sign_lanes:
max_tries -= 1
right_wp = _wp.get_right_lane()
if right_wp is not None:
Expand Down

0 comments on commit fd593dc

Please sign in to comment.