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