00001
00002 #ifndef ACTIONLIB_MESSAGE_TESTREQUESTGOAL_H
00003 #define ACTIONLIB_MESSAGE_TESTREQUESTGOAL_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
00018 namespace actionlib
00019 {
00020 template <class ContainerAllocator>
00021 struct TestRequestGoal_ {
00022 typedef TestRequestGoal_<ContainerAllocator> Type;
00023
00024 TestRequestGoal_()
00025 : terminate_status(0)
00026 , ignore_cancel(false)
00027 , result_text()
00028 , the_result(0)
00029 , is_simple_client(false)
00030 , delay_accept()
00031 , delay_terminate()
00032 , pause_status()
00033 {
00034 }
00035
00036 TestRequestGoal_(const ContainerAllocator& _alloc)
00037 : terminate_status(0)
00038 , ignore_cancel(false)
00039 , result_text(_alloc)
00040 , the_result(0)
00041 , is_simple_client(false)
00042 , delay_accept()
00043 , delay_terminate()
00044 , pause_status()
00045 {
00046 }
00047
00048 typedef int32_t _terminate_status_type;
00049 int32_t terminate_status;
00050
00051 typedef uint8_t _ignore_cancel_type;
00052 uint8_t ignore_cancel;
00053
00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _result_text_type;
00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > result_text;
00056
00057 typedef int32_t _the_result_type;
00058 int32_t the_result;
00059
00060 typedef uint8_t _is_simple_client_type;
00061 uint8_t is_simple_client;
00062
00063 typedef ros::Duration _delay_accept_type;
00064 ros::Duration delay_accept;
00065
00066 typedef ros::Duration _delay_terminate_type;
00067 ros::Duration delay_terminate;
00068
00069 typedef ros::Duration _pause_status_type;
00070 ros::Duration pause_status;
00071
00072 enum { TERMINATE_SUCCESS = 0 };
00073 enum { TERMINATE_ABORTED = 1 };
00074 enum { TERMINATE_REJECTED = 2 };
00075 enum { TERMINATE_LOSE = 3 };
00076 enum { TERMINATE_DROP = 4 };
00077 enum { TERMINATE_EXCEPTION = 5 };
00078
00079 private:
00080 static const char* __s_getDataType_() { return "actionlib/TestRequestGoal"; }
00081 public:
00082 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00083
00084 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00085
00086 private:
00087 static const char* __s_getMD5Sum_() { return "db5d00ba98302d6c6dd3737e9a03ceea"; }
00088 public:
00089 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00090
00091 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00092
00093 private:
00094 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00095 int32 TERMINATE_SUCCESS = 0\n\
00096 int32 TERMINATE_ABORTED = 1\n\
00097 int32 TERMINATE_REJECTED = 2\n\
00098 int32 TERMINATE_LOSE = 3\n\
00099 int32 TERMINATE_DROP = 4\n\
00100 int32 TERMINATE_EXCEPTION = 5\n\
00101 int32 terminate_status\n\
00102 bool ignore_cancel # If true, ignores requests to cancel\n\
00103 string result_text\n\
00104 int32 the_result # Desired value for the_result in the Result\n\
00105 bool is_simple_client\n\
00106 duration delay_accept # Delays accepting the goal by this amount of time\n\
00107 duration delay_terminate # Delays terminating for this amount of time\n\
00108 duration pause_status # Pauses the status messages for this amount of time\n\
00109 \n\
00110 "; }
00111 public:
00112 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00113
00114 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00115
00116 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00117 {
00118 ros::serialization::OStream stream(write_ptr, 1000000000);
00119 ros::serialization::serialize(stream, terminate_status);
00120 ros::serialization::serialize(stream, ignore_cancel);
00121 ros::serialization::serialize(stream, result_text);
00122 ros::serialization::serialize(stream, the_result);
00123 ros::serialization::serialize(stream, is_simple_client);
00124 ros::serialization::serialize(stream, delay_accept);
00125 ros::serialization::serialize(stream, delay_terminate);
00126 ros::serialization::serialize(stream, pause_status);
00127 return stream.getData();
00128 }
00129
00130 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00131 {
00132 ros::serialization::IStream stream(read_ptr, 1000000000);
00133 ros::serialization::deserialize(stream, terminate_status);
00134 ros::serialization::deserialize(stream, ignore_cancel);
00135 ros::serialization::deserialize(stream, result_text);
00136 ros::serialization::deserialize(stream, the_result);
00137 ros::serialization::deserialize(stream, is_simple_client);
00138 ros::serialization::deserialize(stream, delay_accept);
00139 ros::serialization::deserialize(stream, delay_terminate);
00140 ros::serialization::deserialize(stream, pause_status);
00141 return stream.getData();
00142 }
00143
00144 ROS_DEPRECATED virtual uint32_t serializationLength() const
00145 {
00146 uint32_t size = 0;
00147 size += ros::serialization::serializationLength(terminate_status);
00148 size += ros::serialization::serializationLength(ignore_cancel);
00149 size += ros::serialization::serializationLength(result_text);
00150 size += ros::serialization::serializationLength(the_result);
00151 size += ros::serialization::serializationLength(is_simple_client);
00152 size += ros::serialization::serializationLength(delay_accept);
00153 size += ros::serialization::serializationLength(delay_terminate);
00154 size += ros::serialization::serializationLength(pause_status);
00155 return size;
00156 }
00157
00158 typedef boost::shared_ptr< ::actionlib::TestRequestGoal_<ContainerAllocator> > Ptr;
00159 typedef boost::shared_ptr< ::actionlib::TestRequestGoal_<ContainerAllocator> const> ConstPtr;
00160 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00161 };
00162 typedef ::actionlib::TestRequestGoal_<std::allocator<void> > TestRequestGoal;
00163
00164 typedef boost::shared_ptr< ::actionlib::TestRequestGoal> TestRequestGoalPtr;
00165 typedef boost::shared_ptr< ::actionlib::TestRequestGoal const> TestRequestGoalConstPtr;
00166
00167
00168 template<typename ContainerAllocator>
00169 std::ostream& operator<<(std::ostream& s, const ::actionlib::TestRequestGoal_<ContainerAllocator> & v)
00170 {
00171 ros::message_operations::Printer< ::actionlib::TestRequestGoal_<ContainerAllocator> >::stream(s, "", v);
00172 return s;}
00173
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_traits
00179 {
00180 template<class ContainerAllocator> struct IsMessage< ::actionlib::TestRequestGoal_<ContainerAllocator> > : public TrueType {};
00181 template<class ContainerAllocator> struct IsMessage< ::actionlib::TestRequestGoal_<ContainerAllocator> const> : public TrueType {};
00182 template<class ContainerAllocator>
00183 struct MD5Sum< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
00184 static const char* value()
00185 {
00186 return "db5d00ba98302d6c6dd3737e9a03ceea";
00187 }
00188
00189 static const char* value(const ::actionlib::TestRequestGoal_<ContainerAllocator> &) { return value(); }
00190 static const uint64_t static_value1 = 0xdb5d00ba98302d6cULL;
00191 static const uint64_t static_value2 = 0x6dd3737e9a03ceeaULL;
00192 };
00193
00194 template<class ContainerAllocator>
00195 struct DataType< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
00196 static const char* value()
00197 {
00198 return "actionlib/TestRequestGoal";
00199 }
00200
00201 static const char* value(const ::actionlib::TestRequestGoal_<ContainerAllocator> &) { return value(); }
00202 };
00203
00204 template<class ContainerAllocator>
00205 struct Definition< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
00206 static const char* value()
00207 {
00208 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00209 int32 TERMINATE_SUCCESS = 0\n\
00210 int32 TERMINATE_ABORTED = 1\n\
00211 int32 TERMINATE_REJECTED = 2\n\
00212 int32 TERMINATE_LOSE = 3\n\
00213 int32 TERMINATE_DROP = 4\n\
00214 int32 TERMINATE_EXCEPTION = 5\n\
00215 int32 terminate_status\n\
00216 bool ignore_cancel # If true, ignores requests to cancel\n\
00217 string result_text\n\
00218 int32 the_result # Desired value for the_result in the Result\n\
00219 bool is_simple_client\n\
00220 duration delay_accept # Delays accepting the goal by this amount of time\n\
00221 duration delay_terminate # Delays terminating for this amount of time\n\
00222 duration pause_status # Pauses the status messages for this amount of time\n\
00223 \n\
00224 ";
00225 }
00226
00227 static const char* value(const ::actionlib::TestRequestGoal_<ContainerAllocator> &) { return value(); }
00228 };
00229
00230 }
00231 }
00232
00233 namespace ros
00234 {
00235 namespace serialization
00236 {
00237
00238 template<class ContainerAllocator> struct Serializer< ::actionlib::TestRequestGoal_<ContainerAllocator> >
00239 {
00240 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00241 {
00242 stream.next(m.terminate_status);
00243 stream.next(m.ignore_cancel);
00244 stream.next(m.result_text);
00245 stream.next(m.the_result);
00246 stream.next(m.is_simple_client);
00247 stream.next(m.delay_accept);
00248 stream.next(m.delay_terminate);
00249 stream.next(m.pause_status);
00250 }
00251
00252 ROS_DECLARE_ALLINONE_SERIALIZER;
00253 };
00254 }
00255 }
00256
00257 namespace ros
00258 {
00259 namespace message_operations
00260 {
00261
00262 template<class ContainerAllocator>
00263 struct Printer< ::actionlib::TestRequestGoal_<ContainerAllocator> >
00264 {
00265 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib::TestRequestGoal_<ContainerAllocator> & v)
00266 {
00267 s << indent << "terminate_status: ";
00268 Printer<int32_t>::stream(s, indent + " ", v.terminate_status);
00269 s << indent << "ignore_cancel: ";
00270 Printer<uint8_t>::stream(s, indent + " ", v.ignore_cancel);
00271 s << indent << "result_text: ";
00272 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.result_text);
00273 s << indent << "the_result: ";
00274 Printer<int32_t>::stream(s, indent + " ", v.the_result);
00275 s << indent << "is_simple_client: ";
00276 Printer<uint8_t>::stream(s, indent + " ", v.is_simple_client);
00277 s << indent << "delay_accept: ";
00278 Printer<ros::Duration>::stream(s, indent + " ", v.delay_accept);
00279 s << indent << "delay_terminate: ";
00280 Printer<ros::Duration>::stream(s, indent + " ", v.delay_terminate);
00281 s << indent << "pause_status: ";
00282 Printer<ros::Duration>::stream(s, indent + " ", v.pause_status);
00283 }
00284 };
00285
00286
00287 }
00288 }
00289
00290 #endif // ACTIONLIB_MESSAGE_TESTREQUESTGOAL_H
00291