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