RobotModelArtist
-
class
compas_blender.artists.
RobotModelArtist
(model, layer=None)[source] Bases:
compas.robots.base_artist._artist.BaseRobotModelArtist
Visualizer for robot models inside a Blender environment.
- Parameters
model (
compas.robots.RobotModel
) – Robot model.layer (str, optional) – The name of the layer that will contain the robot meshes.
Methods
draw_geometry
(geometry[, name, color])Draw a COMPAS geometry in the respective CAD environment.
redraw
([timeout])transform
(native_mesh, transformation)Transforms a CAD-specific geometry using a COMPAS transformation.
Inherited Methods
attach_tool_model
(tool_model)Attach a tool to the robot artist.
create
([link, context])Recursive function that triggers the drawing of the robot model’s geometry.
Detach the tool.
Draws all collision geometry of the robot model.
Draws all visual geometry of the robot model.
scale
(factor)Scales the robot model’s geometry by factor (absolute).
scale_link
(link, transformation)Recursive function to apply the scale transformation on each link.
update
(joint_state[, visual, collision])Triggers the update of the robot geometry.
update_tool
([joint_state, visual, …])Triggers the update of the robot geometry of the tool.