JointTrajectoryPoint.merged

JointTrajectoryPoint.merged(other)[source]

Get a new JointTrajectoryPoint with this JointTrajectoryPoint merged with another JointTrajectoryPoint. The other JointTrajectoryPoint takes precedence over this JointTrajectoryPoint in case a joint value is present in both.

Parameters:
otherJointTrajectoryPoint

The JointTrajectoryPoint to be merged.

Returns:
JointTrajectoryPoint

A JointTrajectoryPoint with values for all included joints.

Raises:
ValueError

If the JointTrajectoryPoint or the other JointTrajectoryPoint does not specify joint names for all joint values.

Notes

Caution: joint_names may be rearranged.