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