$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_ui_but/srv/GetClosestPoint.srv */ 00002 #ifndef SRS_UI_BUT_SERVICE_GETCLOSESTPOINT_H 00003 #define SRS_UI_BUT_SERVICE_GETCLOSESTPOINT_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 #include "srs_ui_but/ClosestPoint.h" 00022 00023 namespace srs_ui_but 00024 { 00025 template <class ContainerAllocator> 00026 struct GetClosestPointRequest_ { 00027 typedef GetClosestPointRequest_<ContainerAllocator> Type; 00028 00029 GetClosestPointRequest_() 00030 : link() 00031 { 00032 } 00033 00034 GetClosestPointRequest_(const ContainerAllocator& _alloc) 00035 : link(_alloc) 00036 { 00037 } 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _link_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > link; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "srs_ui_but/GetClosestPointRequest"; } 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 "ea76beb6075427d0f1ae216d11c76df4"; } 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 "b929c9680929a3fd67aeaa4044008f32"; } 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 "string link\n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, link); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00081 { 00082 ros::serialization::IStream stream(read_ptr, 1000000000); 00083 ros::serialization::deserialize(stream, link); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint32_t serializationLength() const 00088 { 00089 uint32_t size = 0; 00090 size += ros::serialization::serializationLength(link); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> const> ConstPtr; 00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00097 }; // struct GetClosestPointRequest 00098 typedef ::srs_ui_but::GetClosestPointRequest_<std::allocator<void> > GetClosestPointRequest; 00099 00100 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointRequest> GetClosestPointRequestPtr; 00101 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointRequest const> GetClosestPointRequestConstPtr; 00102 00103 00104 template <class ContainerAllocator> 00105 struct GetClosestPointResponse_ { 00106 typedef GetClosestPointResponse_<ContainerAllocator> Type; 00107 00108 GetClosestPointResponse_() 00109 : closest_point_data() 00110 , topic() 00111 { 00112 } 00113 00114 GetClosestPointResponse_(const ContainerAllocator& _alloc) 00115 : closest_point_data(_alloc) 00116 , topic(_alloc) 00117 { 00118 } 00119 00120 typedef ::srs_ui_but::ClosestPoint_<ContainerAllocator> _closest_point_data_type; 00121 ::srs_ui_but::ClosestPoint_<ContainerAllocator> closest_point_data; 00122 00123 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type; 00124 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic; 00125 00126 00127 private: 00128 static const char* __s_getDataType_() { return "srs_ui_but/GetClosestPointResponse"; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00131 00132 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00133 00134 private: 00135 static const char* __s_getMD5Sum_() { return "e30db15e9efc7c4a9d0ea2a32a7b59e5"; } 00136 public: 00137 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00138 00139 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00140 00141 private: 00142 static const char* __s_getServerMD5Sum_() { return "b929c9680929a3fd67aeaa4044008f32"; } 00143 public: 00144 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00145 00146 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00147 00148 private: 00149 static const char* __s_getMessageDefinition_() { return "srs_ui_but/ClosestPoint closest_point_data\n\ 00150 string topic\n\ 00151 \n\ 00152 ================================================================================\n\ 00153 MSG: srs_ui_but/ClosestPoint\n\ 00154 time time_stamp #\n\ 00155 bool status # \n\ 00156 float32 distance # Distance between link and closest point\n\ 00157 geometry_msgs/Vector3 position # Point position\n\ 00158 ================================================================================\n\ 00159 MSG: geometry_msgs/Vector3\n\ 00160 # This represents a vector in free space. \n\ 00161 \n\ 00162 float64 x\n\ 00163 float64 y\n\ 00164 float64 z\n\ 00165 "; } 00166 public: 00167 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00168 00169 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00170 00171 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00172 { 00173 ros::serialization::OStream stream(write_ptr, 1000000000); 00174 ros::serialization::serialize(stream, closest_point_data); 00175 ros::serialization::serialize(stream, topic); 00176 return stream.getData(); 00177 } 00178 00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00180 { 00181 ros::serialization::IStream stream(read_ptr, 1000000000); 00182 ros::serialization::deserialize(stream, closest_point_data); 00183 ros::serialization::deserialize(stream, topic); 00184 return stream.getData(); 00185 } 00186 00187 ROS_DEPRECATED virtual uint32_t serializationLength() const 00188 { 00189 uint32_t size = 0; 00190 size += ros::serialization::serializationLength(closest_point_data); 00191 size += ros::serialization::serializationLength(topic); 00192 return size; 00193 } 00194 00195 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > Ptr; 00196 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> const> ConstPtr; 00197 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00198 }; // struct GetClosestPointResponse 00199 typedef ::srs_ui_but::GetClosestPointResponse_<std::allocator<void> > GetClosestPointResponse; 00200 00201 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointResponse> GetClosestPointResponsePtr; 00202 typedef boost::shared_ptr< ::srs_ui_but::GetClosestPointResponse const> GetClosestPointResponseConstPtr; 00203 00204 struct GetClosestPoint 00205 { 00206 00207 typedef GetClosestPointRequest Request; 00208 typedef GetClosestPointResponse Response; 00209 Request request; 00210 Response response; 00211 00212 typedef Request RequestType; 00213 typedef Response ResponseType; 00214 }; // struct GetClosestPoint 00215 } // namespace srs_ui_but 00216 00217 namespace ros 00218 { 00219 namespace message_traits 00220 { 00221 template<class ContainerAllocator> struct IsMessage< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > : public TrueType {}; 00222 template<class ContainerAllocator> struct IsMessage< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> const> : public TrueType {}; 00223 template<class ContainerAllocator> 00224 struct MD5Sum< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > { 00225 static const char* value() 00226 { 00227 return "ea76beb6075427d0f1ae216d11c76df4"; 00228 } 00229 00230 static const char* value(const ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> &) { return value(); } 00231 static const uint64_t static_value1 = 0xea76beb6075427d0ULL; 00232 static const uint64_t static_value2 = 0xf1ae216d11c76df4ULL; 00233 }; 00234 00235 template<class ContainerAllocator> 00236 struct DataType< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > { 00237 static const char* value() 00238 { 00239 return "srs_ui_but/GetClosestPointRequest"; 00240 } 00241 00242 static const char* value(const ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> &) { return value(); } 00243 }; 00244 00245 template<class ContainerAllocator> 00246 struct Definition< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "string link\n\ 00250 \n\ 00251 "; 00252 } 00253 00254 static const char* value(const ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> &) { return value(); } 00255 }; 00256 00257 } // namespace message_traits 00258 } // namespace ros 00259 00260 00261 namespace ros 00262 { 00263 namespace message_traits 00264 { 00265 template<class ContainerAllocator> struct IsMessage< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > : public TrueType {}; 00266 template<class ContainerAllocator> struct IsMessage< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> const> : public TrueType {}; 00267 template<class ContainerAllocator> 00268 struct MD5Sum< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > { 00269 static const char* value() 00270 { 00271 return "e30db15e9efc7c4a9d0ea2a32a7b59e5"; 00272 } 00273 00274 static const char* value(const ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> &) { return value(); } 00275 static const uint64_t static_value1 = 0xe30db15e9efc7c4aULL; 00276 static const uint64_t static_value2 = 0x9d0ea2a32a7b59e5ULL; 00277 }; 00278 00279 template<class ContainerAllocator> 00280 struct DataType< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > { 00281 static const char* value() 00282 { 00283 return "srs_ui_but/GetClosestPointResponse"; 00284 } 00285 00286 static const char* value(const ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> &) { return value(); } 00287 }; 00288 00289 template<class ContainerAllocator> 00290 struct Definition< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > { 00291 static const char* value() 00292 { 00293 return "srs_ui_but/ClosestPoint closest_point_data\n\ 00294 string topic\n\ 00295 \n\ 00296 ================================================================================\n\ 00297 MSG: srs_ui_but/ClosestPoint\n\ 00298 time time_stamp #\n\ 00299 bool status # \n\ 00300 float32 distance # Distance between link and closest point\n\ 00301 geometry_msgs/Vector3 position # Point position\n\ 00302 ================================================================================\n\ 00303 MSG: geometry_msgs/Vector3\n\ 00304 # This represents a vector in free space. \n\ 00305 \n\ 00306 float64 x\n\ 00307 float64 y\n\ 00308 float64 z\n\ 00309 "; 00310 } 00311 00312 static const char* value(const ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> &) { return value(); } 00313 }; 00314 00315 } // namespace message_traits 00316 } // namespace ros 00317 00318 namespace ros 00319 { 00320 namespace serialization 00321 { 00322 00323 template<class ContainerAllocator> struct Serializer< ::srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > 00324 { 00325 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00326 { 00327 stream.next(m.link); 00328 } 00329 00330 ROS_DECLARE_ALLINONE_SERIALIZER; 00331 }; // struct GetClosestPointRequest_ 00332 } // namespace serialization 00333 } // namespace ros 00334 00335 00336 namespace ros 00337 { 00338 namespace serialization 00339 { 00340 00341 template<class ContainerAllocator> struct Serializer< ::srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > 00342 { 00343 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00344 { 00345 stream.next(m.closest_point_data); 00346 stream.next(m.topic); 00347 } 00348 00349 ROS_DECLARE_ALLINONE_SERIALIZER; 00350 }; // struct GetClosestPointResponse_ 00351 } // namespace serialization 00352 } // namespace ros 00353 00354 namespace ros 00355 { 00356 namespace service_traits 00357 { 00358 template<> 00359 struct MD5Sum<srs_ui_but::GetClosestPoint> { 00360 static const char* value() 00361 { 00362 return "b929c9680929a3fd67aeaa4044008f32"; 00363 } 00364 00365 static const char* value(const srs_ui_but::GetClosestPoint&) { return value(); } 00366 }; 00367 00368 template<> 00369 struct DataType<srs_ui_but::GetClosestPoint> { 00370 static const char* value() 00371 { 00372 return "srs_ui_but/GetClosestPoint"; 00373 } 00374 00375 static const char* value(const srs_ui_but::GetClosestPoint&) { return value(); } 00376 }; 00377 00378 template<class ContainerAllocator> 00379 struct MD5Sum<srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > { 00380 static const char* value() 00381 { 00382 return "b929c9680929a3fd67aeaa4044008f32"; 00383 } 00384 00385 static const char* value(const srs_ui_but::GetClosestPointRequest_<ContainerAllocator> &) { return value(); } 00386 }; 00387 00388 template<class ContainerAllocator> 00389 struct DataType<srs_ui_but::GetClosestPointRequest_<ContainerAllocator> > { 00390 static const char* value() 00391 { 00392 return "srs_ui_but/GetClosestPoint"; 00393 } 00394 00395 static const char* value(const srs_ui_but::GetClosestPointRequest_<ContainerAllocator> &) { return value(); } 00396 }; 00397 00398 template<class ContainerAllocator> 00399 struct MD5Sum<srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > { 00400 static const char* value() 00401 { 00402 return "b929c9680929a3fd67aeaa4044008f32"; 00403 } 00404 00405 static const char* value(const srs_ui_but::GetClosestPointResponse_<ContainerAllocator> &) { return value(); } 00406 }; 00407 00408 template<class ContainerAllocator> 00409 struct DataType<srs_ui_but::GetClosestPointResponse_<ContainerAllocator> > { 00410 static const char* value() 00411 { 00412 return "srs_ui_but/GetClosestPoint"; 00413 } 00414 00415 static const char* value(const srs_ui_but::GetClosestPointResponse_<ContainerAllocator> &) { return value(); } 00416 }; 00417 00418 } // namespace service_traits 00419 } // namespace ros 00420 00421 #endif // SRS_UI_BUT_SERVICE_GETCLOSESTPOINT_H 00422