upkie  11.0.0
Open-source wheeled biped robots

◆ __init__()

None __init__ (   self,
float  dt,
bool   gui = True,
float   inertia_variation = 0.0,
Optional[Dict[str, JointProperties]]   joint_properties = None,
str   js_path = "/dev/input/js0",
Optional[Model]   model = None,
Optional[int]   nb_substeps = None,
float   torque_control_kd = 1.0,
float   torque_control_kp = 20.0 
)

Initialize PyBullet backend.

Parameters
dtSimulation time step in seconds.
guiIf True, run PyBullet with GUI. If False, run headless.
inertia_variationRelative variation for domain randomization of link masses and inertias. Zero means no randomization.
joint_propertiesPer-joint simulation properties. Dictionary mapping joint names to upkie.model.joint_properties.JointProperties instances.
js_pathPath to joystick device. Defaults to "/dev/input/js0".
modelRobot model. If None, defaults to the standard Upkie model from upkie_description.
nb_substepsNumber of substeps for the PyBullet simulation.
torque_control_kdDerivative gain for torque control.
torque_control_kpProportional gain for torque control.