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

◆ __init__()

None __init__ (   self,
Backend  backend,
Optional[float]   frequency = 200.0,
bool   frequency_checks = True,
Optional[RobotState]   init_state = None,
bool   regulate_frequency = True,
float   max_gain_scale = 5.0 
)

Initialize servos 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.
max_gain_scaleMaximum value for kp or kd gain scales.

Reimplemented from UpkieEnv.