You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 2 vectors direction and speed. direction is between hard left at index 0 and hard right at index 1. speed is between min speed at index 0 and max speed at index 1
vect_dir, vect_prop=vect[:16], vect[16:] # split the vector in 2
44
+
vect_dir=softmax(vect_dir) # distribution de probabilité
45
+
vect_prop=softmax(vect_prop)
46
+
47
+
angle=sum(SPEED_LOOKUP*vect_dir) # moyenne pondérée des angles
48
+
# moyenne pondérée des vitesses
49
+
vitesse=sum(ANGLE_LOOKUP*vect_prop)
50
+
51
+
returnangle, vitesse
52
+
23
53
defai_update_lidar(self, lidar_data):
54
+
raiseNotImplementedError("This method doesn't work anymore")
24
55
lidar_data=np.array(lidar_data, dtype=np.float32)
25
56
# 2 vectors direction and speed. direction is between hard left at index 0 and hard right at index 1. speed is between min speed at index 0 and max speed at index 1
0 commit comments