$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/hector_slam/hector_nav_msgs/srv/GetDistanceToObstacle.srv */ 00002 #ifndef HECTOR_NAV_MSGS_SERVICE_GETDISTANCETOOBSTACLE_H 00003 #define HECTOR_NAV_MSGS_SERVICE_GETDISTANCETOOBSTACLE_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 "geometry_msgs/PointStamped.h" 00020 00021 00022 00023 namespace hector_nav_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct GetDistanceToObstacleRequest_ { 00027 typedef GetDistanceToObstacleRequest_<ContainerAllocator> Type; 00028 00029 GetDistanceToObstacleRequest_() 00030 : point() 00031 { 00032 } 00033 00034 GetDistanceToObstacleRequest_(const ContainerAllocator& _alloc) 00035 : point(_alloc) 00036 { 00037 } 00038 00039 typedef ::geometry_msgs::PointStamped_<ContainerAllocator> _point_type; 00040 ::geometry_msgs::PointStamped_<ContainerAllocator> point; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "hector_nav_msgs/GetDistanceToObstacleRequest"; } 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 "47dfdbd810b48d0a47b7ad67e4191bcc"; } 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 "39487a7f4ae86519c9734900c4327589"; } 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 "\n\ 00066 \n\ 00067 \n\ 00068 \n\ 00069 \n\ 00070 geometry_msgs/PointStamped point\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: geometry_msgs/PointStamped\n\ 00074 # This represents a Point with reference coordinate frame and timestamp\n\ 00075 Header header\n\ 00076 Point point\n\ 00077 \n\ 00078 ================================================================================\n\ 00079 MSG: std_msgs/Header\n\ 00080 # Standard metadata for higher-level stamped data types.\n\ 00081 # This is generally used to communicate timestamped data \n\ 00082 # in a particular coordinate frame.\n\ 00083 # \n\ 00084 # sequence ID: consecutively increasing ID \n\ 00085 uint32 seq\n\ 00086 #Two-integer timestamp that is expressed as:\n\ 00087 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00088 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00089 # time-handling sugar is provided by the client library\n\ 00090 time stamp\n\ 00091 #Frame this data is associated with\n\ 00092 # 0: no frame\n\ 00093 # 1: global frame\n\ 00094 string frame_id\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: geometry_msgs/Point\n\ 00098 # This contains the position of a point in free space\n\ 00099 float64 x\n\ 00100 float64 y\n\ 00101 float64 z\n\ 00102 \n\ 00103 "; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00110 { 00111 ros::serialization::OStream stream(write_ptr, 1000000000); 00112 ros::serialization::serialize(stream, point); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00117 { 00118 ros::serialization::IStream stream(read_ptr, 1000000000); 00119 ros::serialization::deserialize(stream, point); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint32_t serializationLength() const 00124 { 00125 uint32_t size = 0; 00126 size += ros::serialization::serializationLength(point); 00127 return size; 00128 } 00129 00130 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > Ptr; 00131 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> const> ConstPtr; 00132 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00133 }; // struct GetDistanceToObstacleRequest 00134 typedef ::hector_nav_msgs::GetDistanceToObstacleRequest_<std::allocator<void> > GetDistanceToObstacleRequest; 00135 00136 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleRequest> GetDistanceToObstacleRequestPtr; 00137 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleRequest const> GetDistanceToObstacleRequestConstPtr; 00138 00139 00140 template <class ContainerAllocator> 00141 struct GetDistanceToObstacleResponse_ { 00142 typedef GetDistanceToObstacleResponse_<ContainerAllocator> Type; 00143 00144 GetDistanceToObstacleResponse_() 00145 : distance(0.0) 00146 { 00147 } 00148 00149 GetDistanceToObstacleResponse_(const ContainerAllocator& _alloc) 00150 : distance(0.0) 00151 { 00152 } 00153 00154 typedef float _distance_type; 00155 float distance; 00156 00157 00158 private: 00159 static const char* __s_getDataType_() { return "hector_nav_msgs/GetDistanceToObstacleResponse"; } 00160 public: 00161 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00162 00163 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00164 00165 private: 00166 static const char* __s_getMD5Sum_() { return "6e77fb10f0c8b4833ec273aa9ac74459"; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00169 00170 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00171 00172 private: 00173 static const char* __s_getServerMD5Sum_() { return "39487a7f4ae86519c9734900c4327589"; } 00174 public: 00175 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00176 00177 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00178 00179 private: 00180 static const char* __s_getMessageDefinition_() { return "float32 distance\n\ 00181 \n\ 00182 \n\ 00183 \n\ 00184 "; } 00185 public: 00186 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00187 00188 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00189 00190 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00191 { 00192 ros::serialization::OStream stream(write_ptr, 1000000000); 00193 ros::serialization::serialize(stream, distance); 00194 return stream.getData(); 00195 } 00196 00197 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00198 { 00199 ros::serialization::IStream stream(read_ptr, 1000000000); 00200 ros::serialization::deserialize(stream, distance); 00201 return stream.getData(); 00202 } 00203 00204 ROS_DEPRECATED virtual uint32_t serializationLength() const 00205 { 00206 uint32_t size = 0; 00207 size += ros::serialization::serializationLength(distance); 00208 return size; 00209 } 00210 00211 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > Ptr; 00212 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> const> ConstPtr; 00213 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00214 }; // struct GetDistanceToObstacleResponse 00215 typedef ::hector_nav_msgs::GetDistanceToObstacleResponse_<std::allocator<void> > GetDistanceToObstacleResponse; 00216 00217 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleResponse> GetDistanceToObstacleResponsePtr; 00218 typedef boost::shared_ptr< ::hector_nav_msgs::GetDistanceToObstacleResponse const> GetDistanceToObstacleResponseConstPtr; 00219 00220 struct GetDistanceToObstacle 00221 { 00222 00223 typedef GetDistanceToObstacleRequest Request; 00224 typedef GetDistanceToObstacleResponse Response; 00225 Request request; 00226 Response response; 00227 00228 typedef Request RequestType; 00229 typedef Response ResponseType; 00230 }; // struct GetDistanceToObstacle 00231 } // namespace hector_nav_msgs 00232 00233 namespace ros 00234 { 00235 namespace message_traits 00236 { 00237 template<class ContainerAllocator> struct IsMessage< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > : public TrueType {}; 00238 template<class ContainerAllocator> struct IsMessage< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> const> : public TrueType {}; 00239 template<class ContainerAllocator> 00240 struct MD5Sum< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > { 00241 static const char* value() 00242 { 00243 return "47dfdbd810b48d0a47b7ad67e4191bcc"; 00244 } 00245 00246 static const char* value(const ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> &) { return value(); } 00247 static const uint64_t static_value1 = 0x47dfdbd810b48d0aULL; 00248 static const uint64_t static_value2 = 0x47b7ad67e4191bccULL; 00249 }; 00250 00251 template<class ContainerAllocator> 00252 struct DataType< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > { 00253 static const char* value() 00254 { 00255 return "hector_nav_msgs/GetDistanceToObstacleRequest"; 00256 } 00257 00258 static const char* value(const ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> &) { return value(); } 00259 }; 00260 00261 template<class ContainerAllocator> 00262 struct Definition< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "\n\ 00266 \n\ 00267 \n\ 00268 \n\ 00269 \n\ 00270 geometry_msgs/PointStamped point\n\ 00271 \n\ 00272 ================================================================================\n\ 00273 MSG: geometry_msgs/PointStamped\n\ 00274 # This represents a Point with reference coordinate frame and timestamp\n\ 00275 Header header\n\ 00276 Point point\n\ 00277 \n\ 00278 ================================================================================\n\ 00279 MSG: std_msgs/Header\n\ 00280 # Standard metadata for higher-level stamped data types.\n\ 00281 # This is generally used to communicate timestamped data \n\ 00282 # in a particular coordinate frame.\n\ 00283 # \n\ 00284 # sequence ID: consecutively increasing ID \n\ 00285 uint32 seq\n\ 00286 #Two-integer timestamp that is expressed as:\n\ 00287 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00288 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00289 # time-handling sugar is provided by the client library\n\ 00290 time stamp\n\ 00291 #Frame this data is associated with\n\ 00292 # 0: no frame\n\ 00293 # 1: global frame\n\ 00294 string frame_id\n\ 00295 \n\ 00296 ================================================================================\n\ 00297 MSG: geometry_msgs/Point\n\ 00298 # This contains the position of a point in free space\n\ 00299 float64 x\n\ 00300 float64 y\n\ 00301 float64 z\n\ 00302 \n\ 00303 "; 00304 } 00305 00306 static const char* value(const ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> &) { return value(); } 00307 }; 00308 00309 } // namespace message_traits 00310 } // namespace ros 00311 00312 00313 namespace ros 00314 { 00315 namespace message_traits 00316 { 00317 template<class ContainerAllocator> struct IsMessage< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > : public TrueType {}; 00318 template<class ContainerAllocator> struct IsMessage< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> const> : public TrueType {}; 00319 template<class ContainerAllocator> 00320 struct MD5Sum< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > { 00321 static const char* value() 00322 { 00323 return "6e77fb10f0c8b4833ec273aa9ac74459"; 00324 } 00325 00326 static const char* value(const ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> &) { return value(); } 00327 static const uint64_t static_value1 = 0x6e77fb10f0c8b483ULL; 00328 static const uint64_t static_value2 = 0x3ec273aa9ac74459ULL; 00329 }; 00330 00331 template<class ContainerAllocator> 00332 struct DataType< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > { 00333 static const char* value() 00334 { 00335 return "hector_nav_msgs/GetDistanceToObstacleResponse"; 00336 } 00337 00338 static const char* value(const ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> &) { return value(); } 00339 }; 00340 00341 template<class ContainerAllocator> 00342 struct Definition< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > { 00343 static const char* value() 00344 { 00345 return "float32 distance\n\ 00346 \n\ 00347 \n\ 00348 \n\ 00349 "; 00350 } 00351 00352 static const char* value(const ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> &) { return value(); } 00353 }; 00354 00355 template<class ContainerAllocator> struct IsFixedSize< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > : public TrueType {}; 00356 } // namespace message_traits 00357 } // namespace ros 00358 00359 namespace ros 00360 { 00361 namespace serialization 00362 { 00363 00364 template<class ContainerAllocator> struct Serializer< ::hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > 00365 { 00366 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00367 { 00368 stream.next(m.point); 00369 } 00370 00371 ROS_DECLARE_ALLINONE_SERIALIZER; 00372 }; // struct GetDistanceToObstacleRequest_ 00373 } // namespace serialization 00374 } // namespace ros 00375 00376 00377 namespace ros 00378 { 00379 namespace serialization 00380 { 00381 00382 template<class ContainerAllocator> struct Serializer< ::hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > 00383 { 00384 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00385 { 00386 stream.next(m.distance); 00387 } 00388 00389 ROS_DECLARE_ALLINONE_SERIALIZER; 00390 }; // struct GetDistanceToObstacleResponse_ 00391 } // namespace serialization 00392 } // namespace ros 00393 00394 namespace ros 00395 { 00396 namespace service_traits 00397 { 00398 template<> 00399 struct MD5Sum<hector_nav_msgs::GetDistanceToObstacle> { 00400 static const char* value() 00401 { 00402 return "39487a7f4ae86519c9734900c4327589"; 00403 } 00404 00405 static const char* value(const hector_nav_msgs::GetDistanceToObstacle&) { return value(); } 00406 }; 00407 00408 template<> 00409 struct DataType<hector_nav_msgs::GetDistanceToObstacle> { 00410 static const char* value() 00411 { 00412 return "hector_nav_msgs/GetDistanceToObstacle"; 00413 } 00414 00415 static const char* value(const hector_nav_msgs::GetDistanceToObstacle&) { return value(); } 00416 }; 00417 00418 template<class ContainerAllocator> 00419 struct MD5Sum<hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > { 00420 static const char* value() 00421 { 00422 return "39487a7f4ae86519c9734900c4327589"; 00423 } 00424 00425 static const char* value(const hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> &) { return value(); } 00426 }; 00427 00428 template<class ContainerAllocator> 00429 struct DataType<hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> > { 00430 static const char* value() 00431 { 00432 return "hector_nav_msgs/GetDistanceToObstacle"; 00433 } 00434 00435 static const char* value(const hector_nav_msgs::GetDistanceToObstacleRequest_<ContainerAllocator> &) { return value(); } 00436 }; 00437 00438 template<class ContainerAllocator> 00439 struct MD5Sum<hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > { 00440 static const char* value() 00441 { 00442 return "39487a7f4ae86519c9734900c4327589"; 00443 } 00444 00445 static const char* value(const hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> &) { return value(); } 00446 }; 00447 00448 template<class ContainerAllocator> 00449 struct DataType<hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> > { 00450 static const char* value() 00451 { 00452 return "hector_nav_msgs/GetDistanceToObstacle"; 00453 } 00454 00455 static const char* value(const hector_nav_msgs::GetDistanceToObstacleResponse_<ContainerAllocator> &) { return value(); } 00456 }; 00457 00458 } // namespace service_traits 00459 } // namespace ros 00460 00461 #endif // HECTOR_NAV_MSGS_SERVICE_GETDISTANCETOOBSTACLE_H 00462