upkie 10.1.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches
PyBulletBackend Class Reference

Backend using PyBullet physics simulation. More...

Public Member Functions

None __init__ (self, float dt, Optional[dict] bullet_config=None, bool gui=True, str js_path="/dev/input/js0", Optional[int] nb_substeps=None)
 Initialize PyBullet backend. More...
 
def __del__ (self)
 Disconnect PyBullet when deleting the backend instance.
 
int robot_id (self)
 Identifier of the robot body in the PyBullet simulation.
 
None close (self)
 Disconnect PyBullet properly. More...
 
dict reset (self, RobotState init_state)
 Reset the PyBullet simulation and get an initial observation. More...
 
dict step (self, dict action)
 Apply action and step the PyBullet simulation. More...
 
dict get_spine_observation (self)
 Get observation in spine format from PyBullet simulation. More...
 
float compute_joint_torque (self, str joint_name, float feedforward_torque, float target_position, float target_velocity, float kp_scale, float kd_scale, float maximum_torque)
 Reproduce the moteus position controller in PyBullet. More...
 
None randomize_inertias (self, float inertia_variation)
 Randomize the inertias of all robot links. More...
 
None set_external_forces (self, Dict[str, ExternalForce] external_forces)
 Set external forces to apply to robot links at next step. More...
 
List[PointContactget_contact_points (self, Optional[str] link_name=None)
 Get contact points from PyBullet simulation. More...
 

Public Attributes

 joystick
 Joystick interface for writing observations, or None if no joystick device was found.
 

Detailed Description

Backend using PyBullet physics simulation.


The documentation for this class was generated from the following file: