Whats the problem with my code? it doesn't make through the validation #432
Closed
jaimehilariopaz1
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
import math
def calculate_angle(waypoints, closest_idx):
p1 = waypoints[closest_idx]
p2 = waypoints[closest_idx + 1]
p3 = waypoints[closest_idx + 2]
def custom_reward(params):
all_wheels_on_track = params['all_wheels_on_track']
angle_between_waypoints = calculate_angle(params['waypoints'], params['closest_waypoints'][1])
speed = params['speed']
Beta Was this translation helpful? Give feedback.
All reactions