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