RobotModelArtist
- class compas_blender.artists.RobotModelArtist(*args, **kwargs)[source]
Bases:
compas_blender.artists.artist.BlenderArtist,compas.artists.robotmodelartist.RobotModelArtistVisualizer for robot models inside a Blender environment.
- Parameters
model (
compas.robots.RobotModel) – Robot model.collection (str or
bpy.types.Collection) – The name of the collection the object belongs to.
Methods
attach_mesh(mesh, name[, link, frame])Rigidly attaches a compas mesh to a given link for visualization.
attach_tool_model(tool_model)Attach a tool to the robot artist for visualization.
build(item, **kwargs)Build an artist corresponding to the item type.
build_as(item, artist_type, **kwargs)clear()Delete all objects created by the artist.
create([link, context])Recursive function that triggers the drawing of the robot model's geometry.
create_geometry(geometry[, name, color])Draw a COMPAS geometry in the respective CAD environment.
detach_mesh(name)Removes attached collision meshes with a given name.
Detach the tool.
draw()Draws all meshes attached to the robot model.
draw_collection(collection)Draws all collision geometry of the robot model.
Draws all visual geometry of the robot model.
get_artist_cls(data, **kwargs)meshes([link, visual, collision, ...])Returns all compas meshes of the model.
redraw([timeout])register(item_type, artist_type)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.
transform(native_mesh, transformation)Transforms a CAD-specific geometry using a COMPAS transformation.
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.