$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_env_model/srv/GetCollisionMap.srv */ 00002 #ifndef SRS_ENV_MODEL_SERVICE_GETCOLLISIONMAP_H 00003 #define SRS_ENV_MODEL_SERVICE_GETCOLLISIONMAP_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 "arm_navigation_msgs/CollisionMap.h" 00022 00023 namespace srs_env_model 00024 { 00025 template <class ContainerAllocator> 00026 struct GetCollisionMapRequest_ { 00027 typedef GetCollisionMapRequest_<ContainerAllocator> Type; 00028 00029 GetCollisionMapRequest_() 00030 : my_version(0) 00031 { 00032 } 00033 00034 GetCollisionMapRequest_(const ContainerAllocator& _alloc) 00035 : my_version(0) 00036 { 00037 } 00038 00039 typedef int32_t _my_version_type; 00040 int32_t my_version; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "srs_env_model/GetCollisionMapRequest"; } 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 "50e1a4edab5d6f2535c9548b895b48ae"; } 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 "560e75cdb1e7aa90c15048445dd0989f"; } 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 "int32 my_version\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, my_version); 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, my_version); 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(my_version); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> const> ConstPtr; 00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00097 }; // struct GetCollisionMapRequest 00098 typedef ::srs_env_model::GetCollisionMapRequest_<std::allocator<void> > GetCollisionMapRequest; 00099 00100 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapRequest> GetCollisionMapRequestPtr; 00101 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapRequest const> GetCollisionMapRequestConstPtr; 00102 00103 00104 template <class ContainerAllocator> 00105 struct GetCollisionMapResponse_ { 00106 typedef GetCollisionMapResponse_<ContainerAllocator> Type; 00107 00108 GetCollisionMapResponse_() 00109 : current_version(0) 00110 , map() 00111 { 00112 } 00113 00114 GetCollisionMapResponse_(const ContainerAllocator& _alloc) 00115 : current_version(0) 00116 , map(_alloc) 00117 { 00118 } 00119 00120 typedef int32_t _current_version_type; 00121 int32_t current_version; 00122 00123 typedef ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> _map_type; 00124 ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> map; 00125 00126 00127 private: 00128 static const char* __s_getDataType_() { return "srs_env_model/GetCollisionMapResponse"; } 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 "6344241d2df0a4ebe7ddcfcff7611b99"; } 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 "560e75cdb1e7aa90c15048445dd0989f"; } 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 "int32 current_version\n\ 00150 arm_navigation_msgs/CollisionMap map\n\ 00151 \n\ 00152 ================================================================================\n\ 00153 MSG: arm_navigation_msgs/CollisionMap\n\ 00154 #header for interpreting box positions\n\ 00155 Header header\n\ 00156 \n\ 00157 #boxes for use in collision testing\n\ 00158 OrientedBoundingBox[] boxes\n\ 00159 \n\ 00160 ================================================================================\n\ 00161 MSG: std_msgs/Header\n\ 00162 # Standard metadata for higher-level stamped data types.\n\ 00163 # This is generally used to communicate timestamped data \n\ 00164 # in a particular coordinate frame.\n\ 00165 # \n\ 00166 # sequence ID: consecutively increasing ID \n\ 00167 uint32 seq\n\ 00168 #Two-integer timestamp that is expressed as:\n\ 00169 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00170 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00171 # time-handling sugar is provided by the client library\n\ 00172 time stamp\n\ 00173 #Frame this data is associated with\n\ 00174 # 0: no frame\n\ 00175 # 1: global frame\n\ 00176 string frame_id\n\ 00177 \n\ 00178 ================================================================================\n\ 00179 MSG: arm_navigation_msgs/OrientedBoundingBox\n\ 00180 #the center of the box\n\ 00181 geometry_msgs/Point32 center\n\ 00182 \n\ 00183 #the extents of the box, assuming the center is at the point\n\ 00184 geometry_msgs/Point32 extents\n\ 00185 \n\ 00186 #the axis of the box\n\ 00187 geometry_msgs/Point32 axis\n\ 00188 \n\ 00189 #the angle of rotation around the axis\n\ 00190 float32 angle\n\ 00191 \n\ 00192 ================================================================================\n\ 00193 MSG: geometry_msgs/Point32\n\ 00194 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00195 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00196 # \n\ 00197 # This recommendation is to promote interoperability. \n\ 00198 #\n\ 00199 # This message is designed to take up less space when sending\n\ 00200 # lots of points at once, as in the case of a PointCloud. \n\ 00201 \n\ 00202 float32 x\n\ 00203 float32 y\n\ 00204 float32 z\n\ 00205 "; } 00206 public: 00207 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00208 00209 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00210 00211 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00212 { 00213 ros::serialization::OStream stream(write_ptr, 1000000000); 00214 ros::serialization::serialize(stream, current_version); 00215 ros::serialization::serialize(stream, map); 00216 return stream.getData(); 00217 } 00218 00219 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00220 { 00221 ros::serialization::IStream stream(read_ptr, 1000000000); 00222 ros::serialization::deserialize(stream, current_version); 00223 ros::serialization::deserialize(stream, map); 00224 return stream.getData(); 00225 } 00226 00227 ROS_DEPRECATED virtual uint32_t serializationLength() const 00228 { 00229 uint32_t size = 0; 00230 size += ros::serialization::serializationLength(current_version); 00231 size += ros::serialization::serializationLength(map); 00232 return size; 00233 } 00234 00235 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > Ptr; 00236 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> const> ConstPtr; 00237 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00238 }; // struct GetCollisionMapResponse 00239 typedef ::srs_env_model::GetCollisionMapResponse_<std::allocator<void> > GetCollisionMapResponse; 00240 00241 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapResponse> GetCollisionMapResponsePtr; 00242 typedef boost::shared_ptr< ::srs_env_model::GetCollisionMapResponse const> GetCollisionMapResponseConstPtr; 00243 00244 struct GetCollisionMap 00245 { 00246 00247 typedef GetCollisionMapRequest Request; 00248 typedef GetCollisionMapResponse Response; 00249 Request request; 00250 Response response; 00251 00252 typedef Request RequestType; 00253 typedef Response ResponseType; 00254 }; // struct GetCollisionMap 00255 } // namespace srs_env_model 00256 00257 namespace ros 00258 { 00259 namespace message_traits 00260 { 00261 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > : public TrueType {}; 00262 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> const> : public TrueType {}; 00263 template<class ContainerAllocator> 00264 struct MD5Sum< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > { 00265 static const char* value() 00266 { 00267 return "50e1a4edab5d6f2535c9548b895b48ae"; 00268 } 00269 00270 static const char* value(const ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> &) { return value(); } 00271 static const uint64_t static_value1 = 0x50e1a4edab5d6f25ULL; 00272 static const uint64_t static_value2 = 0x35c9548b895b48aeULL; 00273 }; 00274 00275 template<class ContainerAllocator> 00276 struct DataType< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > { 00277 static const char* value() 00278 { 00279 return "srs_env_model/GetCollisionMapRequest"; 00280 } 00281 00282 static const char* value(const ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> &) { return value(); } 00283 }; 00284 00285 template<class ContainerAllocator> 00286 struct Definition< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > { 00287 static const char* value() 00288 { 00289 return "int32 my_version\n\ 00290 \n\ 00291 "; 00292 } 00293 00294 static const char* value(const ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> &) { return value(); } 00295 }; 00296 00297 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > : public TrueType {}; 00298 } // namespace message_traits 00299 } // namespace ros 00300 00301 00302 namespace ros 00303 { 00304 namespace message_traits 00305 { 00306 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > : public TrueType {}; 00307 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> const> : public TrueType {}; 00308 template<class ContainerAllocator> 00309 struct MD5Sum< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > { 00310 static const char* value() 00311 { 00312 return "6344241d2df0a4ebe7ddcfcff7611b99"; 00313 } 00314 00315 static const char* value(const ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> &) { return value(); } 00316 static const uint64_t static_value1 = 0x6344241d2df0a4ebULL; 00317 static const uint64_t static_value2 = 0xe7ddcfcff7611b99ULL; 00318 }; 00319 00320 template<class ContainerAllocator> 00321 struct DataType< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > { 00322 static const char* value() 00323 { 00324 return "srs_env_model/GetCollisionMapResponse"; 00325 } 00326 00327 static const char* value(const ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> &) { return value(); } 00328 }; 00329 00330 template<class ContainerAllocator> 00331 struct Definition< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > { 00332 static const char* value() 00333 { 00334 return "int32 current_version\n\ 00335 arm_navigation_msgs/CollisionMap map\n\ 00336 \n\ 00337 ================================================================================\n\ 00338 MSG: arm_navigation_msgs/CollisionMap\n\ 00339 #header for interpreting box positions\n\ 00340 Header header\n\ 00341 \n\ 00342 #boxes for use in collision testing\n\ 00343 OrientedBoundingBox[] boxes\n\ 00344 \n\ 00345 ================================================================================\n\ 00346 MSG: std_msgs/Header\n\ 00347 # Standard metadata for higher-level stamped data types.\n\ 00348 # This is generally used to communicate timestamped data \n\ 00349 # in a particular coordinate frame.\n\ 00350 # \n\ 00351 # sequence ID: consecutively increasing ID \n\ 00352 uint32 seq\n\ 00353 #Two-integer timestamp that is expressed as:\n\ 00354 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00355 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00356 # time-handling sugar is provided by the client library\n\ 00357 time stamp\n\ 00358 #Frame this data is associated with\n\ 00359 # 0: no frame\n\ 00360 # 1: global frame\n\ 00361 string frame_id\n\ 00362 \n\ 00363 ================================================================================\n\ 00364 MSG: arm_navigation_msgs/OrientedBoundingBox\n\ 00365 #the center of the box\n\ 00366 geometry_msgs/Point32 center\n\ 00367 \n\ 00368 #the extents of the box, assuming the center is at the point\n\ 00369 geometry_msgs/Point32 extents\n\ 00370 \n\ 00371 #the axis of the box\n\ 00372 geometry_msgs/Point32 axis\n\ 00373 \n\ 00374 #the angle of rotation around the axis\n\ 00375 float32 angle\n\ 00376 \n\ 00377 ================================================================================\n\ 00378 MSG: geometry_msgs/Point32\n\ 00379 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00380 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00381 # \n\ 00382 # This recommendation is to promote interoperability. \n\ 00383 #\n\ 00384 # This message is designed to take up less space when sending\n\ 00385 # lots of points at once, as in the case of a PointCloud. \n\ 00386 \n\ 00387 float32 x\n\ 00388 float32 y\n\ 00389 float32 z\n\ 00390 "; 00391 } 00392 00393 static const char* value(const ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> &) { return value(); } 00394 }; 00395 00396 } // namespace message_traits 00397 } // namespace ros 00398 00399 namespace ros 00400 { 00401 namespace serialization 00402 { 00403 00404 template<class ContainerAllocator> struct Serializer< ::srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > 00405 { 00406 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00407 { 00408 stream.next(m.my_version); 00409 } 00410 00411 ROS_DECLARE_ALLINONE_SERIALIZER; 00412 }; // struct GetCollisionMapRequest_ 00413 } // namespace serialization 00414 } // namespace ros 00415 00416 00417 namespace ros 00418 { 00419 namespace serialization 00420 { 00421 00422 template<class ContainerAllocator> struct Serializer< ::srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > 00423 { 00424 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00425 { 00426 stream.next(m.current_version); 00427 stream.next(m.map); 00428 } 00429 00430 ROS_DECLARE_ALLINONE_SERIALIZER; 00431 }; // struct GetCollisionMapResponse_ 00432 } // namespace serialization 00433 } // namespace ros 00434 00435 namespace ros 00436 { 00437 namespace service_traits 00438 { 00439 template<> 00440 struct MD5Sum<srs_env_model::GetCollisionMap> { 00441 static const char* value() 00442 { 00443 return "560e75cdb1e7aa90c15048445dd0989f"; 00444 } 00445 00446 static const char* value(const srs_env_model::GetCollisionMap&) { return value(); } 00447 }; 00448 00449 template<> 00450 struct DataType<srs_env_model::GetCollisionMap> { 00451 static const char* value() 00452 { 00453 return "srs_env_model/GetCollisionMap"; 00454 } 00455 00456 static const char* value(const srs_env_model::GetCollisionMap&) { return value(); } 00457 }; 00458 00459 template<class ContainerAllocator> 00460 struct MD5Sum<srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > { 00461 static const char* value() 00462 { 00463 return "560e75cdb1e7aa90c15048445dd0989f"; 00464 } 00465 00466 static const char* value(const srs_env_model::GetCollisionMapRequest_<ContainerAllocator> &) { return value(); } 00467 }; 00468 00469 template<class ContainerAllocator> 00470 struct DataType<srs_env_model::GetCollisionMapRequest_<ContainerAllocator> > { 00471 static const char* value() 00472 { 00473 return "srs_env_model/GetCollisionMap"; 00474 } 00475 00476 static const char* value(const srs_env_model::GetCollisionMapRequest_<ContainerAllocator> &) { return value(); } 00477 }; 00478 00479 template<class ContainerAllocator> 00480 struct MD5Sum<srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > { 00481 static const char* value() 00482 { 00483 return "560e75cdb1e7aa90c15048445dd0989f"; 00484 } 00485 00486 static const char* value(const srs_env_model::GetCollisionMapResponse_<ContainerAllocator> &) { return value(); } 00487 }; 00488 00489 template<class ContainerAllocator> 00490 struct DataType<srs_env_model::GetCollisionMapResponse_<ContainerAllocator> > { 00491 static const char* value() 00492 { 00493 return "srs_env_model/GetCollisionMap"; 00494 } 00495 00496 static const char* value(const srs_env_model::GetCollisionMapResponse_<ContainerAllocator> &) { return value(); } 00497 }; 00498 00499 } // namespace service_traits 00500 } // namespace ros 00501 00502 #endif // SRS_ENV_MODEL_SERVICE_GETCOLLISIONMAP_H 00503