upkie 9.0.0
Open-source wheeled biped robots
|
None __init__ | ( | self, | |
Backend | backend, | ||
Optional[float] | frequency, | ||
bool | frequency_checks, | ||
Optional[RobotState] | init_state, | ||
bool | regulate_frequency | ||
) |
Initialize environment.
backend | Backend for interfacing with a simulator or a spine. |
frequency | Regulated frequency of the control loop, in Hz. Can be prescribed even when regulate_frequency is unset, in which case self.dt will be defined but the loop frequency will not be regulated. |
frequency_checks | If regulate_frequency is set and this parameter is True , a warning will be issued every time the control loop runs slower than the desired frequency . |
init_state | Initial state of the robot, only used in simulation. |
regulate_frequency | If set (default), the environment will regulate the control loop frequency to the value prescribed in frequency . |
UpkieException | If the configuration is invalid. |
Reimplemented in UpkieServos.