JointTrajectoryPoint.merged
- JointTrajectoryPoint.merged(other)[source]
Get a new
JointTrajectoryPoint
with thisJointTrajectoryPoint
merged with anotherJointTrajectoryPoint
. The otherJointTrajectoryPoint
takes precedence over thisJointTrajectoryPoint
in case a joint value is present in both.- Parameters:
- other
JointTrajectoryPoint
The
JointTrajectoryPoint
to be merged.
- other
- Returns:
JointTrajectoryPoint
A
JointTrajectoryPoint
with values for all included joints.
- Raises:
ValueError
If the
JointTrajectoryPoint
or the otherJointTrajectoryPoint
does not specify joint names for all joint values.
Notes
Caution:
joint_names
may be rearranged.