RobotModel(name, joints=, links=, materials=, **kwargs)
RobotModel is the root element of the model.
Instances of this class represent an entire robot as defined in an URDF structure.
In line with URDF limitations, only tree structures can be represented by this model, ruling out all parallel robots.
name – Unique name of the robot.
joints – List of joint elements.
links – List of links of the robot.
materials – List of global materials.
root – Root link of the model.
attr – Non-standard attributes.
add_joint(name, type, parent_link, child_link)
Adds a joint to the robot model.
add_link(name[, visual_meshes, …])
Adds a link to the robot model.
compute_transformations(joint_state[, link, …])
Recursive function to calculate the transformations of each joint.
Check if geometry has been loaded.
Returns a list of all children joints of the link.
Returns the parent joint of the link or None if not found.
Calculate the robot’s forward kinematic.
compas.robots.RobotModelfrom its data representation.
Construct an object from serialised data contained in a JSON file.
Construct a robot model from a URDF file model description.
Construct a robot model from a URDF description as string.
Returns the name of the base link.
Returns the configurable joint names.
Returns the configurable joints.
Returns the end effector link.
Returns the name of the end effector link.
Get a joint in a robot model matching by its name.
Returns the joint types of the configurable joints.
Get a link in a robot model matching by its name.
Iterator over the chain of all elements between a pair of start and end elements.
Iterator over the chain of joints between a pair of start and end links.
Iterator over the joints that starts with the root link’s children joints.
Iterator over the chain of links between a pair of start and end links.
Iterator over the links that starts with the root link.
Load external geometry resources, such as meshes.
Removes a joint to the robot model.
Removes a link to the robot model.
Scales the robot by factor (absolute).
Returns the data dictionary that represents the
Serialize the data representation of an object to a JSON file.
Construct a URDF file model description from a robot model.
Construct a URDF string model description from a robot model.
Returns the transformed axes based on the joint_state.
Returns the transformed frames based on the joint_state.
Validate the data of this object against its data schema (self.DATASCHEMA).
Validate the data loaded from a JSON representation of the data of this object against its data schema (self.DATASCHEMA).