Skip to content

Commit 2dfa2ae

Browse files
committed
fix bug
1 parent 4880986 commit 2dfa2ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PathTracking/model_predictive_speed_and_steer_control/model_predictive_speed_and_steer_control.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def get_linear_model_matrix(v, phi, delta):
105105

106106
return A, B, C
107107

108+
109+
def plot_car(x, y, yaw, steer=0.0, cabcolor="-r", truckcolor="-k"): # pragma: no cover
110+
108111
outline = np.array([[-BACKTOWHEEL, (LENGTH - BACKTOWHEEL), (LENGTH - BACKTOWHEEL), -BACKTOWHEEL, -BACKTOWHEEL],
109112
[WIDTH / 2, WIDTH / 2, - WIDTH / 2, -WIDTH / 2, WIDTH / 2]])
110113

0 commit comments

Comments
 (0)