RobotModelArtist

class compas_rhino.artists.RobotModelArtist(*args, **kwargs)[source]

Bases: compas_rhino.artists.artist.RhinoArtist, compas.artists.robotmodelartist.RobotModelArtist

Artist for drawing robot models.

Parameters
  • model (compas.robots.RobotModel) – Robot model.

  • layer (str, optional) – The name of the layer that will contain the robot meshes.

Inherited Attributes

AVAILABLE_CONTEXTS

CONTEXT

ITEM_ARTIST

Methods

clear_layer

Clear the main layer of the artist.

create_geometry

Draw a COMPAS geometry in the respective CAD environment.

draw

Same as draw_visual.

draw_attached_meshes

Draw all the geometries attached to the robot model.

draw_collision

Draw all the collision geometries of the robot model.

draw_visual

Draw all the visual geometries of the robot model.

redraw

Redraw the Rhino view.

transform

Transforms a CAD-specific geometry using a COMPAS transformation.

Inherited Methods

attach_mesh

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

attach_tool_model

Attach a tool to the robot artist for visualization.

build

Build an artist corresponding to the item type.

build_as

clear

create

Recursive function that triggers the drawing of the robot model's geometry.

detach_mesh

Removes attached collision meshes with a given name.

detach_tool_model

Detach the tool.

draw_collection

meshes

Returns all compas meshes of the model.

register

scale

Scales the robot model's geometry by factor (absolute).

scale_link

Recursive function to apply the scale transformation on each link.

update

Triggers the update of the robot geometry.

update_tool

Triggers the update of the robot geometry of the tool.