PyBulletClient
- class compas_fab.backends.PyBulletClient[source]
Bases:
PyBulletBase
,ClientInterface
Interface to use pybullet as backend.
compas_fab.backends.PyBulletClient
is a context manager type, so it’s best used in combination with thewith
statement to ensure resource deallocation.Thanks to Yijiang Huang and his work in pybullet_planning for much inspiration.
- Parameters:
Examples
>>> from compas_fab.backends import PyBulletClient >>> with PyBulletClient(connection_type='direct') as client: ... print('Connected: %s' % client.is_connected) Connected: True
Methods
Create a PyBullet body from an OBJ file.
Saves an editable copy of the robot's model and its meshes for shadowing the state of the robot on the PyBullet server.
Checks whether any of the collision objects are colliding.
Checks whether the robot and its attached collision objects with its current configuration is is colliding with any collision objects.
Checks whether the current or given configuration is in collision.
Checks whether the robot and its attached collision objects with its current configuration is colliding with itself.
Convert compas mesh and its frame to a pybullet body.
Checks if a
compas_fab.robots.Robot
has been cached for use with PyBullet.Checks if the geometry of a
compas_fab.robots.Robot
has been cached for use with PyBullet.Filters from a list of configurations those which are in collision.
Returns the filepath of the editable copy of the robot's model for shadowing the state of the robot on the PyBullet server.
Returns the editable copy of the robot's model for shadowing the state of the robot on the PyBullet server.
Gets the robot's current pose.
Returns the internal PyBullet id of the robot's model for shadowing the state of the robot on the PyBullet server.
Create a pybullet robot using the input urdf file.
Loads the semantic information of a robot.
"Load a UR5 robot to PyBullet.
Reloads the PyBullet server with the robot's cached model.
Sets the robot's pose to the given configuration.
By default, the physics server will not step the simulation, unless you explicitly send a
step_simulation
command.Inherited Methods
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Connect from the PyBullet server.
Disconnect from the PyBullet server.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.
Forwards call to appropriate method in the planner.