Apply zero actuator command every step (passive dynamics under gravity).
(nu: int)
| 90 | |
| 91 | |
| 92 | def 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 | |
| 101 | def sinusoid_ctrl(nu: int, *, amp: float = 0.4, period: int = 40) -> CtrlFn: |