BaseRobotModelObject.attach_mesh

BaseRobotModelObject.attach_mesh(mesh, name, link=None, frame=None)[source]

Rigidly attaches a compas mesh to a given link for visualization.

Parameters:
meshMesh

The mesh to attach to the robot model.

namestr

The identifier of the mesh.

linkLink

The link within the robot model or tool model to attach the mesh to. Optional. Defaults to the model’s end effector link.

frameFrame

The frame of the mesh. Defaults to compas.geometry.Frame.worldXY().

Returns:
None