36 namespace joint_trajectory_downloader
45 std::vector<JointTrajPtMessage> points(messages);
49 if (points.size() < 2)
53 points.begin()->setSequence(SpecialSeqValues::START_TRAJECTORY_DOWNLOAD);
54 points.back().setSequence(SpecialSeqValues::END_TRAJECTORY);
58 ROS_WARN(
"Attempting robot reconnection");
62 ROS_INFO(
"Sending trajectory points, size: %d", (
int)points.size());
64 for (
int i = 0; i < (int)points.size(); ++i)
66 ROS_DEBUG(
"Sending joints trajectory point[%d]", i);
68 points[i].toTopic(msg);
71 ROS_DEBUG(
"Point[%d] sent to controller", i);
73 ROS_WARN(
"Failed sent joint point, skipping point");