AttachedCollisionMesh
- class compas_fab.robots.AttachedCollisionMesh[source]
Bases:
DataRepresents a collision mesh that is attached to a
Robot’sLink.- Parameters:
- collision_mesh
compas_fab.robots.CollisionMesh The collision mesh to be attached to the robot model.
- link_name
str The name of the
Linkthe collision mesh will be attached to.- touch_links
listofstr, optional The list of link names the collision mesh is allowed to touch. Defaults to the link it is attached to.
- weight
float, optional The weight of the attached object in kg. Defaults to
1.0.
- collision_mesh
- Attributes:
- collision_mesh
compas_fab.robots.CollisionMesh The collision mesh we want to attach.
- link_name
str The name of the
Linkthe collision mesh will be attached to.- touch_links
listofstr The list of link names the collision mesh is allowed to touch. Defaults to the link it is attached to.
- weight
float The weight of the attached object in kg.
- collision_mesh
Examples
>>> mesh = Mesh.from_stl(compas_fab.get("planning_scene/cone.stl")) >>> cm = CollisionMesh(mesh, "tip") >>> ee_link_name = "ee_link" >>> touch_links = ["wrist_3_link", "ee_link"] >>> acm = AttachedCollisionMesh(cm, ee_link_name, touch_links)
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.