MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / zero_ctrl

Function zero_ctrl

tools/robosuite_integration/common.py:92–98  ·  view source on GitHub ↗

Apply zero actuator command every step (passive dynamics under gravity).

(nu: int)

Source from the content-addressed store, hash-verified

90
91
92def zero_ctrl(nu: int) -> CtrlFn:
93 """Apply zero actuator command every step (passive dynamics under gravity)."""
94
95 def _fn(t: int, qpos: np.ndarray, qvel: np.ndarray) -> np.ndarray:
96 return np.zeros(nu, dtype=np.float64)
97
98 return _fn
99
100
101def sinusoid_ctrl(nu: int, *, amp: float = 0.4, period: int = 40) -> CtrlFn:

Callers 1

runner.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected