00001
00002 #ifndef MAPPING_MSGS_MESSAGE_POLYGONALMAP_H
00003 #define MAPPING_MSGS_MESSAGE_POLYGONALMAP_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 "geometry_msgs/Polygon.h"
00015 #include "sensor_msgs/ChannelFloat32.h"
00016
00017 namespace mapping_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct PolygonalMap_ : public ros::Message
00021 {
00022 typedef PolygonalMap_<ContainerAllocator> Type;
00023
00024 PolygonalMap_()
00025 : header()
00026 , polygons()
00027 , chan()
00028 {
00029 }
00030
00031 PolygonalMap_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , polygons(_alloc)
00034 , chan(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > _polygons_type;
00042 std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > polygons;
00043
00044 typedef std::vector< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::other > _chan_type;
00045 std::vector< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::other > chan;
00046
00047
00048 ROS_DEPRECATED uint32_t get_polygons_size() const { return (uint32_t)polygons.size(); }
00049 ROS_DEPRECATED void set_polygons_size(uint32_t size) { polygons.resize((size_t)size); }
00050 ROS_DEPRECATED void get_polygons_vec(std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > & vec) const { vec = this->polygons; }
00051 ROS_DEPRECATED void set_polygons_vec(const std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > & vec) { this->polygons = vec; }
00052 ROS_DEPRECATED uint32_t get_chan_size() const { return (uint32_t)chan.size(); }
00053 ROS_DEPRECATED void set_chan_size(uint32_t size) { chan.resize((size_t)size); }
00054 ROS_DEPRECATED void get_chan_vec(std::vector< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::other > & vec) const { vec = this->chan; }
00055 ROS_DEPRECATED void set_chan_vec(const std::vector< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::other > & vec) { this->chan = vec; }
00056 private:
00057 static const char* __s_getDataType_() { return "mapping_msgs/PolygonalMap"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00060
00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00062
00063 private:
00064 static const char* __s_getMD5Sum_() { return "3ef041ea9abaaa9dac3e5aec60c68a99"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00067
00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00069
00070 private:
00071 static const char* __s_getMessageDefinition_() { return "Header header\n\
00072 geometry_msgs/Polygon[] polygons\n\
00073 sensor_msgs/ChannelFloat32[] chan\n\
00074 \n\
00075 ================================================================================\n\
00076 MSG: std_msgs/Header\n\
00077 # Standard metadata for higher-level stamped data types.\n\
00078 # This is generally used to communicate timestamped data \n\
00079 # in a particular coordinate frame.\n\
00080 # \n\
00081 # sequence ID: consecutively increasing ID \n\
00082 uint32 seq\n\
00083 #Two-integer timestamp that is expressed as:\n\
00084 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00085 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00086 # time-handling sugar is provided by the client library\n\
00087 time stamp\n\
00088 #Frame this data is associated with\n\
00089 # 0: no frame\n\
00090 # 1: global frame\n\
00091 string frame_id\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: geometry_msgs/Polygon\n\
00095 #A specification of a polygon where the first and last points are assumed to be connected\n\
00096 geometry_msgs/Point32[] points\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: geometry_msgs/Point32\n\
00100 # This contains the position of a point in free space(with 32 bits of precision).\n\
00101 # It is recommeded to use Point wherever possible instead of Point32. \n\
00102 # \n\
00103 # This recommendation is to promote interoperability. \n\
00104 #\n\
00105 # This message is designed to take up less space when sending\n\
00106 # lots of points at once, as in the case of a PointCloud. \n\
00107 \n\
00108 float32 x\n\
00109 float32 y\n\
00110 float32 z\n\
00111 ================================================================================\n\
00112 MSG: sensor_msgs/ChannelFloat32\n\
00113 # This message is used by the PointCloud message to hold optional data\n\
00114 # associated with each point in the cloud. The length of the values\n\
00115 # array should be the same as the length of the points array in the\n\
00116 # PointCloud, and each value should be associated with the corresponding\n\
00117 # point.\n\
00118 \n\
00119 # Channel names in existing practice include:\n\
00120 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00121 # This is opposite to usual conventions but remains for\n\
00122 # historical reasons. The newer PointCloud2 message has no\n\
00123 # such problem.\n\
00124 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00125 # (R,G,B) values packed into the least significant 24 bits,\n\
00126 # in order.\n\
00127 # \"intensity\" - laser or pixel intensity.\n\
00128 # \"distance\"\n\
00129 \n\
00130 # The channel name should give semantics of the channel (e.g.\n\
00131 # \"intensity\" instead of \"value\").\n\
00132 string name\n\
00133 \n\
00134 # The values array should be 1-1 with the elements of the associated\n\
00135 # PointCloud.\n\
00136 float32[] values\n\
00137 \n\
00138 "; }
00139 public:
00140 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00141
00142 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00143
00144 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00145 {
00146 ros::serialization::OStream stream(write_ptr, 1000000000);
00147 ros::serialization::serialize(stream, header);
00148 ros::serialization::serialize(stream, polygons);
00149 ros::serialization::serialize(stream, chan);
00150 return stream.getData();
00151 }
00152
00153 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00154 {
00155 ros::serialization::IStream stream(read_ptr, 1000000000);
00156 ros::serialization::deserialize(stream, header);
00157 ros::serialization::deserialize(stream, polygons);
00158 ros::serialization::deserialize(stream, chan);
00159 return stream.getData();
00160 }
00161
00162 ROS_DEPRECATED virtual uint32_t serializationLength() const
00163 {
00164 uint32_t size = 0;
00165 size += ros::serialization::serializationLength(header);
00166 size += ros::serialization::serializationLength(polygons);
00167 size += ros::serialization::serializationLength(chan);
00168 return size;
00169 }
00170
00171 typedef boost::shared_ptr< ::mapping_msgs::PolygonalMap_<ContainerAllocator> > Ptr;
00172 typedef boost::shared_ptr< ::mapping_msgs::PolygonalMap_<ContainerAllocator> const> ConstPtr;
00173 };
00174 typedef ::mapping_msgs::PolygonalMap_<std::allocator<void> > PolygonalMap;
00175
00176 typedef boost::shared_ptr< ::mapping_msgs::PolygonalMap> PolygonalMapPtr;
00177 typedef boost::shared_ptr< ::mapping_msgs::PolygonalMap const> PolygonalMapConstPtr;
00178
00179
00180 template<typename ContainerAllocator>
00181 std::ostream& operator<<(std::ostream& s, const ::mapping_msgs::PolygonalMap_<ContainerAllocator> & v)
00182 {
00183 ros::message_operations::Printer< ::mapping_msgs::PolygonalMap_<ContainerAllocator> >::stream(s, "", v);
00184 return s;}
00185
00186 }
00187
00188 namespace ros
00189 {
00190 namespace message_traits
00191 {
00192 template<class ContainerAllocator>
00193 struct MD5Sum< ::mapping_msgs::PolygonalMap_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "3ef041ea9abaaa9dac3e5aec60c68a99";
00197 }
00198
00199 static const char* value(const ::mapping_msgs::PolygonalMap_<ContainerAllocator> &) { return value(); }
00200 static const uint64_t static_value1 = 0x3ef041ea9abaaa9dULL;
00201 static const uint64_t static_value2 = 0xac3e5aec60c68a99ULL;
00202 };
00203
00204 template<class ContainerAllocator>
00205 struct DataType< ::mapping_msgs::PolygonalMap_<ContainerAllocator> > {
00206 static const char* value()
00207 {
00208 return "mapping_msgs/PolygonalMap";
00209 }
00210
00211 static const char* value(const ::mapping_msgs::PolygonalMap_<ContainerAllocator> &) { return value(); }
00212 };
00213
00214 template<class ContainerAllocator>
00215 struct Definition< ::mapping_msgs::PolygonalMap_<ContainerAllocator> > {
00216 static const char* value()
00217 {
00218 return "Header header\n\
00219 geometry_msgs/Polygon[] polygons\n\
00220 sensor_msgs/ChannelFloat32[] chan\n\
00221 \n\
00222 ================================================================================\n\
00223 MSG: std_msgs/Header\n\
00224 # Standard metadata for higher-level stamped data types.\n\
00225 # This is generally used to communicate timestamped data \n\
00226 # in a particular coordinate frame.\n\
00227 # \n\
00228 # sequence ID: consecutively increasing ID \n\
00229 uint32 seq\n\
00230 #Two-integer timestamp that is expressed as:\n\
00231 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00232 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00233 # time-handling sugar is provided by the client library\n\
00234 time stamp\n\
00235 #Frame this data is associated with\n\
00236 # 0: no frame\n\
00237 # 1: global frame\n\
00238 string frame_id\n\
00239 \n\
00240 ================================================================================\n\
00241 MSG: geometry_msgs/Polygon\n\
00242 #A specification of a polygon where the first and last points are assumed to be connected\n\
00243 geometry_msgs/Point32[] points\n\
00244 \n\
00245 ================================================================================\n\
00246 MSG: geometry_msgs/Point32\n\
00247 # This contains the position of a point in free space(with 32 bits of precision).\n\
00248 # It is recommeded to use Point wherever possible instead of Point32. \n\
00249 # \n\
00250 # This recommendation is to promote interoperability. \n\
00251 #\n\
00252 # This message is designed to take up less space when sending\n\
00253 # lots of points at once, as in the case of a PointCloud. \n\
00254 \n\
00255 float32 x\n\
00256 float32 y\n\
00257 float32 z\n\
00258 ================================================================================\n\
00259 MSG: sensor_msgs/ChannelFloat32\n\
00260 # This message is used by the PointCloud message to hold optional data\n\
00261 # associated with each point in the cloud. The length of the values\n\
00262 # array should be the same as the length of the points array in the\n\
00263 # PointCloud, and each value should be associated with the corresponding\n\
00264 # point.\n\
00265 \n\
00266 # Channel names in existing practice include:\n\
00267 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00268 # This is opposite to usual conventions but remains for\n\
00269 # historical reasons. The newer PointCloud2 message has no\n\
00270 # such problem.\n\
00271 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00272 # (R,G,B) values packed into the least significant 24 bits,\n\
00273 # in order.\n\
00274 # \"intensity\" - laser or pixel intensity.\n\
00275 # \"distance\"\n\
00276 \n\
00277 # The channel name should give semantics of the channel (e.g.\n\
00278 # \"intensity\" instead of \"value\").\n\
00279 string name\n\
00280 \n\
00281 # The values array should be 1-1 with the elements of the associated\n\
00282 # PointCloud.\n\
00283 float32[] values\n\
00284 \n\
00285 ";
00286 }
00287
00288 static const char* value(const ::mapping_msgs::PolygonalMap_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 template<class ContainerAllocator> struct HasHeader< ::mapping_msgs::PolygonalMap_<ContainerAllocator> > : public TrueType {};
00292 template<class ContainerAllocator> struct HasHeader< const ::mapping_msgs::PolygonalMap_<ContainerAllocator> > : public TrueType {};
00293 }
00294 }
00295
00296 namespace ros
00297 {
00298 namespace serialization
00299 {
00300
00301 template<class ContainerAllocator> struct Serializer< ::mapping_msgs::PolygonalMap_<ContainerAllocator> >
00302 {
00303 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00304 {
00305 stream.next(m.header);
00306 stream.next(m.polygons);
00307 stream.next(m.chan);
00308 }
00309
00310 ROS_DECLARE_ALLINONE_SERIALIZER;
00311 };
00312 }
00313 }
00314
00315 namespace ros
00316 {
00317 namespace message_operations
00318 {
00319
00320 template<class ContainerAllocator>
00321 struct Printer< ::mapping_msgs::PolygonalMap_<ContainerAllocator> >
00322 {
00323 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::mapping_msgs::PolygonalMap_<ContainerAllocator> & v)
00324 {
00325 s << indent << "header: ";
00326 s << std::endl;
00327 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00328 s << indent << "polygons[]" << std::endl;
00329 for (size_t i = 0; i < v.polygons.size(); ++i)
00330 {
00331 s << indent << " polygons[" << i << "]: ";
00332 s << std::endl;
00333 s << indent;
00334 Printer< ::geometry_msgs::Polygon_<ContainerAllocator> >::stream(s, indent + " ", v.polygons[i]);
00335 }
00336 s << indent << "chan[]" << std::endl;
00337 for (size_t i = 0; i < v.chan.size(); ++i)
00338 {
00339 s << indent << " chan[" << i << "]: ";
00340 s << std::endl;
00341 s << indent;
00342 Printer< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::stream(s, indent + " ", v.chan[i]);
00343 }
00344 }
00345 };
00346
00347
00348 }
00349 }
00350
00351 #endif // MAPPING_MSGS_MESSAGE_POLYGONALMAP_H
00352