execution_utils.cpp
Go to the documentation of this file.
1 //
2 // Created by yijiangh on 7/10/17.
3 //
4 
5 #include "execution_utils.h"
6 
7 void choreo_execution_gatekeeper::appendTrajectory(trajectory_msgs::JointTrajectory& original,
8  const trajectory_msgs::JointTrajectory& next)
9 {
10  ros::Duration last_t =
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)
13  {
14  trajectory_msgs::JointTrajectoryPoint pt = next.points[i];
15  pt.time_from_start += last_t;
16 
17  original.points.push_back(pt);
18  }
19 }
void appendTrajectory(trajectory_msgs::JointTrajectory &original, const trajectory_msgs::JointTrajectory &next)


choreo_execution_gatekeeper
Author(s):
autogenerated on Thu Jul 18 2019 03:59:24