MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / draw_waypoint_info

Function draw_waypoint_info

PythonAPI/util/lane_explorer.py:58–62  ·  view source on GitHub ↗
(debug, w, lt=5)

Source from the content-addressed store, hash-verified

56
57
58def draw_waypoint_info(debug, w, lt=5):
59 w_loc = w.transform.location
60 debug.draw_string(w_loc + carla.Location(z=0.5), "lane: " + str(w.lane_id), False, yellow, lt)
61 debug.draw_string(w_loc + carla.Location(z=1.0), "road: " + str(w.road_id), False, blue, lt)
62 debug.draw_string(w_loc + carla.Location(z=-.5), str(w.lane_change), False, red, lt)
63
64def draw_junction(debug, junction, l_time=10):
65 """Draws a junction bounding box and the initial and final waypoint of every lane."""

Callers 1

mainFunction · 0.85

Calls 1

LocationMethod · 0.45

Tested by

no test coverage detected