JointTrajectory

class compas_fab.robots.JointTrajectory[source]

Bases: Trajectory

Describes a joint trajectory as a list of trajectory points.

Parameters:
trajectory_pointslist of JointTrajectoryPoint, optional

List of points composing the trajectory.

joint_nameslist of str, optional

List of joint names of the trajectory.

start_configurationcompas_robots.Configuration, optional

Start configuration for the trajectory.

fractionfloat, optional

Indicates the percentage of requested trajectory that was calculated, e.g. 1 means the full trajectory was found.

attached_collision_mesheslist of compas_fab.robots.AttachedCollisionMesh

The attached collision meshes included in the calculation of this trajectory.

attributesdict

Custom attributes of the trajectory.

Attributes:
pointslist of JointTrajectoryPoint

List of points composing the trajectory.

joint_nameslist of str

List of joint names of the trajectory.

start_configurationcompas_robots.Configuration

Start configuration for the trajectory.

fractionfloat

Indicates the percentage of requested trajectory that was calculated, e.g. 1 means the full trajectory was found.

attached_collision_mesheslist of compas_fab.robots.AttachedCollisionMesh

The attached collision meshes included in the calculation of this trajectory.

attributesdict
datadict

The data representing the trajectory.

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.