00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-asctec_mav_framework/doc_stacks/2014-01-07_11-03-25.838445/asctec_mav_framework/asctec_hl_comm/srv/mav_ctrl_motors.srv */ 00002 #ifndef ASCTEC_HL_COMM_SERVICE_MAV_CTRL_MOTORS_H 00003 #define ASCTEC_HL_COMM_SERVICE_MAV_CTRL_MOTORS_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 asctec_hl_comm 00023 { 00024 template <class ContainerAllocator> 00025 struct mav_ctrl_motorsRequest_ { 00026 typedef mav_ctrl_motorsRequest_<ContainerAllocator> Type; 00027 00028 mav_ctrl_motorsRequest_() 00029 : startMotors(false) 00030 { 00031 } 00032 00033 mav_ctrl_motorsRequest_(const ContainerAllocator& _alloc) 00034 : startMotors(false) 00035 { 00036 } 00037 00038 typedef uint8_t _startMotors_type; 00039 uint8_t startMotors; 00040 00041 00042 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > Ptr; 00043 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> const> ConstPtr; 00044 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00045 }; // struct mav_ctrl_motorsRequest 00046 typedef ::asctec_hl_comm::mav_ctrl_motorsRequest_<std::allocator<void> > mav_ctrl_motorsRequest; 00047 00048 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsRequest> mav_ctrl_motorsRequestPtr; 00049 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsRequest const> mav_ctrl_motorsRequestConstPtr; 00050 00051 00052 template <class ContainerAllocator> 00053 struct mav_ctrl_motorsResponse_ { 00054 typedef mav_ctrl_motorsResponse_<ContainerAllocator> Type; 00055 00056 mav_ctrl_motorsResponse_() 00057 : motorsRunning(false) 00058 { 00059 } 00060 00061 mav_ctrl_motorsResponse_(const ContainerAllocator& _alloc) 00062 : motorsRunning(false) 00063 { 00064 } 00065 00066 typedef uint8_t _motorsRunning_type; 00067 uint8_t motorsRunning; 00068 00069 00070 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > Ptr; 00071 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> const> ConstPtr; 00072 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00073 }; // struct mav_ctrl_motorsResponse 00074 typedef ::asctec_hl_comm::mav_ctrl_motorsResponse_<std::allocator<void> > mav_ctrl_motorsResponse; 00075 00076 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsResponse> mav_ctrl_motorsResponsePtr; 00077 typedef boost::shared_ptr< ::asctec_hl_comm::mav_ctrl_motorsResponse const> mav_ctrl_motorsResponseConstPtr; 00078 00079 struct mav_ctrl_motors 00080 { 00081 00082 typedef mav_ctrl_motorsRequest Request; 00083 typedef mav_ctrl_motorsResponse Response; 00084 Request request; 00085 Response response; 00086 00087 typedef Request RequestType; 00088 typedef Response ResponseType; 00089 }; // struct mav_ctrl_motors 00090 } // namespace asctec_hl_comm 00091 00092 namespace ros 00093 { 00094 namespace message_traits 00095 { 00096 template<class ContainerAllocator> struct IsMessage< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > : public TrueType {}; 00097 template<class ContainerAllocator> struct IsMessage< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> const> : public TrueType {}; 00098 template<class ContainerAllocator> 00099 struct MD5Sum< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > { 00100 static const char* value() 00101 { 00102 return "6076998c2a5ec9144368e0457caa79ef"; 00103 } 00104 00105 static const char* value(const ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> &) { return value(); } 00106 static const uint64_t static_value1 = 0x6076998c2a5ec914ULL; 00107 static const uint64_t static_value2 = 0x4368e0457caa79efULL; 00108 }; 00109 00110 template<class ContainerAllocator> 00111 struct DataType< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > { 00112 static const char* value() 00113 { 00114 return "asctec_hl_comm/mav_ctrl_motorsRequest"; 00115 } 00116 00117 static const char* value(const ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> &) { return value(); } 00118 }; 00119 00120 template<class ContainerAllocator> 00121 struct Definition< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > { 00122 static const char* value() 00123 { 00124 return "bool startMotors\n\ 00125 \n\ 00126 "; 00127 } 00128 00129 static const char* value(const ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> &) { return value(); } 00130 }; 00131 00132 template<class ContainerAllocator> struct IsFixedSize< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > : public TrueType {}; 00133 } // namespace message_traits 00134 } // namespace ros 00135 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "246eeab4e06271d99512461f49c049e7"; 00148 } 00149 00150 static const char* value(const ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0x246eeab4e06271d9ULL; 00152 static const uint64_t static_value2 = 0x9512461f49c049e7ULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "asctec_hl_comm/mav_ctrl_motorsResponse"; 00160 } 00161 00162 static const char* value(const ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "bool motorsRunning\n\ 00170 \n\ 00171 \n\ 00172 "; 00173 } 00174 00175 static const char* value(const ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> &) { return value(); } 00176 }; 00177 00178 template<class ContainerAllocator> struct IsFixedSize< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > : public TrueType {}; 00179 } // namespace message_traits 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace serialization 00185 { 00186 00187 template<class ContainerAllocator> struct Serializer< ::asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > 00188 { 00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00190 { 00191 stream.next(m.startMotors); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct mav_ctrl_motorsRequest_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 00200 namespace ros 00201 { 00202 namespace serialization 00203 { 00204 00205 template<class ContainerAllocator> struct Serializer< ::asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > 00206 { 00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00208 { 00209 stream.next(m.motorsRunning); 00210 } 00211 00212 ROS_DECLARE_ALLINONE_SERIALIZER; 00213 }; // struct mav_ctrl_motorsResponse_ 00214 } // namespace serialization 00215 } // namespace ros 00216 00217 namespace ros 00218 { 00219 namespace service_traits 00220 { 00221 template<> 00222 struct MD5Sum<asctec_hl_comm::mav_ctrl_motors> { 00223 static const char* value() 00224 { 00225 return "e005c4128d496dadc787b05eb5384496"; 00226 } 00227 00228 static const char* value(const asctec_hl_comm::mav_ctrl_motors&) { return value(); } 00229 }; 00230 00231 template<> 00232 struct DataType<asctec_hl_comm::mav_ctrl_motors> { 00233 static const char* value() 00234 { 00235 return "asctec_hl_comm/mav_ctrl_motors"; 00236 } 00237 00238 static const char* value(const asctec_hl_comm::mav_ctrl_motors&) { return value(); } 00239 }; 00240 00241 template<class ContainerAllocator> 00242 struct MD5Sum<asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "e005c4128d496dadc787b05eb5384496"; 00246 } 00247 00248 static const char* value(const asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> &) { return value(); } 00249 }; 00250 00251 template<class ContainerAllocator> 00252 struct DataType<asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> > { 00253 static const char* value() 00254 { 00255 return "asctec_hl_comm/mav_ctrl_motors"; 00256 } 00257 00258 static const char* value(const asctec_hl_comm::mav_ctrl_motorsRequest_<ContainerAllocator> &) { return value(); } 00259 }; 00260 00261 template<class ContainerAllocator> 00262 struct MD5Sum<asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "e005c4128d496dadc787b05eb5384496"; 00266 } 00267 00268 static const char* value(const asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> &) { return value(); } 00269 }; 00270 00271 template<class ContainerAllocator> 00272 struct DataType<asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "asctec_hl_comm/mav_ctrl_motors"; 00276 } 00277 00278 static const char* value(const asctec_hl_comm::mav_ctrl_motorsResponse_<ContainerAllocator> &) { return value(); } 00279 }; 00280 00281 } // namespace service_traits 00282 } // namespace ros 00283 00284 #endif // ASCTEC_HL_COMM_SERVICE_MAV_CTRL_MOTORS_H 00285