|
upkie
11.0.0
Open-source wheeled biped robots
|
Backward-compatible wrapper around UpkieGyropod with 4D obs / 1D action. More...
Public Member Functions | |
| def | __init__ (self, UpkieServos servos_env, float fall_pitch=1.0, float max_ground_velocity=3.0) |
| Initialize environment. More... | |
| Tuple[np.ndarray, Dict] | reset (self, *Optional[int] seed=None, Optional[dict] options=None) |
| Resets the environment and get an initial observation. More... | |
| Tuple[np.ndarray, float, bool, bool, dict] | step (self, np.ndarray action) |
| Run one timestep of the environment's dynamics. More... | |
Public Attributes | |
| observation_space | |
| Observation space. | |
| action_space | |
| Action space. | |
Backward-compatible wrapper around UpkieGyropod with 4D obs / 1D action.
This wrapper strips the yaw-related dimensions from upkie.envs.upkie_gyropod.UpkieGyropod, providing the same interface as the former pendulum environment:
\[ a = \begin{bmatrix} \dot{p}^* \end{bmatrix} \]
where \(\dot{p}^*\) is the commanded ground velocity in m/s.
\[ o = \begin{bmatrix} \theta \\ p \\ \dot{\theta} \\ \dot{p} \end{bmatrix} \]
where we denote by:
As with all Upkie environments, full observations from the spine (detailed in Observations) are also available in the info dictionary returned by the reset and step functions.