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.Note
Caution:
joint_names
may be rearranged.- Parameters
other (
JointTrajectoryPoint
) – TheJointTrajectoryPoint
to be merged.- Returns
JointTrajectoryPoint
– AJointTrajectoryPoint
with values for all included joints.- Raises
ValueError – If the
JointTrajectoryPoint
or the otherJointTrajectoryPoint
does not specify joint names for all joint values.