Go to the documentation of this file.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 "uuid_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 ::uuid_msgs::UniqueID_<ContainerAllocator> _id_type;
00042 ::uuid_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 typedef boost::shared_ptr< ::geographic_msgs::WayPoint_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::geographic_msgs::WayPoint_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::geographic_msgs::WayPoint_<std::allocator<void> > WayPoint;
00056
00057 typedef boost::shared_ptr< ::geographic_msgs::WayPoint> WayPointPtr;
00058 typedef boost::shared_ptr< ::geographic_msgs::WayPoint const> WayPointConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::WayPoint_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::geographic_msgs::WayPoint_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::WayPoint_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::WayPoint_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::geographic_msgs::WayPoint_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "ef04f823aef332455a49eaec3f1761b7";
00080 }
00081
00082 static const char* value(const ::geographic_msgs::WayPoint_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0xef04f823aef33245ULL;
00084 static const uint64_t static_value2 = 0x5a49eaec3f1761b7ULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::geographic_msgs::WayPoint_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "geographic_msgs/WayPoint";
00092 }
00093
00094 static const char* value(const ::geographic_msgs::WayPoint_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::geographic_msgs::WayPoint_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "# Way-point element for a geographic map.\n\
00102 \n\
00103 uuid_msgs/UniqueID id # Unique way-point identifier\n\
00104 GeoPoint position # Position relative to WGS 84 ellipsoid\n\
00105 KeyValue[] props # Key/value properties for this point\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: uuid_msgs/UniqueID\n\
00109 # A universally unique identifier (UUID).\n\
00110 #\n\
00111 # http://en.wikipedia.org/wiki/Universally_unique_identifier\n\
00112 # http://tools.ietf.org/html/rfc4122.html\n\
00113 \n\
00114 uint8[16] uuid\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: geographic_msgs/GeoPoint\n\
00118 # Geographic point, using the WGS 84 reference ellipsoid.\n\
00119 \n\
00120 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00121 # (-90 <= latitude <= +90).\n\
00122 float64 latitude\n\
00123 \n\
00124 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00125 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00126 # +90, and longitude is irrelevant, but must be in range.\n\
00127 float64 longitude\n\
00128 \n\
00129 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00130 float64 altitude\n\
00131 \n\
00132 ================================================================================\n\
00133 MSG: geographic_msgs/KeyValue\n\
00134 # Geographic map tag (key, value) pair\n\
00135 #\n\
00136 # This is equivalent to diagnostic_msgs/KeyValue, repeated here to\n\
00137 # avoid introducing a trivial stack dependency.\n\
00138 \n\
00139 string key # tag label\n\
00140 string value # corresponding value\n\
00141 \n\
00142 ";
00143 }
00144
00145 static const char* value(const ::geographic_msgs::WayPoint_<ContainerAllocator> &) { return value(); }
00146 };
00147
00148 }
00149 }
00150
00151 namespace ros
00152 {
00153 namespace serialization
00154 {
00155
00156 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::WayPoint_<ContainerAllocator> >
00157 {
00158 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00159 {
00160 stream.next(m.id);
00161 stream.next(m.position);
00162 stream.next(m.props);
00163 }
00164
00165 ROS_DECLARE_ALLINONE_SERIALIZER;
00166 };
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace message_operations
00173 {
00174
00175 template<class ContainerAllocator>
00176 struct Printer< ::geographic_msgs::WayPoint_<ContainerAllocator> >
00177 {
00178 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::WayPoint_<ContainerAllocator> & v)
00179 {
00180 s << indent << "id: ";
00181 s << std::endl;
00182 Printer< ::uuid_msgs::UniqueID_<ContainerAllocator> >::stream(s, indent + " ", v.id);
00183 s << indent << "position: ";
00184 s << std::endl;
00185 Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00186 s << indent << "props[]" << std::endl;
00187 for (size_t i = 0; i < v.props.size(); ++i)
00188 {
00189 s << indent << " props[" << i << "]: ";
00190 s << std::endl;
00191 s << indent;
00192 Printer< ::geographic_msgs::KeyValue_<ContainerAllocator> >::stream(s, indent + " ", v.props[i]);
00193 }
00194 }
00195 };
00196
00197
00198 }
00199 }
00200
00201 #endif // GEOGRAPHIC_MSGS_MESSAGE_WAYPOINT_H
00202