JointTrajectoryPoint
- class compas_fab.robots.JointTrajectoryPoint[source]
Bases:
ConfigurationDefines a point within a trajectory.
A trajectory point is a sub-class of
compas_robots.Configurationextended with acceleration, effort and time from start information.Trajectory points are defined either as joint_values + velocities and accelerations, or as joint_values + efforts.
- Parameters:
- joint_values
listoffloat, optional Joint values expressed in radians or meters, depending on the respective type.
- joint_types
listofcompas_robots.Joint.TYPE, optional Joint types, e.g. a
listofcompas_robots.Joint.REVOLUTEfor revolute joints.- velocities
listoffloat, optional Velocity of each joint.
- accelerations
listoffloat, optional Acceleration of each joint.
- effort
listoffloat, optional Effort of each joint.
- time_from_start
Duration, optional Duration of trajectory point counting from the start.
- joint_values
- Attributes:
joint_valueslistoffloatJoint values expressed in radians or meters, depending on the respective type.
joint_typeslistofcompas_robots.Joint.TYPEJoint joint_types, e.g.
velocitieslistoffloataccelerationslistoffloateffortlistoffloat- time_from_start
Duration Duration of trajectory point counting from the start.
positionslistoffloat- dataobj:dict
The data representing the trajectory point.
Methods
Get a new
JointTrajectoryPointwith thisJointTrajectoryPointmerged with anotherJointTrajectoryPoint.Inherited Methods
Converts the instance to a string.
Raises an error if there is not a joint name for every value.
Returns
Trueif the other Configuration's joint_values are within a certain range.Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct a configuration from prismatic and revolute joint values.
Construct a configuration from revolute joint values in radians.
Generator over the differences to another Configuration's joint_values.
Returns the maximum difference to another Configuration's joint values.
Merge the configuration with another configuration in place along joint names.
Scales the joint positions of the current configuration.
Return a scaled copy of this configuration.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.