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