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