JointTrajectoryPoint
- class compas_fab.robots.JointTrajectoryPoint[source]
Bases:
Configuration
Defines a point within a trajectory.
A trajectory point is a sub-class of
compas_robots.Configuration
extended 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
list
offloat
, optional Joint values expressed in radians or meters, depending on the respective type.
- joint_types
list
ofcompas_robots.Joint.TYPE
, optional Joint types, e.g. a
list
ofcompas_robots.Joint.REVOLUTE
for revolute joints.- velocities
list
offloat
, optional Velocity of each joint.
- accelerations
list
offloat
, optional Acceleration of each joint.
- effort
list
offloat
, optional Effort of each joint.
- time_from_start
Duration
, optional Duration of trajectory point counting from the start.
- joint_values
- Attributes:
joint_values
list
offloat
Joint values expressed in radians or meters, depending on the respective type.
joint_types
list
ofcompas_robots.Joint.TYPE
Joint joint_types, e.g.
velocities
list
offloat
accelerations
list
offloat
effort
list
offloat
- time_from_start
Duration
Duration of trajectory point counting from the start.
positions
list
offloat
- dataobj:dict
The data representing the trajectory point.
Methods
Get a new
JointTrajectoryPoint
with thisJointTrajectoryPoint
merged with anotherJointTrajectoryPoint
.Inherited Methods
Converts the instance to a string.
Raises an error if there is not a joint name for every value.
Returns
True
if 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.