00001
00002 #ifndef MAV_MSGS_SERVICE_TOGGLEENGAGE_H
00003 #define MAV_MSGS_SERVICE_TOGGLEENGAGE_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 "ros/service_traits.h"
00018
00019
00020
00021
00022 namespace mav_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct ToggleEngageRequest_ {
00026 typedef ToggleEngageRequest_<ContainerAllocator> Type;
00027
00028 ToggleEngageRequest_()
00029 {
00030 }
00031
00032 ToggleEngageRequest_(const ContainerAllocator& _alloc)
00033 {
00034 }
00035
00036
00037 private:
00038 static const char* __s_getDataType_() { return "mav_msgs/ToggleEngageRequest"; }
00039 public:
00040 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00041
00042 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00043
00044 private:
00045 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00048
00049 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00050
00051 private:
00052 static const char* __s_getServerMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00055
00056 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00057
00058 private:
00059 static const char* __s_getMessageDefinition_() { return "\n\
00060 "; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00065
00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00067 {
00068 ros::serialization::OStream stream(write_ptr, 1000000000);
00069 return stream.getData();
00070 }
00071
00072 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00073 {
00074 ros::serialization::IStream stream(read_ptr, 1000000000);
00075 return stream.getData();
00076 }
00077
00078 ROS_DEPRECATED virtual uint32_t serializationLength() const
00079 {
00080 uint32_t size = 0;
00081 return size;
00082 }
00083
00084 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> > Ptr;
00085 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> const> ConstPtr;
00086 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00087 };
00088 typedef ::mav_msgs::ToggleEngageRequest_<std::allocator<void> > ToggleEngageRequest;
00089
00090 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageRequest> ToggleEngageRequestPtr;
00091 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageRequest const> ToggleEngageRequestConstPtr;
00092
00093
00094 template <class ContainerAllocator>
00095 struct ToggleEngageResponse_ {
00096 typedef ToggleEngageResponse_<ContainerAllocator> Type;
00097
00098 ToggleEngageResponse_()
00099 {
00100 }
00101
00102 ToggleEngageResponse_(const ContainerAllocator& _alloc)
00103 {
00104 }
00105
00106
00107 private:
00108 static const char* __s_getDataType_() { return "mav_msgs/ToggleEngageResponse"; }
00109 public:
00110 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00111
00112 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00113
00114 private:
00115 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00116 public:
00117 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00118
00119 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00120
00121 private:
00122 static const char* __s_getServerMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00123 public:
00124 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00125
00126 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00127
00128 private:
00129 static const char* __s_getMessageDefinition_() { return "\n\
00130 \n\
00131 "; }
00132 public:
00133 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00134
00135 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00136
00137 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00138 {
00139 ros::serialization::OStream stream(write_ptr, 1000000000);
00140 return stream.getData();
00141 }
00142
00143 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00144 {
00145 ros::serialization::IStream stream(read_ptr, 1000000000);
00146 return stream.getData();
00147 }
00148
00149 ROS_DEPRECATED virtual uint32_t serializationLength() const
00150 {
00151 uint32_t size = 0;
00152 return size;
00153 }
00154
00155 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> > Ptr;
00156 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> const> ConstPtr;
00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00158 };
00159 typedef ::mav_msgs::ToggleEngageResponse_<std::allocator<void> > ToggleEngageResponse;
00160
00161 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageResponse> ToggleEngageResponsePtr;
00162 typedef boost::shared_ptr< ::mav_msgs::ToggleEngageResponse const> ToggleEngageResponseConstPtr;
00163
00164 struct ToggleEngage
00165 {
00166
00167 typedef ToggleEngageRequest Request;
00168 typedef ToggleEngageResponse Response;
00169 Request request;
00170 Response response;
00171
00172 typedef Request RequestType;
00173 typedef Response ResponseType;
00174 };
00175 }
00176
00177 namespace ros
00178 {
00179 namespace message_traits
00180 {
00181 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> > : public TrueType {};
00182 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> const> : public TrueType {};
00183 template<class ContainerAllocator>
00184 struct MD5Sum< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "d41d8cd98f00b204e9800998ecf8427e";
00188 }
00189
00190 static const char* value(const ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> &) { return value(); }
00191 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00192 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00193 };
00194
00195 template<class ContainerAllocator>
00196 struct DataType< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "mav_msgs/ToggleEngageRequest";
00200 }
00201
00202 static const char* value(const ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> &) { return value(); }
00203 };
00204
00205 template<class ContainerAllocator>
00206 struct Definition< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> > {
00207 static const char* value()
00208 {
00209 return "\n\
00210 ";
00211 }
00212
00213 static const char* value(const ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> &) { return value(); }
00214 };
00215
00216 template<class ContainerAllocator> struct IsFixedSize< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> > : public TrueType {};
00217 }
00218 }
00219
00220
00221 namespace ros
00222 {
00223 namespace message_traits
00224 {
00225 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> > : public TrueType {};
00226 template<class ContainerAllocator> struct IsMessage< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> const> : public TrueType {};
00227 template<class ContainerAllocator>
00228 struct MD5Sum< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> > {
00229 static const char* value()
00230 {
00231 return "d41d8cd98f00b204e9800998ecf8427e";
00232 }
00233
00234 static const char* value(const ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> &) { return value(); }
00235 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00236 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00237 };
00238
00239 template<class ContainerAllocator>
00240 struct DataType< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> > {
00241 static const char* value()
00242 {
00243 return "mav_msgs/ToggleEngageResponse";
00244 }
00245
00246 static const char* value(const ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> &) { return value(); }
00247 };
00248
00249 template<class ContainerAllocator>
00250 struct Definition< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> > {
00251 static const char* value()
00252 {
00253 return "\n\
00254 \n\
00255 ";
00256 }
00257
00258 static const char* value(const ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> &) { return value(); }
00259 };
00260
00261 template<class ContainerAllocator> struct IsFixedSize< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> > : public TrueType {};
00262 }
00263 }
00264
00265 namespace ros
00266 {
00267 namespace serialization
00268 {
00269
00270 template<class ContainerAllocator> struct Serializer< ::mav_msgs::ToggleEngageRequest_<ContainerAllocator> >
00271 {
00272 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00273 {
00274 }
00275
00276 ROS_DECLARE_ALLINONE_SERIALIZER;
00277 };
00278 }
00279 }
00280
00281
00282 namespace ros
00283 {
00284 namespace serialization
00285 {
00286
00287 template<class ContainerAllocator> struct Serializer< ::mav_msgs::ToggleEngageResponse_<ContainerAllocator> >
00288 {
00289 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00290 {
00291 }
00292
00293 ROS_DECLARE_ALLINONE_SERIALIZER;
00294 };
00295 }
00296 }
00297
00298 namespace ros
00299 {
00300 namespace service_traits
00301 {
00302 template<>
00303 struct MD5Sum<mav_msgs::ToggleEngage> {
00304 static const char* value()
00305 {
00306 return "d41d8cd98f00b204e9800998ecf8427e";
00307 }
00308
00309 static const char* value(const mav_msgs::ToggleEngage&) { return value(); }
00310 };
00311
00312 template<>
00313 struct DataType<mav_msgs::ToggleEngage> {
00314 static const char* value()
00315 {
00316 return "mav_msgs/ToggleEngage";
00317 }
00318
00319 static const char* value(const mav_msgs::ToggleEngage&) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct MD5Sum<mav_msgs::ToggleEngageRequest_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "d41d8cd98f00b204e9800998ecf8427e";
00327 }
00328
00329 static const char* value(const mav_msgs::ToggleEngageRequest_<ContainerAllocator> &) { return value(); }
00330 };
00331
00332 template<class ContainerAllocator>
00333 struct DataType<mav_msgs::ToggleEngageRequest_<ContainerAllocator> > {
00334 static const char* value()
00335 {
00336 return "mav_msgs/ToggleEngage";
00337 }
00338
00339 static const char* value(const mav_msgs::ToggleEngageRequest_<ContainerAllocator> &) { return value(); }
00340 };
00341
00342 template<class ContainerAllocator>
00343 struct MD5Sum<mav_msgs::ToggleEngageResponse_<ContainerAllocator> > {
00344 static const char* value()
00345 {
00346 return "d41d8cd98f00b204e9800998ecf8427e";
00347 }
00348
00349 static const char* value(const mav_msgs::ToggleEngageResponse_<ContainerAllocator> &) { return value(); }
00350 };
00351
00352 template<class ContainerAllocator>
00353 struct DataType<mav_msgs::ToggleEngageResponse_<ContainerAllocator> > {
00354 static const char* value()
00355 {
00356 return "mav_msgs/ToggleEngage";
00357 }
00358
00359 static const char* value(const mav_msgs::ToggleEngageResponse_<ContainerAllocator> &) { return value(); }
00360 };
00361
00362 }
00363 }
00364
00365 #endif // MAV_MSGS_SERVICE_TOGGLEENGAGE_H
00366