upkie 9.0.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches

◆ __init__()

None __init__ (   self,
Backend  backend,
Optional[float]  frequency,
bool  frequency_checks,
Optional[RobotState init_state,
bool  regulate_frequency 
)

Initialize environment.

Parameters
backendBackend for interfacing with a simulator or a spine.
frequencyRegulated 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_checksIf 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_stateInitial state of the robot, only used in simulation.
regulate_frequencyIf set (default), the environment will regulate the control loop frequency to the value prescribed in frequency.
Exceptions
UpkieExceptionIf the configuration is invalid.

Reimplemented in UpkieServos.