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