00001
00002 #ifndef ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGACTION_H
00003 #define ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGACTION_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 "actionlib_tutorials/AveragingActionGoal.h"
00014 #include "actionlib_tutorials/AveragingActionResult.h"
00015 #include "actionlib_tutorials/AveragingActionFeedback.h"
00016
00017 namespace actionlib_tutorials
00018 {
00019 template <class ContainerAllocator>
00020 struct AveragingAction_ : public ros::Message
00021 {
00022 typedef AveragingAction_<ContainerAllocator> Type;
00023
00024 AveragingAction_()
00025 : action_goal()
00026 , action_result()
00027 , action_feedback()
00028 {
00029 }
00030
00031 AveragingAction_(const ContainerAllocator& _alloc)
00032 : action_goal(_alloc)
00033 , action_result(_alloc)
00034 , action_feedback(_alloc)
00035 {
00036 }
00037
00038 typedef ::actionlib_tutorials::AveragingActionGoal_<ContainerAllocator> _action_goal_type;
00039 ::actionlib_tutorials::AveragingActionGoal_<ContainerAllocator> action_goal;
00040
00041 typedef ::actionlib_tutorials::AveragingActionResult_<ContainerAllocator> _action_result_type;
00042 ::actionlib_tutorials::AveragingActionResult_<ContainerAllocator> action_result;
00043
00044 typedef ::actionlib_tutorials::AveragingActionFeedback_<ContainerAllocator> _action_feedback_type;
00045 ::actionlib_tutorials::AveragingActionFeedback_<ContainerAllocator> action_feedback;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "actionlib_tutorials/AveragingAction"; }
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 "628678f2b4fa6a5951746a4a2d39e716"; }
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 AveragingActionGoal action_goal\n\
00066 AveragingActionResult action_result\n\
00067 AveragingActionFeedback action_feedback\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: actionlib_tutorials/AveragingActionGoal\n\
00071 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00072 \n\
00073 Header header\n\
00074 actionlib_msgs/GoalID goal_id\n\
00075 AveragingGoal goal\n\
00076 \n\
00077 ================================================================================\n\
00078 MSG: std_msgs/Header\n\
00079 # Standard metadata for higher-level stamped data types.\n\
00080 # This is generally used to communicate timestamped data \n\
00081 # in a particular coordinate frame.\n\
00082 # \n\
00083 # sequence ID: consecutively increasing ID \n\
00084 uint32 seq\n\
00085 #Two-integer timestamp that is expressed as:\n\
00086 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00087 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00088 # time-handling sugar is provided by the client library\n\
00089 time stamp\n\
00090 #Frame this data is associated with\n\
00091 # 0: no frame\n\
00092 # 1: global frame\n\
00093 string frame_id\n\
00094 \n\
00095 ================================================================================\n\
00096 MSG: actionlib_msgs/GoalID\n\
00097 # The stamp should store the time at which this goal was requested.\n\
00098 # It is used by an action server when it tries to preempt all\n\
00099 # goals that were requested before a certain time\n\
00100 time stamp\n\
00101 \n\
00102 # The id provides a way to associate feedback and\n\
00103 # result message with specific goal requests. The id\n\
00104 # specified must be unique.\n\
00105 string id\n\
00106 \n\
00107 \n\
00108 ================================================================================\n\
00109 MSG: actionlib_tutorials/AveragingGoal\n\
00110 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00111 #goal definition\n\
00112 int32 samples\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: actionlib_tutorials/AveragingActionResult\n\
00116 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00117 \n\
00118 Header header\n\
00119 actionlib_msgs/GoalStatus status\n\
00120 AveragingResult result\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: actionlib_msgs/GoalStatus\n\
00124 GoalID goal_id\n\
00125 uint8 status\n\
00126 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00127 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00128 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00129 # and has since completed its execution (Terminal State)\n\
00130 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00131 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00132 # to some failure (Terminal State)\n\
00133 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00134 # because the goal was unattainable or invalid (Terminal State)\n\
00135 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00136 # and has not yet completed execution\n\
00137 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00138 # but the action server has not yet confirmed that the goal is canceled\n\
00139 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00140 # and was successfully cancelled (Terminal State)\n\
00141 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00142 # sent over the wire by an action server\n\
00143 \n\
00144 #Allow for the user to associate a string with GoalStatus for debugging\n\
00145 string text\n\
00146 \n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: actionlib_tutorials/AveragingResult\n\
00150 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00151 #result definition\n\
00152 float32 mean\n\
00153 float32 std_dev\n\
00154 \n\
00155 ================================================================================\n\
00156 MSG: actionlib_tutorials/AveragingActionFeedback\n\
00157 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00158 \n\
00159 Header header\n\
00160 actionlib_msgs/GoalStatus status\n\
00161 AveragingFeedback feedback\n\
00162 \n\
00163 ================================================================================\n\
00164 MSG: actionlib_tutorials/AveragingFeedback\n\
00165 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00166 #feedback\n\
00167 int32 sample\n\
00168 float32 data\n\
00169 float32 mean\n\
00170 float32 std_dev\n\
00171 \n\
00172 \n\
00173 \n\
00174 "; }
00175 public:
00176 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00177
00178 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00179
00180 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00181 {
00182 ros::serialization::OStream stream(write_ptr, 1000000000);
00183 ros::serialization::serialize(stream, action_goal);
00184 ros::serialization::serialize(stream, action_result);
00185 ros::serialization::serialize(stream, action_feedback);
00186 return stream.getData();
00187 }
00188
00189 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00190 {
00191 ros::serialization::IStream stream(read_ptr, 1000000000);
00192 ros::serialization::deserialize(stream, action_goal);
00193 ros::serialization::deserialize(stream, action_result);
00194 ros::serialization::deserialize(stream, action_feedback);
00195 return stream.getData();
00196 }
00197
00198 ROS_DEPRECATED virtual uint32_t serializationLength() const
00199 {
00200 uint32_t size = 0;
00201 size += ros::serialization::serializationLength(action_goal);
00202 size += ros::serialization::serializationLength(action_result);
00203 size += ros::serialization::serializationLength(action_feedback);
00204 return size;
00205 }
00206
00207 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> > Ptr;
00208 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> const> ConstPtr;
00209 };
00210 typedef ::actionlib_tutorials::AveragingAction_<std::allocator<void> > AveragingAction;
00211
00212 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingAction> AveragingActionPtr;
00213 typedef boost::shared_ptr< ::actionlib_tutorials::AveragingAction const> AveragingActionConstPtr;
00214
00215
00216 template<typename ContainerAllocator>
00217 std::ostream& operator<<(std::ostream& s, const ::actionlib_tutorials::AveragingAction_<ContainerAllocator> & v)
00218 {
00219 ros::message_operations::Printer< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> >::stream(s, "", v);
00220 return s;}
00221
00222 }
00223
00224 namespace ros
00225 {
00226 namespace message_traits
00227 {
00228 template<class ContainerAllocator>
00229 struct MD5Sum< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> > {
00230 static const char* value()
00231 {
00232 return "628678f2b4fa6a5951746a4a2d39e716";
00233 }
00234
00235 static const char* value(const ::actionlib_tutorials::AveragingAction_<ContainerAllocator> &) { return value(); }
00236 static const uint64_t static_value1 = 0x628678f2b4fa6a59ULL;
00237 static const uint64_t static_value2 = 0x51746a4a2d39e716ULL;
00238 };
00239
00240 template<class ContainerAllocator>
00241 struct DataType< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> > {
00242 static const char* value()
00243 {
00244 return "actionlib_tutorials/AveragingAction";
00245 }
00246
00247 static const char* value(const ::actionlib_tutorials::AveragingAction_<ContainerAllocator> &) { return value(); }
00248 };
00249
00250 template<class ContainerAllocator>
00251 struct Definition< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00255 \n\
00256 AveragingActionGoal action_goal\n\
00257 AveragingActionResult action_result\n\
00258 AveragingActionFeedback action_feedback\n\
00259 \n\
00260 ================================================================================\n\
00261 MSG: actionlib_tutorials/AveragingActionGoal\n\
00262 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00263 \n\
00264 Header header\n\
00265 actionlib_msgs/GoalID goal_id\n\
00266 AveragingGoal goal\n\
00267 \n\
00268 ================================================================================\n\
00269 MSG: std_msgs/Header\n\
00270 # Standard metadata for higher-level stamped data types.\n\
00271 # This is generally used to communicate timestamped data \n\
00272 # in a particular coordinate frame.\n\
00273 # \n\
00274 # sequence ID: consecutively increasing ID \n\
00275 uint32 seq\n\
00276 #Two-integer timestamp that is expressed as:\n\
00277 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00278 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00279 # time-handling sugar is provided by the client library\n\
00280 time stamp\n\
00281 #Frame this data is associated with\n\
00282 # 0: no frame\n\
00283 # 1: global frame\n\
00284 string frame_id\n\
00285 \n\
00286 ================================================================================\n\
00287 MSG: actionlib_msgs/GoalID\n\
00288 # The stamp should store the time at which this goal was requested.\n\
00289 # It is used by an action server when it tries to preempt all\n\
00290 # goals that were requested before a certain time\n\
00291 time stamp\n\
00292 \n\
00293 # The id provides a way to associate feedback and\n\
00294 # result message with specific goal requests. The id\n\
00295 # specified must be unique.\n\
00296 string id\n\
00297 \n\
00298 \n\
00299 ================================================================================\n\
00300 MSG: actionlib_tutorials/AveragingGoal\n\
00301 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00302 #goal definition\n\
00303 int32 samples\n\
00304 \n\
00305 ================================================================================\n\
00306 MSG: actionlib_tutorials/AveragingActionResult\n\
00307 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00308 \n\
00309 Header header\n\
00310 actionlib_msgs/GoalStatus status\n\
00311 AveragingResult result\n\
00312 \n\
00313 ================================================================================\n\
00314 MSG: actionlib_msgs/GoalStatus\n\
00315 GoalID goal_id\n\
00316 uint8 status\n\
00317 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00318 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00319 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00320 # and has since completed its execution (Terminal State)\n\
00321 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00322 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00323 # to some failure (Terminal State)\n\
00324 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00325 # because the goal was unattainable or invalid (Terminal State)\n\
00326 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00327 # and has not yet completed execution\n\
00328 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00329 # but the action server has not yet confirmed that the goal is canceled\n\
00330 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00331 # and was successfully cancelled (Terminal State)\n\
00332 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00333 # sent over the wire by an action server\n\
00334 \n\
00335 #Allow for the user to associate a string with GoalStatus for debugging\n\
00336 string text\n\
00337 \n\
00338 \n\
00339 ================================================================================\n\
00340 MSG: actionlib_tutorials/AveragingResult\n\
00341 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00342 #result definition\n\
00343 float32 mean\n\
00344 float32 std_dev\n\
00345 \n\
00346 ================================================================================\n\
00347 MSG: actionlib_tutorials/AveragingActionFeedback\n\
00348 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00349 \n\
00350 Header header\n\
00351 actionlib_msgs/GoalStatus status\n\
00352 AveragingFeedback feedback\n\
00353 \n\
00354 ================================================================================\n\
00355 MSG: actionlib_tutorials/AveragingFeedback\n\
00356 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00357 #feedback\n\
00358 int32 sample\n\
00359 float32 data\n\
00360 float32 mean\n\
00361 float32 std_dev\n\
00362 \n\
00363 \n\
00364 \n\
00365 ";
00366 }
00367
00368 static const char* value(const ::actionlib_tutorials::AveragingAction_<ContainerAllocator> &) { return value(); }
00369 };
00370
00371 }
00372 }
00373
00374 namespace ros
00375 {
00376 namespace serialization
00377 {
00378
00379 template<class ContainerAllocator> struct Serializer< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> >
00380 {
00381 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00382 {
00383 stream.next(m.action_goal);
00384 stream.next(m.action_result);
00385 stream.next(m.action_feedback);
00386 }
00387
00388 ROS_DECLARE_ALLINONE_SERIALIZER;
00389 };
00390 }
00391 }
00392
00393 namespace ros
00394 {
00395 namespace message_operations
00396 {
00397
00398 template<class ContainerAllocator>
00399 struct Printer< ::actionlib_tutorials::AveragingAction_<ContainerAllocator> >
00400 {
00401 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_tutorials::AveragingAction_<ContainerAllocator> & v)
00402 {
00403 s << indent << "action_goal: ";
00404 s << std::endl;
00405 Printer< ::actionlib_tutorials::AveragingActionGoal_<ContainerAllocator> >::stream(s, indent + " ", v.action_goal);
00406 s << indent << "action_result: ";
00407 s << std::endl;
00408 Printer< ::actionlib_tutorials::AveragingActionResult_<ContainerAllocator> >::stream(s, indent + " ", v.action_result);
00409 s << indent << "action_feedback: ";
00410 s << std::endl;
00411 Printer< ::actionlib_tutorials::AveragingActionFeedback_<ContainerAllocator> >::stream(s, indent + " ", v.action_feedback);
00412 }
00413 };
00414
00415
00416 }
00417 }
00418
00419 #endif // ACTIONLIB_TUTORIALS_MESSAGE_AVERAGINGACTION_H
00420