00001
00002 #ifndef ACTIONLIB_MSGS_MESSAGE_GOALSTATUS_H
00003 #define ACTIONLIB_MSGS_MESSAGE_GOALSTATUS_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_msgs/GoalID.h"
00014
00015 namespace actionlib_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct GoalStatus_ : public ros::Message
00019 {
00020 typedef GoalStatus_<ContainerAllocator> Type;
00021
00022 GoalStatus_()
00023 : goal_id()
00024 , status(0)
00025 , text()
00026 {
00027 }
00028
00029 GoalStatus_(const ContainerAllocator& _alloc)
00030 : goal_id(_alloc)
00031 , status(0)
00032 , text(_alloc)
00033 {
00034 }
00035
00036 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00037 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00038
00039 typedef uint8_t _status_type;
00040 uint8_t status;
00041
00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _text_type;
00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > text;
00044
00045 enum { PENDING = 0 };
00046 enum { ACTIVE = 1 };
00047 enum { PREEMPTED = 2 };
00048 enum { SUCCEEDED = 3 };
00049 enum { ABORTED = 4 };
00050 enum { REJECTED = 5 };
00051 enum { PREEMPTING = 6 };
00052 enum { RECALLING = 7 };
00053 enum { RECALLED = 8 };
00054 enum { LOST = 9 };
00055
00056 private:
00057 static const char* __s_getDataType_() { return "actionlib_msgs/GoalStatus"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00060
00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00062
00063 private:
00064 static const char* __s_getMD5Sum_() { return "d388f9b87b3c471f784434d671988d4a"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00067
00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00069
00070 private:
00071 static const char* __s_getMessageDefinition_() { return "GoalID goal_id\n\
00072 uint8 status\n\
00073 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00074 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00075 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00076 # and has since completed its execution (Terminal State)\n\
00077 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00078 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00079 # to some failure (Terminal State)\n\
00080 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00081 # because the goal was unattainable or invalid (Terminal State)\n\
00082 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00083 # and has not yet completed execution\n\
00084 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00085 # but the action server has not yet confirmed that the goal is canceled\n\
00086 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00087 # and was successfully cancelled (Terminal State)\n\
00088 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00089 # sent over the wire by an action server\n\
00090 \n\
00091 #Allow for the user to associate a string with GoalStatus for debugging\n\
00092 string text\n\
00093 \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 "; }
00109 public:
00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00111
00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00113
00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00115 {
00116 ros::serialization::OStream stream(write_ptr, 1000000000);
00117 ros::serialization::serialize(stream, goal_id);
00118 ros::serialization::serialize(stream, status);
00119 ros::serialization::serialize(stream, text);
00120 return stream.getData();
00121 }
00122
00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00124 {
00125 ros::serialization::IStream stream(read_ptr, 1000000000);
00126 ros::serialization::deserialize(stream, goal_id);
00127 ros::serialization::deserialize(stream, status);
00128 ros::serialization::deserialize(stream, text);
00129 return stream.getData();
00130 }
00131
00132 ROS_DEPRECATED virtual uint32_t serializationLength() const
00133 {
00134 uint32_t size = 0;
00135 size += ros::serialization::serializationLength(goal_id);
00136 size += ros::serialization::serializationLength(status);
00137 size += ros::serialization::serializationLength(text);
00138 return size;
00139 }
00140
00141 typedef boost::shared_ptr< ::actionlib_msgs::GoalStatus_<ContainerAllocator> > Ptr;
00142 typedef boost::shared_ptr< ::actionlib_msgs::GoalStatus_<ContainerAllocator> const> ConstPtr;
00143 };
00144 typedef ::actionlib_msgs::GoalStatus_<std::allocator<void> > GoalStatus;
00145
00146 typedef boost::shared_ptr< ::actionlib_msgs::GoalStatus> GoalStatusPtr;
00147 typedef boost::shared_ptr< ::actionlib_msgs::GoalStatus const> GoalStatusConstPtr;
00148
00149
00150 template<typename ContainerAllocator>
00151 std::ostream& operator<<(std::ostream& s, const ::actionlib_msgs::GoalStatus_<ContainerAllocator> & v)
00152 {
00153 ros::message_operations::Printer< ::actionlib_msgs::GoalStatus_<ContainerAllocator> >::stream(s, "", v);
00154 return s;}
00155
00156 }
00157
00158 namespace ros
00159 {
00160 namespace message_traits
00161 {
00162 template<class ContainerAllocator>
00163 struct MD5Sum< ::actionlib_msgs::GoalStatus_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "d388f9b87b3c471f784434d671988d4a";
00167 }
00168
00169 static const char* value(const ::actionlib_msgs::GoalStatus_<ContainerAllocator> &) { return value(); }
00170 static const uint64_t static_value1 = 0xd388f9b87b3c471fULL;
00171 static const uint64_t static_value2 = 0x784434d671988d4aULL;
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct DataType< ::actionlib_msgs::GoalStatus_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "actionlib_msgs/GoalStatus";
00179 }
00180
00181 static const char* value(const ::actionlib_msgs::GoalStatus_<ContainerAllocator> &) { return value(); }
00182 };
00183
00184 template<class ContainerAllocator>
00185 struct Definition< ::actionlib_msgs::GoalStatus_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "GoalID goal_id\n\
00189 uint8 status\n\
00190 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00191 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00192 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00193 # and has since completed its execution (Terminal State)\n\
00194 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00195 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00196 # to some failure (Terminal State)\n\
00197 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00198 # because the goal was unattainable or invalid (Terminal State)\n\
00199 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00200 # and has not yet completed execution\n\
00201 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00202 # but the action server has not yet confirmed that the goal is canceled\n\
00203 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00204 # and was successfully cancelled (Terminal State)\n\
00205 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00206 # sent over the wire by an action server\n\
00207 \n\
00208 #Allow for the user to associate a string with GoalStatus for debugging\n\
00209 string text\n\
00210 \n\
00211 \n\
00212 ================================================================================\n\
00213 MSG: actionlib_msgs/GoalID\n\
00214 # The stamp should store the time at which this goal was requested.\n\
00215 # It is used by an action server when it tries to preempt all\n\
00216 # goals that were requested before a certain time\n\
00217 time stamp\n\
00218 \n\
00219 # The id provides a way to associate feedback and\n\
00220 # result message with specific goal requests. The id\n\
00221 # specified must be unique.\n\
00222 string id\n\
00223 \n\
00224 \n\
00225 ";
00226 }
00227
00228 static const char* value(const ::actionlib_msgs::GoalStatus_<ContainerAllocator> &) { return value(); }
00229 };
00230
00231 }
00232 }
00233
00234 namespace ros
00235 {
00236 namespace serialization
00237 {
00238
00239 template<class ContainerAllocator> struct Serializer< ::actionlib_msgs::GoalStatus_<ContainerAllocator> >
00240 {
00241 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00242 {
00243 stream.next(m.goal_id);
00244 stream.next(m.status);
00245 stream.next(m.text);
00246 }
00247
00248 ROS_DECLARE_ALLINONE_SERIALIZER;
00249 };
00250 }
00251 }
00252
00253 namespace ros
00254 {
00255 namespace message_operations
00256 {
00257
00258 template<class ContainerAllocator>
00259 struct Printer< ::actionlib_msgs::GoalStatus_<ContainerAllocator> >
00260 {
00261 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib_msgs::GoalStatus_<ContainerAllocator> & v)
00262 {
00263 s << indent << "goal_id: ";
00264 s << std::endl;
00265 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00266 s << indent << "status: ";
00267 Printer<uint8_t>::stream(s, indent + " ", v.status);
00268 s << indent << "text: ";
00269 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.text);
00270 }
00271 };
00272
00273
00274 }
00275 }
00276
00277 #endif // ACTIONLIB_MSGS_MESSAGE_GOALSTATUS_H
00278