From ea3698ba4f9d5b6f35472563c6499d7fa1f8be25 Mon Sep 17 00:00:00 2001 From: Bharath chandra Date: Sat, 16 Apr 2022 20:04:56 -0400 Subject: [PATCH] Update vehicle_control.py Correct typo --- examples/vehicle_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vehicle_control.py b/examples/vehicle_control.py index 2aca850..6966022 100644 --- a/examples/vehicle_control.py +++ b/examples/vehicle_control.py @@ -39,7 +39,7 @@ def vehicle_kinematics(state, action): #Construct cost to overtake -px1, py2, heading1, vel1, steer1 = state[:5] +px1, py1, heading1, vel1, steer1 = state[:5] px2, py2, heading2, vel2, steer2 = state[5:] #cost for reference lane L = 0.2*(py1 - 1.5)**2