PlanningScene
- class compas_fab.robots.PlanningScene(robot)[source]
Bases:
object
Represents the planning scene.
- Parameters
robot (
Robot
) – A reference to the robot in the planning scene.- Attributes
robot (
Robot
) – A reference to the robot in the planning scene.client – A reference to the robot’s backend client.
Methods
__init__
(robot)add_attached_collision_mesh
(...[, scale])Add an attached collision object to the planning scene.
add_attached_tool
([tool])Add the robot's attached tool to the planning scene if tool is set.
add_collision_mesh
(collision_mesh[, scale])Add a collision mesh to the planning scene.
append_collision_mesh
(collision_mesh[, scale])Append a collision mesh to the planning scene.
Attaches a collision mesh to the robot's end-effector.
Ensure that the planning scene's robot has a defined client.
Remove an attached collision object from the planning scene.
Remove the robot's attached tool from the planning scene.
Remove a collision object from the planning scene.
reset
()Resets the planning scene, removing all added collision meshes.
Attributes
client
The backend client.