|
upkie 10.0.0
Open-source wheeled biped robots
|
Base class with features shared by all Upkie environments. More...
Public Member Functions | |
| None | __init__ (self, Backend backend, Optional[float] frequency, bool frequency_checks, Optional[RobotState] init_state, bool regulate_frequency) |
| Initialize environment. More... | |
| None | close (self) |
| Close the environment and clean up resources. More... | |
| Optional[float] | dt (self) |
Regulated period of the control loop in seconds, or None if there is no loop frequency regulation. | |
| Optional[float] | frequency (self) |
Regulated frequency of the control loop in Hz, or None if there is no loop frequency regulation. | |
| def | get_env_observation (self, dict spine_observation) |
| Get Gym environment observation from spine observation. More... | |
| def | get_neutral_action (self) |
| Get neutral action for this environment. More... | |
| dict | get_spine_action (self, env_action) |
| Get spine action from Gym environment action. More... | |
| None | log (self, str name, Any entry) |
| Log a new entry to the "env" key of the action dictionary. More... | |
| Tuple[dict, dict] | reset (self, Optional[int] seed=None, Optional[dict] options=None) |
| Resets the backend and get an initial observation. More... | |
| Tuple[dict, float, bool, bool, dict] | step (self, dict action) |
| Run one timestep of the environment's dynamics. More... | |
| None | update_init_rand (self, **kwargs) |
| Update initial-state randomization. More... | |
Base class with features shared by all Upkie environments.
Upkie environments do a number of things under the hood: