MCPcopy Create free account
hub / github.com/commaai/research / draw_path_on

Function draw_path_on

view_steering_model.py:81–84  ·  view source on GitHub ↗
(img, speed_ms, angle_steers, color=(0,0,255))

Source from the content-addressed store, hash-verified

79 return y_actual, curvature
80
81def draw_path_on(img, speed_ms, angle_steers, color=(0,0,255)):
82 path_x = np.arange(0., 50.1, 0.5)
83 path_y, _ = calc_lookahead_offset(speed_ms, angle_steers, path_x)
84 draw_path(img, path_x, path_y, color)
85
86# ***** main loop *****
87if __name__ == "__main__":

Callers 1

Calls 2

calc_lookahead_offsetFunction · 0.85
draw_pathFunction · 0.85

Tested by

no test coverage detected