JointTrajectoryPoint
-
class
compas_fab.robots.JointTrajectoryPoint(values=None, types=None, velocities=None, accelerations=None, effort=None, time_from_start=None)[source] Bases:
compas_fab.robots.configuration.ConfigurationDefines a point within a trajectory.
A trajectory point is a sub-class of
Configurationextended with acceleration, effort and time from start information.Trajectory points are defined either as values + velocities and accelerations, or as values + efforts.
- Attributes
values (
listoffloat) – Joint values expressed in radians or meters, depending on the respective type.types (
listofcompas.robots.Joint.TYPE) – Joint types, e.g. a list ofcompas.robots.Joint.REVOLUTEfor revolute joints.time_from_start (
Duration) – Duration of trajectory point counting from the start.
Methods
__init__([values, types, velocities, …])Initialize self.
copy()from_data(data)Construct a configuration from its data representation.
Construct a configuration from prismatic and revolute joint values.
from_revolute_values(values)Construct a configuration from revolute joint values in radians.
scale(scale_factor)Scales the joint positions of the current configuration.
scaled(scale_factor)Returns a scaled copy of this configuration.
to_data()Return the data dictionary that represents the configuration, and from which it can be reconstructed.
Attributes
accelerationsdataThe data representing the trajectory point.
effortpositionsAlias of
values.prismatic_valuesPrismatic joint values in meters.
revolute_valuesRevolute joint values in radians.
velocities