00001
00002 #ifndef CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYACTIONGOAL_H
00003 #define CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYACTIONGOAL_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014 #include "actionlib_msgs/GoalID.h"
00015 #include "control_msgs/FollowJointTrajectoryGoal.h"
00016
00017 namespace control_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct FollowJointTrajectoryActionGoal_ : public ros::Message
00021 {
00022 typedef FollowJointTrajectoryActionGoal_<ContainerAllocator> Type;
00023
00024 FollowJointTrajectoryActionGoal_()
00025 : header()
00026 , goal_id()
00027 , goal()
00028 {
00029 }
00030
00031 FollowJointTrajectoryActionGoal_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , goal_id(_alloc)
00034 , goal(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00042 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00043
00044 typedef ::control_msgs::FollowJointTrajectoryGoal_<ContainerAllocator> _goal_type;
00045 ::control_msgs::FollowJointTrajectoryGoal_<ContainerAllocator> goal;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "control_msgs/FollowJointTrajectoryActionGoal"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "8f3e00277a7b5b7c60e1ac5be35ddfa2"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00064 \n\
00065 Header header\n\
00066 actionlib_msgs/GoalID goal_id\n\
00067 FollowJointTrajectoryGoal goal\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: std_msgs/Header\n\
00071 # Standard metadata for higher-level stamped data types.\n\
00072 # This is generally used to communicate timestamped data \n\
00073 # in a particular coordinate frame.\n\
00074 # \n\
00075 # sequence ID: consecutively increasing ID \n\
00076 uint32 seq\n\
00077 #Two-integer timestamp that is expressed as:\n\
00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00080 # time-handling sugar is provided by the client library\n\
00081 time stamp\n\
00082 #Frame this data is associated with\n\
00083 # 0: no frame\n\
00084 # 1: global frame\n\
00085 string frame_id\n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: actionlib_msgs/GoalID\n\
00089 # The stamp should store the time at which this goal was requested.\n\
00090 # It is used by an action server when it tries to preempt all\n\
00091 # goals that were requested before a certain time\n\
00092 time stamp\n\
00093 \n\
00094 # The id provides a way to associate feedback and\n\
00095 # result message with specific goal requests. The id\n\
00096 # specified must be unique.\n\
00097 string id\n\
00098 \n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: control_msgs/FollowJointTrajectoryGoal\n\
00102 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00103 # The joint trajectory to follow\n\
00104 trajectory_msgs/JointTrajectory trajectory\n\
00105 \n\
00106 # Tolerances for the trajectory. If the measured joint values fall\n\
00107 # outside the tolerances the trajectory goal is aborted. Any\n\
00108 # tolerances that are not specified (by being omitted or set to 0) are\n\
00109 # set to the defaults for the action server (often taken from the\n\
00110 # parameter server).\n\
00111 \n\
00112 # Tolerances applied to the joints as the trajectory is executed. If\n\
00113 # violated, the goal aborts with error_code set to\n\
00114 # PATH_TOLERANCE_VIOLATED.\n\
00115 JointTolerance[] path_tolerance\n\
00116 \n\
00117 # To report success, the joints must be within goal_tolerance of the\n\
00118 # final trajectory value. The goal must be achieved by time the\n\
00119 # trajectory ends plus goal_time_tolerance. (goal_time_tolerance\n\
00120 # allows some leeway in time, so that the trajectory goal can still\n\
00121 # succeed even if the joints reach the goal some time after the\n\
00122 # precise end time of the trajectory).\n\
00123 #\n\
00124 # If the joints are not within goal_tolerance after \"trajectory finish\n\
00125 # time\" + goal_time_tolerance, the goal aborts with error_code set to\n\
00126 # GOAL_TOLERANCE_VIOLATED\n\
00127 JointTolerance[] goal_tolerance\n\
00128 duration goal_time_tolerance\n\
00129 \n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: trajectory_msgs/JointTrajectory\n\
00133 Header header\n\
00134 string[] joint_names\n\
00135 JointTrajectoryPoint[] points\n\
00136 ================================================================================\n\
00137 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00138 float64[] positions\n\
00139 float64[] velocities\n\
00140 float64[] accelerations\n\
00141 duration time_from_start\n\
00142 ================================================================================\n\
00143 MSG: control_msgs/JointTolerance\n\
00144 # The tolerances specify the amount the position, velocity, and\n\
00145 # accelerations can vary from the setpoints. For example, in the case\n\
00146 # of trajectory control, when the actual position varies beyond\n\
00147 # (desired position + position tolerance), the trajectory goal may\n\
00148 # abort.\n\
00149 # \n\
00150 # There are two special values for tolerances:\n\
00151 # * 0 - The tolerance is unspecified and will remain at whatever the default is\n\
00152 # * -1 - The tolerance is \"erased\". If there was a default, the joint will be\n\
00153 # allowed to move without restriction.\n\
00154 \n\
00155 string name\n\
00156 float64 position # in radians or meters (for a revolute or prismatic joint, respectively)\n\
00157 float64 velocity # in rad/sec or m/sec\n\
00158 float64 acceleration # in rad/sec^2 or m/sec^2\n\
00159 \n\
00160 "; }
00161 public:
00162 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00163
00164 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00165
00166 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00167 {
00168 ros::serialization::OStream stream(write_ptr, 1000000000);
00169 ros::serialization::serialize(stream, header);
00170 ros::serialization::serialize(stream, goal_id);
00171 ros::serialization::serialize(stream, goal);
00172 return stream.getData();
00173 }
00174
00175 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00176 {
00177 ros::serialization::IStream stream(read_ptr, 1000000000);
00178 ros::serialization::deserialize(stream, header);
00179 ros::serialization::deserialize(stream, goal_id);
00180 ros::serialization::deserialize(stream, goal);
00181 return stream.getData();
00182 }
00183
00184 ROS_DEPRECATED virtual uint32_t serializationLength() const
00185 {
00186 uint32_t size = 0;
00187 size += ros::serialization::serializationLength(header);
00188 size += ros::serialization::serializationLength(goal_id);
00189 size += ros::serialization::serializationLength(goal);
00190 return size;
00191 }
00192
00193 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> > Ptr;
00194 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> const> ConstPtr;
00195 };
00196 typedef ::control_msgs::FollowJointTrajectoryActionGoal_<std::allocator<void> > FollowJointTrajectoryActionGoal;
00197
00198 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryActionGoal> FollowJointTrajectoryActionGoalPtr;
00199 typedef boost::shared_ptr< ::control_msgs::FollowJointTrajectoryActionGoal const> FollowJointTrajectoryActionGoalConstPtr;
00200
00201
00202 template<typename ContainerAllocator>
00203 std::ostream& operator<<(std::ostream& s, const ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> & v)
00204 {
00205 ros::message_operations::Printer< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> >::stream(s, "", v);
00206 return s;}
00207
00208 }
00209
00210 namespace ros
00211 {
00212 namespace message_traits
00213 {
00214 template<class ContainerAllocator>
00215 struct MD5Sum< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> > {
00216 static const char* value()
00217 {
00218 return "8f3e00277a7b5b7c60e1ac5be35ddfa2";
00219 }
00220
00221 static const char* value(const ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> &) { return value(); }
00222 static const uint64_t static_value1 = 0x8f3e00277a7b5b7cULL;
00223 static const uint64_t static_value2 = 0x60e1ac5be35ddfa2ULL;
00224 };
00225
00226 template<class ContainerAllocator>
00227 struct DataType< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> > {
00228 static const char* value()
00229 {
00230 return "control_msgs/FollowJointTrajectoryActionGoal";
00231 }
00232
00233 static const char* value(const ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> &) { return value(); }
00234 };
00235
00236 template<class ContainerAllocator>
00237 struct Definition< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> > {
00238 static const char* value()
00239 {
00240 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00241 \n\
00242 Header header\n\
00243 actionlib_msgs/GoalID goal_id\n\
00244 FollowJointTrajectoryGoal goal\n\
00245 \n\
00246 ================================================================================\n\
00247 MSG: std_msgs/Header\n\
00248 # Standard metadata for higher-level stamped data types.\n\
00249 # This is generally used to communicate timestamped data \n\
00250 # in a particular coordinate frame.\n\
00251 # \n\
00252 # sequence ID: consecutively increasing ID \n\
00253 uint32 seq\n\
00254 #Two-integer timestamp that is expressed as:\n\
00255 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00256 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00257 # time-handling sugar is provided by the client library\n\
00258 time stamp\n\
00259 #Frame this data is associated with\n\
00260 # 0: no frame\n\
00261 # 1: global frame\n\
00262 string frame_id\n\
00263 \n\
00264 ================================================================================\n\
00265 MSG: actionlib_msgs/GoalID\n\
00266 # The stamp should store the time at which this goal was requested.\n\
00267 # It is used by an action server when it tries to preempt all\n\
00268 # goals that were requested before a certain time\n\
00269 time stamp\n\
00270 \n\
00271 # The id provides a way to associate feedback and\n\
00272 # result message with specific goal requests. The id\n\
00273 # specified must be unique.\n\
00274 string id\n\
00275 \n\
00276 \n\
00277 ================================================================================\n\
00278 MSG: control_msgs/FollowJointTrajectoryGoal\n\
00279 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00280 # The joint trajectory to follow\n\
00281 trajectory_msgs/JointTrajectory trajectory\n\
00282 \n\
00283 # Tolerances for the trajectory. If the measured joint values fall\n\
00284 # outside the tolerances the trajectory goal is aborted. Any\n\
00285 # tolerances that are not specified (by being omitted or set to 0) are\n\
00286 # set to the defaults for the action server (often taken from the\n\
00287 # parameter server).\n\
00288 \n\
00289 # Tolerances applied to the joints as the trajectory is executed. If\n\
00290 # violated, the goal aborts with error_code set to\n\
00291 # PATH_TOLERANCE_VIOLATED.\n\
00292 JointTolerance[] path_tolerance\n\
00293 \n\
00294 # To report success, the joints must be within goal_tolerance of the\n\
00295 # final trajectory value. The goal must be achieved by time the\n\
00296 # trajectory ends plus goal_time_tolerance. (goal_time_tolerance\n\
00297 # allows some leeway in time, so that the trajectory goal can still\n\
00298 # succeed even if the joints reach the goal some time after the\n\
00299 # precise end time of the trajectory).\n\
00300 #\n\
00301 # If the joints are not within goal_tolerance after \"trajectory finish\n\
00302 # time\" + goal_time_tolerance, the goal aborts with error_code set to\n\
00303 # GOAL_TOLERANCE_VIOLATED\n\
00304 JointTolerance[] goal_tolerance\n\
00305 duration goal_time_tolerance\n\
00306 \n\
00307 \n\
00308 ================================================================================\n\
00309 MSG: trajectory_msgs/JointTrajectory\n\
00310 Header header\n\
00311 string[] joint_names\n\
00312 JointTrajectoryPoint[] points\n\
00313 ================================================================================\n\
00314 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00315 float64[] positions\n\
00316 float64[] velocities\n\
00317 float64[] accelerations\n\
00318 duration time_from_start\n\
00319 ================================================================================\n\
00320 MSG: control_msgs/JointTolerance\n\
00321 # The tolerances specify the amount the position, velocity, and\n\
00322 # accelerations can vary from the setpoints. For example, in the case\n\
00323 # of trajectory control, when the actual position varies beyond\n\
00324 # (desired position + position tolerance), the trajectory goal may\n\
00325 # abort.\n\
00326 # \n\
00327 # There are two special values for tolerances:\n\
00328 # * 0 - The tolerance is unspecified and will remain at whatever the default is\n\
00329 # * -1 - The tolerance is \"erased\". If there was a default, the joint will be\n\
00330 # allowed to move without restriction.\n\
00331 \n\
00332 string name\n\
00333 float64 position # in radians or meters (for a revolute or prismatic joint, respectively)\n\
00334 float64 velocity # in rad/sec or m/sec\n\
00335 float64 acceleration # in rad/sec^2 or m/sec^2\n\
00336 \n\
00337 ";
00338 }
00339
00340 static const char* value(const ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> &) { return value(); }
00341 };
00342
00343 template<class ContainerAllocator> struct HasHeader< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> > : public TrueType {};
00344 template<class ContainerAllocator> struct HasHeader< const ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> > : public TrueType {};
00345 }
00346 }
00347
00348 namespace ros
00349 {
00350 namespace serialization
00351 {
00352
00353 template<class ContainerAllocator> struct Serializer< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> >
00354 {
00355 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00356 {
00357 stream.next(m.header);
00358 stream.next(m.goal_id);
00359 stream.next(m.goal);
00360 }
00361
00362 ROS_DECLARE_ALLINONE_SERIALIZER;
00363 };
00364 }
00365 }
00366
00367 namespace ros
00368 {
00369 namespace message_operations
00370 {
00371
00372 template<class ContainerAllocator>
00373 struct Printer< ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> >
00374 {
00375 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::control_msgs::FollowJointTrajectoryActionGoal_<ContainerAllocator> & v)
00376 {
00377 s << indent << "header: ";
00378 s << std::endl;
00379 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00380 s << indent << "goal_id: ";
00381 s << std::endl;
00382 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00383 s << indent << "goal: ";
00384 s << std::endl;
00385 Printer< ::control_msgs::FollowJointTrajectoryGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00386 }
00387 };
00388
00389
00390 }
00391 }
00392
00393 #endif // CONTROL_MSGS_MESSAGE_FOLLOWJOINTTRAJECTORYACTIONGOAL_H
00394