$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-arm_navigation/doc_stacks/2013-03-01_14-05-03.553953/arm_navigation/arm_navigation_msgs/msg/CollisionMap.msg */ 00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONMAP_H 00003 #define ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONMAP_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 "std_msgs/Header.h" 00018 #include "arm_navigation_msgs/OrientedBoundingBox.h" 00019 00020 namespace arm_navigation_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct CollisionMap_ { 00024 typedef CollisionMap_<ContainerAllocator> Type; 00025 00026 CollisionMap_() 00027 : header() 00028 , boxes() 00029 { 00030 } 00031 00032 CollisionMap_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , boxes(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::other > _boxes_type; 00042 std::vector< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::other > boxes; 00043 00044 00045 ROS_DEPRECATED uint32_t get_boxes_size() const { return (uint32_t)boxes.size(); } 00046 ROS_DEPRECATED void set_boxes_size(uint32_t size) { boxes.resize((size_t)size); } 00047 ROS_DEPRECATED void get_boxes_vec(std::vector< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::other > & vec) const { vec = this->boxes; } 00048 ROS_DEPRECATED void set_boxes_vec(const std::vector< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::other > & vec) { this->boxes = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "arm_navigation_msgs/CollisionMap"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "18ca54db41ccebbe82f61f9801dede89"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "#header for interpreting box positions\n\ 00065 Header header\n\ 00066 \n\ 00067 #boxes for use in collision testing\n\ 00068 OrientedBoundingBox[] boxes\n\ 00069 \n\ 00070 ================================================================================\n\ 00071 MSG: std_msgs/Header\n\ 00072 # Standard metadata for higher-level stamped data types.\n\ 00073 # This is generally used to communicate timestamped data \n\ 00074 # in a particular coordinate frame.\n\ 00075 # \n\ 00076 # sequence ID: consecutively increasing ID \n\ 00077 uint32 seq\n\ 00078 #Two-integer timestamp that is expressed as:\n\ 00079 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00080 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00081 # time-handling sugar is provided by the client library\n\ 00082 time stamp\n\ 00083 #Frame this data is associated with\n\ 00084 # 0: no frame\n\ 00085 # 1: global frame\n\ 00086 string frame_id\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: arm_navigation_msgs/OrientedBoundingBox\n\ 00090 #the center of the box\n\ 00091 geometry_msgs/Point32 center\n\ 00092 \n\ 00093 #the extents of the box, assuming the center is at the point\n\ 00094 geometry_msgs/Point32 extents\n\ 00095 \n\ 00096 #the axis of the box\n\ 00097 geometry_msgs/Point32 axis\n\ 00098 \n\ 00099 #the angle of rotation around the axis\n\ 00100 float32 angle\n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: geometry_msgs/Point32\n\ 00104 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00105 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00106 # \n\ 00107 # This recommendation is to promote interoperability. \n\ 00108 #\n\ 00109 # This message is designed to take up less space when sending\n\ 00110 # lots of points at once, as in the case of a PointCloud. \n\ 00111 \n\ 00112 float32 x\n\ 00113 float32 y\n\ 00114 float32 z\n\ 00115 "; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00118 00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00122 { 00123 ros::serialization::OStream stream(write_ptr, 1000000000); 00124 ros::serialization::serialize(stream, header); 00125 ros::serialization::serialize(stream, boxes); 00126 return stream.getData(); 00127 } 00128 00129 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00130 { 00131 ros::serialization::IStream stream(read_ptr, 1000000000); 00132 ros::serialization::deserialize(stream, header); 00133 ros::serialization::deserialize(stream, boxes); 00134 return stream.getData(); 00135 } 00136 00137 ROS_DEPRECATED virtual uint32_t serializationLength() const 00138 { 00139 uint32_t size = 0; 00140 size += ros::serialization::serializationLength(header); 00141 size += ros::serialization::serializationLength(boxes); 00142 return size; 00143 } 00144 00145 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > Ptr; 00146 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> const> ConstPtr; 00147 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00148 }; // struct CollisionMap 00149 typedef ::arm_navigation_msgs::CollisionMap_<std::allocator<void> > CollisionMap; 00150 00151 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap> CollisionMapPtr; 00152 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap const> CollisionMapConstPtr; 00153 00154 00155 template<typename ContainerAllocator> 00156 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> & v) 00157 { 00158 ros::message_operations::Printer< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> >::stream(s, "", v); 00159 return s;} 00160 00161 } // namespace arm_navigation_msgs 00162 00163 namespace ros 00164 { 00165 namespace message_traits 00166 { 00167 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > : public TrueType {}; 00168 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> const> : public TrueType {}; 00169 template<class ContainerAllocator> 00170 struct MD5Sum< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "18ca54db41ccebbe82f61f9801dede89"; 00174 } 00175 00176 static const char* value(const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> &) { return value(); } 00177 static const uint64_t static_value1 = 0x18ca54db41ccebbeULL; 00178 static const uint64_t static_value2 = 0x82f61f9801dede89ULL; 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct DataType< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "arm_navigation_msgs/CollisionMap"; 00186 } 00187 00188 static const char* value(const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> &) { return value(); } 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct Definition< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "#header for interpreting box positions\n\ 00196 Header header\n\ 00197 \n\ 00198 #boxes for use in collision testing\n\ 00199 OrientedBoundingBox[] boxes\n\ 00200 \n\ 00201 ================================================================================\n\ 00202 MSG: std_msgs/Header\n\ 00203 # Standard metadata for higher-level stamped data types.\n\ 00204 # This is generally used to communicate timestamped data \n\ 00205 # in a particular coordinate frame.\n\ 00206 # \n\ 00207 # sequence ID: consecutively increasing ID \n\ 00208 uint32 seq\n\ 00209 #Two-integer timestamp that is expressed as:\n\ 00210 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00211 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00212 # time-handling sugar is provided by the client library\n\ 00213 time stamp\n\ 00214 #Frame this data is associated with\n\ 00215 # 0: no frame\n\ 00216 # 1: global frame\n\ 00217 string frame_id\n\ 00218 \n\ 00219 ================================================================================\n\ 00220 MSG: arm_navigation_msgs/OrientedBoundingBox\n\ 00221 #the center of the box\n\ 00222 geometry_msgs/Point32 center\n\ 00223 \n\ 00224 #the extents of the box, assuming the center is at the point\n\ 00225 geometry_msgs/Point32 extents\n\ 00226 \n\ 00227 #the axis of the box\n\ 00228 geometry_msgs/Point32 axis\n\ 00229 \n\ 00230 #the angle of rotation around the axis\n\ 00231 float32 angle\n\ 00232 \n\ 00233 ================================================================================\n\ 00234 MSG: geometry_msgs/Point32\n\ 00235 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00236 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00237 # \n\ 00238 # This recommendation is to promote interoperability. \n\ 00239 #\n\ 00240 # This message is designed to take up less space when sending\n\ 00241 # lots of points at once, as in the case of a PointCloud. \n\ 00242 \n\ 00243 float32 x\n\ 00244 float32 y\n\ 00245 float32 z\n\ 00246 "; 00247 } 00248 00249 static const char* value(const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> &) { return value(); } 00250 }; 00251 00252 template<class ContainerAllocator> struct HasHeader< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > : public TrueType {}; 00253 template<class ContainerAllocator> struct HasHeader< const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > : public TrueType {}; 00254 } // namespace message_traits 00255 } // namespace ros 00256 00257 namespace ros 00258 { 00259 namespace serialization 00260 { 00261 00262 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > 00263 { 00264 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00265 { 00266 stream.next(m.header); 00267 stream.next(m.boxes); 00268 } 00269 00270 ROS_DECLARE_ALLINONE_SERIALIZER; 00271 }; // struct CollisionMap_ 00272 } // namespace serialization 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace message_operations 00278 { 00279 00280 template<class ContainerAllocator> 00281 struct Printer< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > 00282 { 00283 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> & v) 00284 { 00285 s << indent << "header: "; 00286 s << std::endl; 00287 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00288 s << indent << "boxes[]" << std::endl; 00289 for (size_t i = 0; i < v.boxes.size(); ++i) 00290 { 00291 s << indent << " boxes[" << i << "]: "; 00292 s << std::endl; 00293 s << indent; 00294 Printer< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::stream(s, indent + " ", v.boxes[i]); 00295 } 00296 } 00297 }; 00298 00299 00300 } // namespace message_operations 00301 } // namespace ros 00302 00303 #endif // ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONMAP_H 00304