Go to the documentation of this file.00001
00002 #ifndef GEOGRAPHIC_MSGS_MESSAGE_GEOPOINT_H
00003 #define GEOGRAPHIC_MSGS_MESSAGE_GEOPOINT_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
00018 namespace geographic_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct GeoPoint_ {
00022 typedef GeoPoint_<ContainerAllocator> Type;
00023
00024 GeoPoint_()
00025 : latitude(0.0)
00026 , longitude(0.0)
00027 , altitude(0.0)
00028 {
00029 }
00030
00031 GeoPoint_(const ContainerAllocator& _alloc)
00032 : latitude(0.0)
00033 , longitude(0.0)
00034 , altitude(0.0)
00035 {
00036 }
00037
00038 typedef double _latitude_type;
00039 double latitude;
00040
00041 typedef double _longitude_type;
00042 double longitude;
00043
00044 typedef double _altitude_type;
00045 double altitude;
00046
00047
00048 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::geographic_msgs::GeoPoint_<std::allocator<void> > GeoPoint;
00053
00054 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint> GeoPointPtr;
00055 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint const> GeoPointConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::GeoPoint_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPoint_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPoint_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::geographic_msgs::GeoPoint_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "c48027a852aeff972be80478ff38e81a";
00077 }
00078
00079 static const char* value(const ::geographic_msgs::GeoPoint_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xc48027a852aeff97ULL;
00081 static const uint64_t static_value2 = 0x2be80478ff38e81aULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::geographic_msgs::GeoPoint_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "geographic_msgs/GeoPoint";
00089 }
00090
00091 static const char* value(const ::geographic_msgs::GeoPoint_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::geographic_msgs::GeoPoint_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# Geographic point, using the WGS 84 reference ellipsoid.\n\
00099 \n\
00100 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00101 # (-90 <= latitude <= +90).\n\
00102 float64 latitude\n\
00103 \n\
00104 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00105 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00106 # +90, and longitude is irrelevant, but must be in range.\n\
00107 float64 longitude\n\
00108 \n\
00109 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00110 float64 altitude\n\
00111 \n\
00112 ";
00113 }
00114
00115 static const char* value(const ::geographic_msgs::GeoPoint_<ContainerAllocator> &) { return value(); }
00116 };
00117
00118 template<class ContainerAllocator> struct IsFixedSize< ::geographic_msgs::GeoPoint_<ContainerAllocator> > : public TrueType {};
00119 }
00120 }
00121
00122 namespace ros
00123 {
00124 namespace serialization
00125 {
00126
00127 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >
00128 {
00129 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00130 {
00131 stream.next(m.latitude);
00132 stream.next(m.longitude);
00133 stream.next(m.altitude);
00134 }
00135
00136 ROS_DECLARE_ALLINONE_SERIALIZER;
00137 };
00138 }
00139 }
00140
00141 namespace ros
00142 {
00143 namespace message_operations
00144 {
00145
00146 template<class ContainerAllocator>
00147 struct Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >
00148 {
00149 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::GeoPoint_<ContainerAllocator> & v)
00150 {
00151 s << indent << "latitude: ";
00152 Printer<double>::stream(s, indent + " ", v.latitude);
00153 s << indent << "longitude: ";
00154 Printer<double>::stream(s, indent + " ", v.longitude);
00155 s << indent << "altitude: ";
00156 Printer<double>::stream(s, indent + " ", v.altitude);
00157 }
00158 };
00159
00160
00161 }
00162 }
00163
00164 #endif // GEOGRAPHIC_MSGS_MESSAGE_GEOPOINT_H
00165