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

Function cast_angle

roach/utils/transforms.py:126–128  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

124 return np.array(location), np.array(rotation)
125
126def cast_angle(x):
127 # cast angle to [-180, +180)
128 return (x+180.0)%360.0-180.0

Callers 3

_is_at_wrong_laneMethod · 0.90
rot_global_to_refFunction · 0.85
rot_ref_to_globalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected