- class compas.robots.Joint(name, type, parent, child, origin=None, axis=None, calibration=None, dynamics=None, limit=None, safety_controller=None, mimic=None, **kwargs)
Representation of the kinematics and dynamics of a joint and its safety limits.
str) – Unique name for the joint.
Origin) – Transformation from the parent link to the child link frame.
ParentLinkor str) – Parent link instance or parent link name.
ChildLinkor str) – Child link instance or name of child link.
Axis) – Joint axis specified in the joint frame. Represents the axis of rotation for revolute joints, the axis of translation for prismatic joints, and the surface normal for planar joints. The axis is specified in the joint frame of reference.
Calibration) – Reference positions of the joint, used to calibrate the absolute position of the joint.
Dynamics) – Physical properties of the joint. These values are used to specify modeling properties of the joint, particularly useful for simulation.
Limit) – Joint limit properties.
SafetyController) – Safety controller properties.
Mimic) – Used to specify that the defined joint mimics another existing joint.
dict) – Non-standard attributes.
Link) – Joint’s child link
float) – The current position of the joint. This depends on the joint type, i.e. for revolute joints, it will be the rotation angle in radians, for prismatic joints the translation in meters.
- Class Attributes
int) – Revolute joint type.
int) – Continuous joint type.
int) – Prismatic joint type.
int) – Fixed joint type.
int) – Floating joint type.
int) – Planar joint type.
Returns a transformation of a continuous joint.
Returns an identity transformation.
Returns a transformation of a floating joint.
Returns a transformation of a planar joint.
Returns a transformation of a prismatic joint.
Returns a transformation of a revolute joint.
Returns the transformation of the joint.
Make an independent copy of the data object.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Trueif the joint can be configured, otherwise
Trueif the joint can be scaled, otherwise
Scale the joint origin and limit (only if scalable) by a given factor.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Transform the joint in place.
Validate the object's data against its data schema (self.DATASCHEMA).
Validate the object's data against its json schema (self.JSONSCHEMA).