MCPcopy Create free account
hub / github.com/Thinklab-SJTU/Bench2Drive / normalize_angle

Function normalize_angle

tools/utils.py:175–179  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

173 return relative_pos
174
175def normalize_angle(x):
176 x = x % (2 * np.pi) # force in range [0, 2 pi)
177 if x > np.pi: # move to [-pi, pi)
178 x -= 2 * np.pi
179 return x
180
181def build_skeleton(ped, sk_links):
182 ######## get the pedestrian skeleton #########

Callers 1

get_bounding_boxesMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected