upkie 9.0.0
Open-source wheeled biped robots
|
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.
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 . |
max_gain_scale | Maximum value for kp or kd gain scales. |
Reimplemented from UpkieEnv.