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