MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / get_signed_angle_diff

Function get_signed_angle_diff

PythonAPI/examples/gamma_crowd.py:330–337  ·  view source on GitHub ↗
(vector1, vector2)

Source from the content-addressed store, hash-verified

328
329''' ========== UTILITY FUNCTIONS AND CLASSES ========== '''
330def get_signed_angle_diff(vector1, vector2):
331 theta = math.atan2(vector1.y, vector1.x) - math.atan2(vector2.y, vector2.x)
332 theta = np.rad2deg(theta)
333 if theta > 180:
334 theta -= 360
335 elif theta < -180:
336 theta += 360
337 return theta
338
339def get_steer_angle_range(actor):
340 actor_physics_control = actor.get_physics_control()

Callers 2

get_ttc_velFunction · 0.70
do_controlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected