00001
00002 #ifndef GEOGRAPHIC_MSGS_MESSAGE_MAPFEATURE_H
00003 #define GEOGRAPHIC_MSGS_MESSAGE_MAPFEATURE_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 "geographic_msgs/UniqueID.h"
00018 #include "geographic_msgs/UniqueID.h"
00019 #include "geographic_msgs/KeyValue.h"
00020
00021 namespace geographic_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct MapFeature_ {
00025 typedef MapFeature_<ContainerAllocator> Type;
00026
00027 MapFeature_()
00028 : id()
00029 , components()
00030 , props()
00031 {
00032 }
00033
00034 MapFeature_(const ContainerAllocator& _alloc)
00035 : id(_alloc)
00036 , components(_alloc)
00037 , props(_alloc)
00038 {
00039 }
00040
00041 typedef ::geographic_msgs::UniqueID_<ContainerAllocator> _id_type;
00042 ::geographic_msgs::UniqueID_<ContainerAllocator> id;
00043
00044 typedef std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > _components_type;
00045 std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > components;
00046
00047 typedef std::vector< ::geographic_msgs::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::KeyValue_<ContainerAllocator> >::other > _props_type;
00048 std::vector< ::geographic_msgs::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::KeyValue_<ContainerAllocator> >::other > props;
00049
00050
00051 ROS_DEPRECATED uint32_t get_components_size() const { return (uint32_t)components.size(); }
00052 ROS_DEPRECATED void set_components_size(uint32_t size) { components.resize((size_t)size); }
00053 ROS_DEPRECATED void get_components_vec(std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > & vec) const { vec = this->components; }
00054 ROS_DEPRECATED void set_components_vec(const std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > & vec) { this->components = vec; }
00055 ROS_DEPRECATED uint32_t get_props_size() const { return (uint32_t)props.size(); }
00056 ROS_DEPRECATED void set_props_size(uint32_t size) { props.resize((size_t)size); }
00057 ROS_DEPRECATED void get_props_vec(std::vector< ::geographic_msgs::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::KeyValue_<ContainerAllocator> >::other > & vec) const { vec = this->props; }
00058 ROS_DEPRECATED void set_props_vec(const std::vector< ::geographic_msgs::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::KeyValue_<ContainerAllocator> >::other > & vec) { this->props = vec; }
00059 private:
00060 static const char* __s_getDataType_() { return "geographic_msgs/MapFeature"; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00063
00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00065
00066 private:
00067 static const char* __s_getMD5Sum_() { return "3b97f4be98d345cc79068a6a9e9ec28b"; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00070
00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00072
00073 private:
00074 static const char* __s_getMessageDefinition_() { return "# Geographic map feature.\n\
00075 #\n\
00076 # A list of WayPoint IDs for features like streets, highways, hiking\n\
00077 # trails, the outlines of buildings and parking lots in sequential\n\
00078 # order.\n\
00079 #\n\
00080 # Feature lists may also contain other feature lists as members.\n\
00081 \n\
00082 UniqueID id # Unique feature identifier\n\
00083 UniqueID[] components # Sequence of feature components\n\
00084 KeyValue[] props # Key/value properties for this feature\n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: geographic_msgs/UniqueID\n\
00088 # A universally unique identifier (UUID) for a geographic feature.\n\
00089 #\n\
00090 # http://en.wikipedia.org/wiki/Universally_unique_identifier\n\
00091 # http://tools.ietf.org/html/rfc4122.html\n\
00092 #\n\
00093 # For simplicity and human readability, the UUID is represented as a\n\
00094 # string of hex digits and dashes.\n\
00095 #\n\
00096 # UUID generation is up to the programmer, but the intent is for\n\
00097 # matching features within a domain such as Open Street Map to yield\n\
00098 # the same UUID. The recommended method is RFC 4122 variant 5,\n\
00099 # computing the SHA-1 hash of a URL encoded using the map source. For\n\
00100 # example:\n\
00101 #\n\
00102 # http://openstreetmap.org/node/NUMBER\n\
00103 # http://openstreetmap.org/way/NUMBER\n\
00104 # http://openstreetmap.org/relation/NUMBER\n\
00105 #\n\
00106 # Here NUMBER is the decimal representation of the OSM node, way, or\n\
00107 # relation ID without leading zeros.\n\
00108 #\n\
00109 # Other map sources should use similar conventions.\n\
00110 \n\
00111 string uuid # format: 01234567-89ab-cdef-0123-456789abcdef\n\
00112 \n\
00113 ================================================================================\n\
00114 MSG: geographic_msgs/KeyValue\n\
00115 # Geographic map tag (key, value) pair\n\
00116 #\n\
00117 # This is equivalent to diagnostic_msgs/KeyValue, repeated here to\n\
00118 # avoid introducing a trivial stack dependency.\n\
00119 \n\
00120 string key # tag label\n\
00121 string value # corresponding value\n\
00122 \n\
00123 "; }
00124 public:
00125 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00126
00127 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00128
00129 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00130 {
00131 ros::serialization::OStream stream(write_ptr, 1000000000);
00132 ros::serialization::serialize(stream, id);
00133 ros::serialization::serialize(stream, components);
00134 ros::serialization::serialize(stream, props);
00135 return stream.getData();
00136 }
00137
00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00139 {
00140 ros::serialization::IStream stream(read_ptr, 1000000000);
00141 ros::serialization::deserialize(stream, id);
00142 ros::serialization::deserialize(stream, components);
00143 ros::serialization::deserialize(stream, props);
00144 return stream.getData();
00145 }
00146
00147 ROS_DEPRECATED virtual uint32_t serializationLength() const
00148 {
00149 uint32_t size = 0;
00150 size += ros::serialization::serializationLength(id);
00151 size += ros::serialization::serializationLength(components);
00152 size += ros::serialization::serializationLength(props);
00153 return size;
00154 }
00155
00156 typedef boost::shared_ptr< ::geographic_msgs::MapFeature_<ContainerAllocator> > Ptr;
00157 typedef boost::shared_ptr< ::geographic_msgs::MapFeature_<ContainerAllocator> const> ConstPtr;
00158 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00159 };
00160 typedef ::geographic_msgs::MapFeature_<std::allocator<void> > MapFeature;
00161
00162 typedef boost::shared_ptr< ::geographic_msgs::MapFeature> MapFeaturePtr;
00163 typedef boost::shared_ptr< ::geographic_msgs::MapFeature const> MapFeatureConstPtr;
00164
00165
00166 template<typename ContainerAllocator>
00167 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::MapFeature_<ContainerAllocator> & v)
00168 {
00169 ros::message_operations::Printer< ::geographic_msgs::MapFeature_<ContainerAllocator> >::stream(s, "", v);
00170 return s;}
00171
00172 }
00173
00174 namespace ros
00175 {
00176 namespace message_traits
00177 {
00178 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::MapFeature_<ContainerAllocator> > : public TrueType {};
00179 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::MapFeature_<ContainerAllocator> const> : public TrueType {};
00180 template<class ContainerAllocator>
00181 struct MD5Sum< ::geographic_msgs::MapFeature_<ContainerAllocator> > {
00182 static const char* value()
00183 {
00184 return "3b97f4be98d345cc79068a6a9e9ec28b";
00185 }
00186
00187 static const char* value(const ::geographic_msgs::MapFeature_<ContainerAllocator> &) { return value(); }
00188 static const uint64_t static_value1 = 0x3b97f4be98d345ccULL;
00189 static const uint64_t static_value2 = 0x79068a6a9e9ec28bULL;
00190 };
00191
00192 template<class ContainerAllocator>
00193 struct DataType< ::geographic_msgs::MapFeature_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "geographic_msgs/MapFeature";
00197 }
00198
00199 static const char* value(const ::geographic_msgs::MapFeature_<ContainerAllocator> &) { return value(); }
00200 };
00201
00202 template<class ContainerAllocator>
00203 struct Definition< ::geographic_msgs::MapFeature_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "# Geographic map feature.\n\
00207 #\n\
00208 # A list of WayPoint IDs for features like streets, highways, hiking\n\
00209 # trails, the outlines of buildings and parking lots in sequential\n\
00210 # order.\n\
00211 #\n\
00212 # Feature lists may also contain other feature lists as members.\n\
00213 \n\
00214 UniqueID id # Unique feature identifier\n\
00215 UniqueID[] components # Sequence of feature components\n\
00216 KeyValue[] props # Key/value properties for this feature\n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: geographic_msgs/UniqueID\n\
00220 # A universally unique identifier (UUID) for a geographic feature.\n\
00221 #\n\
00222 # http://en.wikipedia.org/wiki/Universally_unique_identifier\n\
00223 # http://tools.ietf.org/html/rfc4122.html\n\
00224 #\n\
00225 # For simplicity and human readability, the UUID is represented as a\n\
00226 # string of hex digits and dashes.\n\
00227 #\n\
00228 # UUID generation is up to the programmer, but the intent is for\n\
00229 # matching features within a domain such as Open Street Map to yield\n\
00230 # the same UUID. The recommended method is RFC 4122 variant 5,\n\
00231 # computing the SHA-1 hash of a URL encoded using the map source. For\n\
00232 # example:\n\
00233 #\n\
00234 # http://openstreetmap.org/node/NUMBER\n\
00235 # http://openstreetmap.org/way/NUMBER\n\
00236 # http://openstreetmap.org/relation/NUMBER\n\
00237 #\n\
00238 # Here NUMBER is the decimal representation of the OSM node, way, or\n\
00239 # relation ID without leading zeros.\n\
00240 #\n\
00241 # Other map sources should use similar conventions.\n\
00242 \n\
00243 string uuid # format: 01234567-89ab-cdef-0123-456789abcdef\n\
00244 \n\
00245 ================================================================================\n\
00246 MSG: geographic_msgs/KeyValue\n\
00247 # Geographic map tag (key, value) pair\n\
00248 #\n\
00249 # This is equivalent to diagnostic_msgs/KeyValue, repeated here to\n\
00250 # avoid introducing a trivial stack dependency.\n\
00251 \n\
00252 string key # tag label\n\
00253 string value # corresponding value\n\
00254 \n\
00255 ";
00256 }
00257
00258 static const char* value(const ::geographic_msgs::MapFeature_<ContainerAllocator> &) { return value(); }
00259 };
00260
00261 }
00262 }
00263
00264 namespace ros
00265 {
00266 namespace serialization
00267 {
00268
00269 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::MapFeature_<ContainerAllocator> >
00270 {
00271 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00272 {
00273 stream.next(m.id);
00274 stream.next(m.components);
00275 stream.next(m.props);
00276 }
00277
00278 ROS_DECLARE_ALLINONE_SERIALIZER;
00279 };
00280 }
00281 }
00282
00283 namespace ros
00284 {
00285 namespace message_operations
00286 {
00287
00288 template<class ContainerAllocator>
00289 struct Printer< ::geographic_msgs::MapFeature_<ContainerAllocator> >
00290 {
00291 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::MapFeature_<ContainerAllocator> & v)
00292 {
00293 s << indent << "id: ";
00294 s << std::endl;
00295 Printer< ::geographic_msgs::UniqueID_<ContainerAllocator> >::stream(s, indent + " ", v.id);
00296 s << indent << "components[]" << std::endl;
00297 for (size_t i = 0; i < v.components.size(); ++i)
00298 {
00299 s << indent << " components[" << i << "]: ";
00300 s << std::endl;
00301 s << indent;
00302 Printer< ::geographic_msgs::UniqueID_<ContainerAllocator> >::stream(s, indent + " ", v.components[i]);
00303 }
00304 s << indent << "props[]" << std::endl;
00305 for (size_t i = 0; i < v.props.size(); ++i)
00306 {
00307 s << indent << " props[" << i << "]: ";
00308 s << std::endl;
00309 s << indent;
00310 Printer< ::geographic_msgs::KeyValue_<ContainerAllocator> >::stream(s, indent + " ", v.props[i]);
00311 }
00312 }
00313 };
00314
00315
00316 }
00317 }
00318
00319 #endif // GEOGRAPHIC_MSGS_MESSAGE_MAPFEATURE_H
00320