00001
00002 #ifndef GEOGRAPHIC_MSGS_MESSAGE_ROUTEPATH_H
00003 #define GEOGRAPHIC_MSGS_MESSAGE_ROUTEPATH_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 "geographic_msgs/UniqueID.h"
00019 #include "geographic_msgs/UniqueID.h"
00020 #include "geographic_msgs/KeyValue.h"
00021
00022 namespace geographic_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct RoutePath_ {
00026 typedef RoutePath_<ContainerAllocator> Type;
00027
00028 RoutePath_()
00029 : header()
00030 , network()
00031 , segments()
00032 , props()
00033 {
00034 }
00035
00036 RoutePath_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , network(_alloc)
00039 , segments(_alloc)
00040 , props(_alloc)
00041 {
00042 }
00043
00044 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00045 ::std_msgs::Header_<ContainerAllocator> header;
00046
00047 typedef ::geographic_msgs::UniqueID_<ContainerAllocator> _network_type;
00048 ::geographic_msgs::UniqueID_<ContainerAllocator> network;
00049
00050 typedef std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > _segments_type;
00051 std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > segments;
00052
00053 typedef std::vector< ::geographic_msgs::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::KeyValue_<ContainerAllocator> >::other > _props_type;
00054 std::vector< ::geographic_msgs::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::KeyValue_<ContainerAllocator> >::other > props;
00055
00056
00057 ROS_DEPRECATED uint32_t get_segments_size() const { return (uint32_t)segments.size(); }
00058 ROS_DEPRECATED void set_segments_size(uint32_t size) { segments.resize((size_t)size); }
00059 ROS_DEPRECATED void get_segments_vec(std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > & vec) const { vec = this->segments; }
00060 ROS_DEPRECATED void set_segments_vec(const std::vector< ::geographic_msgs::UniqueID_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geographic_msgs::UniqueID_<ContainerAllocator> >::other > & vec) { this->segments = vec; }
00061 ROS_DEPRECATED uint32_t get_props_size() const { return (uint32_t)props.size(); }
00062 ROS_DEPRECATED void set_props_size(uint32_t size) { props.resize((size_t)size); }
00063 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; }
00064 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; }
00065 private:
00066 static const char* __s_getDataType_() { return "geographic_msgs/RoutePath"; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00069
00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00071
00072 private:
00073 static const char* __s_getMD5Sum_() { return "2283414fe3f92830800873bcc8e94e2a"; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00076
00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00078
00079 private:
00080 static const char* __s_getMessageDefinition_() { return "# Path through a route network.\n\
00081 #\n\
00082 # A path is a sequence of RouteSegment edges. This information is\n\
00083 # extracted from a RouteNetwork graph. A RoutePath lists the route\n\
00084 # segments needed to reach some chosen goal.\n\
00085 \n\
00086 Header header\n\
00087 \n\
00088 UniqueID network # Route network containing this path\n\
00089 UniqueID[] segments # Sequence of RouteSegment IDs\n\
00090 KeyValue[] props # Key/value properties\n\
00091 \n\
00092 ================================================================================\n\
00093 MSG: std_msgs/Header\n\
00094 # Standard metadata for higher-level stamped data types.\n\
00095 # This is generally used to communicate timestamped data \n\
00096 # in a particular coordinate frame.\n\
00097 # \n\
00098 # sequence ID: consecutively increasing ID \n\
00099 uint32 seq\n\
00100 #Two-integer timestamp that is expressed as:\n\
00101 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00102 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00103 # time-handling sugar is provided by the client library\n\
00104 time stamp\n\
00105 #Frame this data is associated with\n\
00106 # 0: no frame\n\
00107 # 1: global frame\n\
00108 string frame_id\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: geographic_msgs/UniqueID\n\
00112 # A universally unique identifier (UUID) for a geographic feature.\n\
00113 #\n\
00114 # http://en.wikipedia.org/wiki/Universally_unique_identifier\n\
00115 # http://tools.ietf.org/html/rfc4122.html\n\
00116 #\n\
00117 # For simplicity and human readability, the UUID is represented as a\n\
00118 # string of hex digits and dashes.\n\
00119 #\n\
00120 # UUID generation is up to the programmer, but the intent is for\n\
00121 # matching features within a domain such as Open Street Map to yield\n\
00122 # the same UUID. The recommended method is RFC 4122 variant 5,\n\
00123 # computing the SHA-1 hash of a URL encoded using the map source. For\n\
00124 # example:\n\
00125 #\n\
00126 # http://openstreetmap.org/node/NUMBER\n\
00127 # http://openstreetmap.org/way/NUMBER\n\
00128 # http://openstreetmap.org/relation/NUMBER\n\
00129 #\n\
00130 # Here NUMBER is the decimal representation of the OSM node, way, or\n\
00131 # relation ID without leading zeros.\n\
00132 #\n\
00133 # Other map sources should use similar conventions.\n\
00134 \n\
00135 string uuid # format: 01234567-89ab-cdef-0123-456789abcdef\n\
00136 \n\
00137 ================================================================================\n\
00138 MSG: geographic_msgs/KeyValue\n\
00139 # Geographic map tag (key, value) pair\n\
00140 #\n\
00141 # This is equivalent to diagnostic_msgs/KeyValue, repeated here to\n\
00142 # avoid introducing a trivial stack dependency.\n\
00143 \n\
00144 string key # tag label\n\
00145 string value # corresponding value\n\
00146 \n\
00147 "; }
00148 public:
00149 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00150
00151 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00152
00153 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00154 {
00155 ros::serialization::OStream stream(write_ptr, 1000000000);
00156 ros::serialization::serialize(stream, header);
00157 ros::serialization::serialize(stream, network);
00158 ros::serialization::serialize(stream, segments);
00159 ros::serialization::serialize(stream, props);
00160 return stream.getData();
00161 }
00162
00163 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00164 {
00165 ros::serialization::IStream stream(read_ptr, 1000000000);
00166 ros::serialization::deserialize(stream, header);
00167 ros::serialization::deserialize(stream, network);
00168 ros::serialization::deserialize(stream, segments);
00169 ros::serialization::deserialize(stream, props);
00170 return stream.getData();
00171 }
00172
00173 ROS_DEPRECATED virtual uint32_t serializationLength() const
00174 {
00175 uint32_t size = 0;
00176 size += ros::serialization::serializationLength(header);
00177 size += ros::serialization::serializationLength(network);
00178 size += ros::serialization::serializationLength(segments);
00179 size += ros::serialization::serializationLength(props);
00180 return size;
00181 }
00182
00183 typedef boost::shared_ptr< ::geographic_msgs::RoutePath_<ContainerAllocator> > Ptr;
00184 typedef boost::shared_ptr< ::geographic_msgs::RoutePath_<ContainerAllocator> const> ConstPtr;
00185 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00186 };
00187 typedef ::geographic_msgs::RoutePath_<std::allocator<void> > RoutePath;
00188
00189 typedef boost::shared_ptr< ::geographic_msgs::RoutePath> RoutePathPtr;
00190 typedef boost::shared_ptr< ::geographic_msgs::RoutePath const> RoutePathConstPtr;
00191
00192
00193 template<typename ContainerAllocator>
00194 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::RoutePath_<ContainerAllocator> & v)
00195 {
00196 ros::message_operations::Printer< ::geographic_msgs::RoutePath_<ContainerAllocator> >::stream(s, "", v);
00197 return s;}
00198
00199 }
00200
00201 namespace ros
00202 {
00203 namespace message_traits
00204 {
00205 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::RoutePath_<ContainerAllocator> > : public TrueType {};
00206 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::RoutePath_<ContainerAllocator> const> : public TrueType {};
00207 template<class ContainerAllocator>
00208 struct MD5Sum< ::geographic_msgs::RoutePath_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "2283414fe3f92830800873bcc8e94e2a";
00212 }
00213
00214 static const char* value(const ::geographic_msgs::RoutePath_<ContainerAllocator> &) { return value(); }
00215 static const uint64_t static_value1 = 0x2283414fe3f92830ULL;
00216 static const uint64_t static_value2 = 0x800873bcc8e94e2aULL;
00217 };
00218
00219 template<class ContainerAllocator>
00220 struct DataType< ::geographic_msgs::RoutePath_<ContainerAllocator> > {
00221 static const char* value()
00222 {
00223 return "geographic_msgs/RoutePath";
00224 }
00225
00226 static const char* value(const ::geographic_msgs::RoutePath_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 template<class ContainerAllocator>
00230 struct Definition< ::geographic_msgs::RoutePath_<ContainerAllocator> > {
00231 static const char* value()
00232 {
00233 return "# Path through a route network.\n\
00234 #\n\
00235 # A path is a sequence of RouteSegment edges. This information is\n\
00236 # extracted from a RouteNetwork graph. A RoutePath lists the route\n\
00237 # segments needed to reach some chosen goal.\n\
00238 \n\
00239 Header header\n\
00240 \n\
00241 UniqueID network # Route network containing this path\n\
00242 UniqueID[] segments # Sequence of RouteSegment IDs\n\
00243 KeyValue[] props # Key/value properties\n\
00244 \n\
00245 ================================================================================\n\
00246 MSG: std_msgs/Header\n\
00247 # Standard metadata for higher-level stamped data types.\n\
00248 # This is generally used to communicate timestamped data \n\
00249 # in a particular coordinate frame.\n\
00250 # \n\
00251 # sequence ID: consecutively increasing ID \n\
00252 uint32 seq\n\
00253 #Two-integer timestamp that is expressed as:\n\
00254 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00255 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00256 # time-handling sugar is provided by the client library\n\
00257 time stamp\n\
00258 #Frame this data is associated with\n\
00259 # 0: no frame\n\
00260 # 1: global frame\n\
00261 string frame_id\n\
00262 \n\
00263 ================================================================================\n\
00264 MSG: geographic_msgs/UniqueID\n\
00265 # A universally unique identifier (UUID) for a geographic feature.\n\
00266 #\n\
00267 # http://en.wikipedia.org/wiki/Universally_unique_identifier\n\
00268 # http://tools.ietf.org/html/rfc4122.html\n\
00269 #\n\
00270 # For simplicity and human readability, the UUID is represented as a\n\
00271 # string of hex digits and dashes.\n\
00272 #\n\
00273 # UUID generation is up to the programmer, but the intent is for\n\
00274 # matching features within a domain such as Open Street Map to yield\n\
00275 # the same UUID. The recommended method is RFC 4122 variant 5,\n\
00276 # computing the SHA-1 hash of a URL encoded using the map source. For\n\
00277 # example:\n\
00278 #\n\
00279 # http://openstreetmap.org/node/NUMBER\n\
00280 # http://openstreetmap.org/way/NUMBER\n\
00281 # http://openstreetmap.org/relation/NUMBER\n\
00282 #\n\
00283 # Here NUMBER is the decimal representation of the OSM node, way, or\n\
00284 # relation ID without leading zeros.\n\
00285 #\n\
00286 # Other map sources should use similar conventions.\n\
00287 \n\
00288 string uuid # format: 01234567-89ab-cdef-0123-456789abcdef\n\
00289 \n\
00290 ================================================================================\n\
00291 MSG: geographic_msgs/KeyValue\n\
00292 # Geographic map tag (key, value) pair\n\
00293 #\n\
00294 # This is equivalent to diagnostic_msgs/KeyValue, repeated here to\n\
00295 # avoid introducing a trivial stack dependency.\n\
00296 \n\
00297 string key # tag label\n\
00298 string value # corresponding value\n\
00299 \n\
00300 ";
00301 }
00302
00303 static const char* value(const ::geographic_msgs::RoutePath_<ContainerAllocator> &) { return value(); }
00304 };
00305
00306 template<class ContainerAllocator> struct HasHeader< ::geographic_msgs::RoutePath_<ContainerAllocator> > : public TrueType {};
00307 template<class ContainerAllocator> struct HasHeader< const ::geographic_msgs::RoutePath_<ContainerAllocator> > : public TrueType {};
00308 }
00309 }
00310
00311 namespace ros
00312 {
00313 namespace serialization
00314 {
00315
00316 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::RoutePath_<ContainerAllocator> >
00317 {
00318 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00319 {
00320 stream.next(m.header);
00321 stream.next(m.network);
00322 stream.next(m.segments);
00323 stream.next(m.props);
00324 }
00325
00326 ROS_DECLARE_ALLINONE_SERIALIZER;
00327 };
00328 }
00329 }
00330
00331 namespace ros
00332 {
00333 namespace message_operations
00334 {
00335
00336 template<class ContainerAllocator>
00337 struct Printer< ::geographic_msgs::RoutePath_<ContainerAllocator> >
00338 {
00339 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::RoutePath_<ContainerAllocator> & v)
00340 {
00341 s << indent << "header: ";
00342 s << std::endl;
00343 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00344 s << indent << "network: ";
00345 s << std::endl;
00346 Printer< ::geographic_msgs::UniqueID_<ContainerAllocator> >::stream(s, indent + " ", v.network);
00347 s << indent << "segments[]" << std::endl;
00348 for (size_t i = 0; i < v.segments.size(); ++i)
00349 {
00350 s << indent << " segments[" << i << "]: ";
00351 s << std::endl;
00352 s << indent;
00353 Printer< ::geographic_msgs::UniqueID_<ContainerAllocator> >::stream(s, indent + " ", v.segments[i]);
00354 }
00355 s << indent << "props[]" << std::endl;
00356 for (size_t i = 0; i < v.props.size(); ++i)
00357 {
00358 s << indent << " props[" << i << "]: ";
00359 s << std::endl;
00360 s << indent;
00361 Printer< ::geographic_msgs::KeyValue_<ContainerAllocator> >::stream(s, indent + " ", v.props[i]);
00362 }
00363 }
00364 };
00365
00366
00367 }
00368 }
00369
00370 #endif // GEOGRAPHIC_MSGS_MESSAGE_ROUTEPATH_H
00371