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