00001
00002 #ifndef GEOGRAPHIC_MSGS_MESSAGE_WAYPOINT_H
00003 #define GEOGRAPHIC_MSGS_MESSAGE_WAYPOINT_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/GeoPoint.h"
00019 #include "geographic_msgs/KeyValue.h"
00020
00021 namespace geographic_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct WayPoint_ {
00025 typedef WayPoint_<ContainerAllocator> Type;
00026
00027 WayPoint_()
00028 : id()
00029 , position()
00030 , props()
00031 {
00032 }
00033
00034 WayPoint_(const ContainerAllocator& _alloc)
00035 : id(_alloc)
00036 , position(_alloc)
00037 , props(_alloc)
00038 {
00039 }
00040
00041 typedef ::geographic_msgs::UniqueID_<ContainerAllocator> _id_type;
00042 ::geographic_msgs::UniqueID_<ContainerAllocator> id;
00043
00044 typedef ::geographic_msgs::GeoPoint_<ContainerAllocator> _position_type;
00045 ::geographic_msgs::GeoPoint_<ContainerAllocator> position;
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_props_size() const { return (uint32_t)props.size(); }
00052 ROS_DEPRECATED void set_props_size(uint32_t size) { props.resize((size_t)size); }
00053 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; }
00054 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; }
00055 private:
00056 static const char* __s_getDataType_() { return "geographic_msgs/WayPoint"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00059
00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00061
00062 private:
00063 static const char* __s_getMD5Sum_() { return "92283b4c5b198e9cad54296951823b02"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00066
00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00068
00069 private:
00070 static const char* __s_getMessageDefinition_() { return "# Way-point element for a geographic map.\n\
00071 \n\
00072 UniqueID id # Unique way-point identifier\n\
00073 GeoPoint position # Position relative to WGS 84 ellipsoid\n\
00074 KeyValue[] props # Key/value properties for this point\n\
00075 \n\
00076 ================================================================================\n\
00077 MSG: geographic_msgs/UniqueID\n\
00078 # A universally unique identifier (UUID) for a geographic feature.\n\
00079 #\n\
00080 # http://en.wikipedia.org/wiki/Universally_unique_identifier\n\
00081 # http://tools.ietf.org/html/rfc4122.html\n\
00082 #\n\
00083 # For simplicity and human readability, the UUID is represented as a\n\
00084 # string of hex digits and dashes.\n\
00085 #\n\
00086 # UUID generation is up to the programmer, but the intent is for\n\
00087 # matching features within a domain such as Open Street Map to yield\n\
00088 # the same UUID. The recommended method is RFC 4122 variant 5,\n\
00089 # computing the SHA-1 hash of a URL encoded using the map source. For\n\
00090 # example:\n\
00091 #\n\
00092 # http://openstreetmap.org/node/NUMBER\n\
00093 # http://openstreetmap.org/way/NUMBER\n\
00094 # http://openstreetmap.org/relation/NUMBER\n\
00095 #\n\
00096 # Here NUMBER is the decimal representation of the OSM node, way, or\n\
00097 # relation ID without leading zeros.\n\
00098 #\n\
00099 # Other map sources should use similar conventions.\n\
00100 \n\
00101 string uuid # format: 01234567-89ab-cdef-0123-456789abcdef\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: geographic_msgs/GeoPoint\n\
00105 # Geographic point, using the WGS 84 reference ellipsoid.\n\
00106 \n\
00107 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00108 # (-90 <= latitude <= +90).\n\
00109 float64 latitude\n\
00110 \n\
00111 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00112 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00113 # +90, and longitude is irrelevant, but must be in range.\n\
00114 float64 longitude\n\
00115 \n\
00116 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00117 float64 altitude\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: geographic_msgs/KeyValue\n\
00121 # Geographic map tag (key, value) pair\n\
00122 #\n\
00123 # This is equivalent to diagnostic_msgs/KeyValue, repeated here to\n\
00124 # avoid introducing a trivial stack dependency.\n\
00125 \n\
00126 string key # tag label\n\
00127 string value # corresponding value\n\
00128 \n\
00129 "; }
00130 public:
00131 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00132
00133 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00134
00135 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00136 {
00137 ros::serialization::OStream stream(write_ptr, 1000000000);
00138 ros::serialization::serialize(stream, id);
00139 ros::serialization::serialize(stream, position);
00140 ros::serialization::serialize(stream, props);
00141 return stream.getData();
00142 }
00143
00144 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00145 {
00146 ros::serialization::IStream stream(read_ptr, 1000000000);
00147 ros::serialization::deserialize(stream, id);
00148 ros::serialization::deserialize(stream, position);
00149 ros::serialization::deserialize(stream, props);
00150 return stream.getData();
00151 }
00152
00153 ROS_DEPRECATED virtual uint32_t serializationLength() const
00154 {
00155 uint32_t size = 0;
00156 size += ros::serialization::serializationLength(id);
00157 size += ros::serialization::serializationLength(position);
00158 size += ros::serialization::serializationLength(props);
00159 return size;
00160 }
00161
00162 typedef boost::shared_ptr< ::geographic_msgs::WayPoint_<ContainerAllocator> > Ptr;
00163 typedef boost::shared_ptr< ::geographic_msgs::WayPoint_<ContainerAllocator> const> ConstPtr;
00164 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00165 };
00166 typedef ::geographic_msgs::WayPoint_<std::allocator<void> > WayPoint;
00167
00168 typedef boost::shared_ptr< ::geographic_msgs::WayPoint> WayPointPtr;
00169 typedef boost::shared_ptr< ::geographic_msgs::WayPoint const> WayPointConstPtr;
00170
00171
00172 template<typename ContainerAllocator>
00173 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::WayPoint_<ContainerAllocator> & v)
00174 {
00175 ros::message_operations::Printer< ::geographic_msgs::WayPoint_<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::WayPoint_<ContainerAllocator> > : public TrueType {};
00185 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::WayPoint_<ContainerAllocator> const> : public TrueType {};
00186 template<class ContainerAllocator>
00187 struct MD5Sum< ::geographic_msgs::WayPoint_<ContainerAllocator> > {
00188 static const char* value()
00189 {
00190 return "92283b4c5b198e9cad54296951823b02";
00191 }
00192
00193 static const char* value(const ::geographic_msgs::WayPoint_<ContainerAllocator> &) { return value(); }
00194 static const uint64_t static_value1 = 0x92283b4c5b198e9cULL;
00195 static const uint64_t static_value2 = 0xad54296951823b02ULL;
00196 };
00197
00198 template<class ContainerAllocator>
00199 struct DataType< ::geographic_msgs::WayPoint_<ContainerAllocator> > {
00200 static const char* value()
00201 {
00202 return "geographic_msgs/WayPoint";
00203 }
00204
00205 static const char* value(const ::geographic_msgs::WayPoint_<ContainerAllocator> &) { return value(); }
00206 };
00207
00208 template<class ContainerAllocator>
00209 struct Definition< ::geographic_msgs::WayPoint_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "# Way-point element for a geographic map.\n\
00213 \n\
00214 UniqueID id # Unique way-point identifier\n\
00215 GeoPoint position # Position relative to WGS 84 ellipsoid\n\
00216 KeyValue[] props # Key/value properties for this point\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/GeoPoint\n\
00247 # Geographic point, using the WGS 84 reference ellipsoid.\n\
00248 \n\
00249 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00250 # (-90 <= latitude <= +90).\n\
00251 float64 latitude\n\
00252 \n\
00253 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00254 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00255 # +90, and longitude is irrelevant, but must be in range.\n\
00256 float64 longitude\n\
00257 \n\
00258 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00259 float64 altitude\n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: geographic_msgs/KeyValue\n\
00263 # Geographic map tag (key, value) pair\n\
00264 #\n\
00265 # This is equivalent to diagnostic_msgs/KeyValue, repeated here to\n\
00266 # avoid introducing a trivial stack dependency.\n\
00267 \n\
00268 string key # tag label\n\
00269 string value # corresponding value\n\
00270 \n\
00271 ";
00272 }
00273
00274 static const char* value(const ::geographic_msgs::WayPoint_<ContainerAllocator> &) { return value(); }
00275 };
00276
00277 }
00278 }
00279
00280 namespace ros
00281 {
00282 namespace serialization
00283 {
00284
00285 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::WayPoint_<ContainerAllocator> >
00286 {
00287 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00288 {
00289 stream.next(m.id);
00290 stream.next(m.position);
00291 stream.next(m.props);
00292 }
00293
00294 ROS_DECLARE_ALLINONE_SERIALIZER;
00295 };
00296 }
00297 }
00298
00299 namespace ros
00300 {
00301 namespace message_operations
00302 {
00303
00304 template<class ContainerAllocator>
00305 struct Printer< ::geographic_msgs::WayPoint_<ContainerAllocator> >
00306 {
00307 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::WayPoint_<ContainerAllocator> & v)
00308 {
00309 s << indent << "id: ";
00310 s << std::endl;
00311 Printer< ::geographic_msgs::UniqueID_<ContainerAllocator> >::stream(s, indent + " ", v.id);
00312 s << indent << "position: ";
00313 s << std::endl;
00314 Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00315 s << indent << "props[]" << std::endl;
00316 for (size_t i = 0; i < v.props.size(); ++i)
00317 {
00318 s << indent << " props[" << i << "]: ";
00319 s << std::endl;
00320 s << indent;
00321 Printer< ::geographic_msgs::KeyValue_<ContainerAllocator> >::stream(s, indent + " ", v.props[i]);
00322 }
00323 }
00324 };
00325
00326
00327 }
00328 }
00329
00330 #endif // GEOGRAPHIC_MSGS_MESSAGE_WAYPOINT_H
00331