RobotModelArtist.attach_mesh
- RobotModelArtist.attach_mesh(mesh, name, link=None, frame=None)[source]
Rigidly attaches a compas mesh to a given link for visualization.
- Parameters
mesh (
compas.datastructures.Mesh
) – The mesh to attach to the robot model.name (str) – The identifier of the mesh.
link (
compas.robots.Link
) – The link within the robot model or tool model to attach the mesh to. Optional. Defaults to the model’s end effector link.frame (
compas.geometry.Frame
) – The frame of the mesh. Defaults tocompas.geometry.Frame.worldXY()
.
- Returns
None