Skip to content

Commit 09fea0d

Browse files
adjust route visualiser line color to not interfere with traffic light detection
1 parent a5d7a40 commit 09fea0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

srunner/tools/route_visualisation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ def visualise_route(route: list[carla.Location], lifetime=600):
1313

1414
world_debug = CarlaDataProvider.get_world().debug
1515

16-
line_color = carla.Color(r=255, g=0, b=0)
17-
waypoint_color = carla.Color(r=0, g=0, b=255)
16+
line_color = carla.Color(r=0, g=0, b=60)
17+
waypoint_color = carla.Color(r=0, g=0, b=80)
1818

1919
for waypoint in range(len(route) - 1):
2020
begin = route[waypoint].location
2121
end = route[waypoint + 1].location
2222

2323
world_debug.draw_line(
24-
begin=begin, end=end, thickness=0.5, color=line_color, life_time=lifetime
24+
begin=begin, end=end, thickness=0.02, color=line_color, life_time=lifetime
2525
)
2626
world_debug.draw_point(
2727
location=begin, size=0.1, color=waypoint_color, life_time=lifetime
2828
)
2929

3030
# draw final waypoint
3131
world_debug.draw_point(
32-
location=route[-1].location, size=0.1, color=waypoint_color, life_time=lifetime
32+
location=route[-1].location, size=0.05, color=waypoint_color, life_time=lifetime
3333
)

0 commit comments

Comments
 (0)