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");
virtual bool sendMsg(industrial::simple_message::SimpleMessage &message)
SmplMsgConnection * connection_
virtual bool isConnected()=0
bool send_to_robot(const std::vector< JointTrajPtMessage > &messages)
Send trajectory to robot, using this node's robot-connection. Specific method must be implemented in ...
virtual bool makeConnect()=0