8 const trajectory_msgs::JointTrajectory& next)
11 original.points.empty() ?
ros::Duration(0.0) : original.points.back().time_from_start;
12 for (std::size_t i = 0; i < next.points.size(); ++i)
14 trajectory_msgs::JointTrajectoryPoint pt = next.points[i];
15 pt.time_from_start += last_t;
17 original.points.push_back(pt);
void appendTrajectory(trajectory_msgs::JointTrajectory &original, const trajectory_msgs::JointTrajectory &next)