MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / _orientation

Function _orientation

leaderboard/team_code/auto_pilot.py:69–70  ·  view source on GitHub ↗
(yaw)

Source from the content-addressed store, hash-verified

67
68
69def _orientation(yaw):
70 return np.float32([np.cos(np.radians(yaw)), np.sin(np.radians(yaw))])
71
72
73def get_collision(p1, v1, p2, v2):

Callers 2

_is_walker_hazardMethod · 0.70
_is_vehicle_hazardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected