$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-brown_drivers/doc_stacks/2013-03-01_14-22-08.485471/brown_drivers/irobot_create_2_1/srv/Tank.srv */ 00002 #ifndef IROBOT_CREATE_2_1_SERVICE_TANK_H 00003 #define IROBOT_CREATE_2_1_SERVICE_TANK_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 irobot_create_2_1 00023 { 00024 template <class ContainerAllocator> 00025 struct TankRequest_ { 00026 typedef TankRequest_<ContainerAllocator> Type; 00027 00028 TankRequest_() 00029 : clear(false) 00030 , left(0) 00031 , right(0) 00032 { 00033 } 00034 00035 TankRequest_(const ContainerAllocator& _alloc) 00036 : clear(false) 00037 , left(0) 00038 , right(0) 00039 { 00040 } 00041 00042 typedef uint8_t _clear_type; 00043 uint8_t clear; 00044 00045 typedef int16_t _left_type; 00046 int16_t left; 00047 00048 typedef int16_t _right_type; 00049 int16_t right; 00050 00051 00052 private: 00053 static const char* __s_getDataType_() { return "irobot_create_2_1/TankRequest"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "c7893eae2d5c5450b4f137c7c7f29b99"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getServerMD5Sum_() { return "745f1885a9f717c8b4a13cfddf382c30"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "bool clear\n\ 00075 int16 left\n\ 00076 int16 right\n\ 00077 \n\ 00078 "; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00085 { 00086 ros::serialization::OStream stream(write_ptr, 1000000000); 00087 ros::serialization::serialize(stream, clear); 00088 ros::serialization::serialize(stream, left); 00089 ros::serialization::serialize(stream, right); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00094 { 00095 ros::serialization::IStream stream(read_ptr, 1000000000); 00096 ros::serialization::deserialize(stream, clear); 00097 ros::serialization::deserialize(stream, left); 00098 ros::serialization::deserialize(stream, right); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(clear); 00106 size += ros::serialization::serializationLength(left); 00107 size += ros::serialization::serializationLength(right); 00108 return size; 00109 } 00110 00111 typedef boost::shared_ptr< ::irobot_create_2_1::TankRequest_<ContainerAllocator> > Ptr; 00112 typedef boost::shared_ptr< ::irobot_create_2_1::TankRequest_<ContainerAllocator> const> ConstPtr; 00113 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00114 }; // struct TankRequest 00115 typedef ::irobot_create_2_1::TankRequest_<std::allocator<void> > TankRequest; 00116 00117 typedef boost::shared_ptr< ::irobot_create_2_1::TankRequest> TankRequestPtr; 00118 typedef boost::shared_ptr< ::irobot_create_2_1::TankRequest const> TankRequestConstPtr; 00119 00120 00121 template <class ContainerAllocator> 00122 struct TankResponse_ { 00123 typedef TankResponse_<ContainerAllocator> Type; 00124 00125 TankResponse_() 00126 : success(false) 00127 { 00128 } 00129 00130 TankResponse_(const ContainerAllocator& _alloc) 00131 : success(false) 00132 { 00133 } 00134 00135 typedef uint8_t _success_type; 00136 uint8_t success; 00137 00138 00139 private: 00140 static const char* __s_getDataType_() { return "irobot_create_2_1/TankResponse"; } 00141 public: 00142 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00143 00144 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00145 00146 private: 00147 static const char* __s_getMD5Sum_() { return "358e233cde0c8a8bcfea4ce193f8fc15"; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00150 00151 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00152 00153 private: 00154 static const char* __s_getServerMD5Sum_() { return "745f1885a9f717c8b4a13cfddf382c30"; } 00155 public: 00156 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00157 00158 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00159 00160 private: 00161 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00162 \n\ 00163 \n\ 00164 "; } 00165 public: 00166 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00167 00168 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00169 00170 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00171 { 00172 ros::serialization::OStream stream(write_ptr, 1000000000); 00173 ros::serialization::serialize(stream, success); 00174 return stream.getData(); 00175 } 00176 00177 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00178 { 00179 ros::serialization::IStream stream(read_ptr, 1000000000); 00180 ros::serialization::deserialize(stream, success); 00181 return stream.getData(); 00182 } 00183 00184 ROS_DEPRECATED virtual uint32_t serializationLength() const 00185 { 00186 uint32_t size = 0; 00187 size += ros::serialization::serializationLength(success); 00188 return size; 00189 } 00190 00191 typedef boost::shared_ptr< ::irobot_create_2_1::TankResponse_<ContainerAllocator> > Ptr; 00192 typedef boost::shared_ptr< ::irobot_create_2_1::TankResponse_<ContainerAllocator> const> ConstPtr; 00193 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00194 }; // struct TankResponse 00195 typedef ::irobot_create_2_1::TankResponse_<std::allocator<void> > TankResponse; 00196 00197 typedef boost::shared_ptr< ::irobot_create_2_1::TankResponse> TankResponsePtr; 00198 typedef boost::shared_ptr< ::irobot_create_2_1::TankResponse const> TankResponseConstPtr; 00199 00200 struct Tank 00201 { 00202 00203 typedef TankRequest Request; 00204 typedef TankResponse Response; 00205 Request request; 00206 Response response; 00207 00208 typedef Request RequestType; 00209 typedef Response ResponseType; 00210 }; // struct Tank 00211 } // namespace irobot_create_2_1 00212 00213 namespace ros 00214 { 00215 namespace message_traits 00216 { 00217 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::TankRequest_<ContainerAllocator> > : public TrueType {}; 00218 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::TankRequest_<ContainerAllocator> const> : public TrueType {}; 00219 template<class ContainerAllocator> 00220 struct MD5Sum< ::irobot_create_2_1::TankRequest_<ContainerAllocator> > { 00221 static const char* value() 00222 { 00223 return "c7893eae2d5c5450b4f137c7c7f29b99"; 00224 } 00225 00226 static const char* value(const ::irobot_create_2_1::TankRequest_<ContainerAllocator> &) { return value(); } 00227 static const uint64_t static_value1 = 0xc7893eae2d5c5450ULL; 00228 static const uint64_t static_value2 = 0xb4f137c7c7f29b99ULL; 00229 }; 00230 00231 template<class ContainerAllocator> 00232 struct DataType< ::irobot_create_2_1::TankRequest_<ContainerAllocator> > { 00233 static const char* value() 00234 { 00235 return "irobot_create_2_1/TankRequest"; 00236 } 00237 00238 static const char* value(const ::irobot_create_2_1::TankRequest_<ContainerAllocator> &) { return value(); } 00239 }; 00240 00241 template<class ContainerAllocator> 00242 struct Definition< ::irobot_create_2_1::TankRequest_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "bool clear\n\ 00246 int16 left\n\ 00247 int16 right\n\ 00248 \n\ 00249 "; 00250 } 00251 00252 static const char* value(const ::irobot_create_2_1::TankRequest_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 template<class ContainerAllocator> struct IsFixedSize< ::irobot_create_2_1::TankRequest_<ContainerAllocator> > : public TrueType {}; 00256 } // namespace message_traits 00257 } // namespace ros 00258 00259 00260 namespace ros 00261 { 00262 namespace message_traits 00263 { 00264 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::TankResponse_<ContainerAllocator> > : public TrueType {}; 00265 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::TankResponse_<ContainerAllocator> const> : public TrueType {}; 00266 template<class ContainerAllocator> 00267 struct MD5Sum< ::irobot_create_2_1::TankResponse_<ContainerAllocator> > { 00268 static const char* value() 00269 { 00270 return "358e233cde0c8a8bcfea4ce193f8fc15"; 00271 } 00272 00273 static const char* value(const ::irobot_create_2_1::TankResponse_<ContainerAllocator> &) { return value(); } 00274 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL; 00275 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL; 00276 }; 00277 00278 template<class ContainerAllocator> 00279 struct DataType< ::irobot_create_2_1::TankResponse_<ContainerAllocator> > { 00280 static const char* value() 00281 { 00282 return "irobot_create_2_1/TankResponse"; 00283 } 00284 00285 static const char* value(const ::irobot_create_2_1::TankResponse_<ContainerAllocator> &) { return value(); } 00286 }; 00287 00288 template<class ContainerAllocator> 00289 struct Definition< ::irobot_create_2_1::TankResponse_<ContainerAllocator> > { 00290 static const char* value() 00291 { 00292 return "bool success\n\ 00293 \n\ 00294 \n\ 00295 "; 00296 } 00297 00298 static const char* value(const ::irobot_create_2_1::TankResponse_<ContainerAllocator> &) { return value(); } 00299 }; 00300 00301 template<class ContainerAllocator> struct IsFixedSize< ::irobot_create_2_1::TankResponse_<ContainerAllocator> > : public TrueType {}; 00302 } // namespace message_traits 00303 } // namespace ros 00304 00305 namespace ros 00306 { 00307 namespace serialization 00308 { 00309 00310 template<class ContainerAllocator> struct Serializer< ::irobot_create_2_1::TankRequest_<ContainerAllocator> > 00311 { 00312 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00313 { 00314 stream.next(m.clear); 00315 stream.next(m.left); 00316 stream.next(m.right); 00317 } 00318 00319 ROS_DECLARE_ALLINONE_SERIALIZER; 00320 }; // struct TankRequest_ 00321 } // namespace serialization 00322 } // namespace ros 00323 00324 00325 namespace ros 00326 { 00327 namespace serialization 00328 { 00329 00330 template<class ContainerAllocator> struct Serializer< ::irobot_create_2_1::TankResponse_<ContainerAllocator> > 00331 { 00332 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00333 { 00334 stream.next(m.success); 00335 } 00336 00337 ROS_DECLARE_ALLINONE_SERIALIZER; 00338 }; // struct TankResponse_ 00339 } // namespace serialization 00340 } // namespace ros 00341 00342 namespace ros 00343 { 00344 namespace service_traits 00345 { 00346 template<> 00347 struct MD5Sum<irobot_create_2_1::Tank> { 00348 static const char* value() 00349 { 00350 return "745f1885a9f717c8b4a13cfddf382c30"; 00351 } 00352 00353 static const char* value(const irobot_create_2_1::Tank&) { return value(); } 00354 }; 00355 00356 template<> 00357 struct DataType<irobot_create_2_1::Tank> { 00358 static const char* value() 00359 { 00360 return "irobot_create_2_1/Tank"; 00361 } 00362 00363 static const char* value(const irobot_create_2_1::Tank&) { return value(); } 00364 }; 00365 00366 template<class ContainerAllocator> 00367 struct MD5Sum<irobot_create_2_1::TankRequest_<ContainerAllocator> > { 00368 static const char* value() 00369 { 00370 return "745f1885a9f717c8b4a13cfddf382c30"; 00371 } 00372 00373 static const char* value(const irobot_create_2_1::TankRequest_<ContainerAllocator> &) { return value(); } 00374 }; 00375 00376 template<class ContainerAllocator> 00377 struct DataType<irobot_create_2_1::TankRequest_<ContainerAllocator> > { 00378 static const char* value() 00379 { 00380 return "irobot_create_2_1/Tank"; 00381 } 00382 00383 static const char* value(const irobot_create_2_1::TankRequest_<ContainerAllocator> &) { return value(); } 00384 }; 00385 00386 template<class ContainerAllocator> 00387 struct MD5Sum<irobot_create_2_1::TankResponse_<ContainerAllocator> > { 00388 static const char* value() 00389 { 00390 return "745f1885a9f717c8b4a13cfddf382c30"; 00391 } 00392 00393 static const char* value(const irobot_create_2_1::TankResponse_<ContainerAllocator> &) { return value(); } 00394 }; 00395 00396 template<class ContainerAllocator> 00397 struct DataType<irobot_create_2_1::TankResponse_<ContainerAllocator> > { 00398 static const char* value() 00399 { 00400 return "irobot_create_2_1/Tank"; 00401 } 00402 00403 static const char* value(const irobot_create_2_1::TankResponse_<ContainerAllocator> &) { return value(); } 00404 }; 00405 00406 } // namespace service_traits 00407 } // namespace ros 00408 00409 #endif // IROBOT_CREATE_2_1_SERVICE_TANK_H 00410