MCPcopy Create free account
hub / github.com/TeleHuman/PBHC / wrap_to_pi_float

Function wrap_to_pi_float

humanoidverse/deploy/mujoco.py:29–32  ·  view source on GitHub ↗
(angles:float)

Source from the content-addressed store, hash-verified

27import numpy as np
28
29def wrap_to_pi_float(angles:float):
30 angles %= 2*np.pi
31 angles -= 2*np.pi * (angles > np.pi)
32 return angles
33
34
35

Callers 2

_key_callbackMethod · 0.70
_key_callbackMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected