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