(debug, w, lt=5)
| 56 | |
| 57 | |
| 58 | def 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 | |
| 64 | def draw_junction(debug, junction, l_time=10): |
| 65 | """Draws a junction bounding box and the initial and final waypoint of every lane.""" |