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