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 private:
00049 static const char* __s_getDataType_() { return "geographic_msgs/GeoPoint"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "c48027a852aeff972be80478ff38e81a"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# Geographic point, using the WGS 84 reference ellipsoid.\n\
00064 \n\
00065 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00066 # (-90 <= latitude <= +90).\n\
00067 float64 latitude\n\
00068 \n\
00069 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00070 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00071 # +90, and longitude is irrelevant, but must be in range.\n\
00072 float64 longitude\n\
00073 \n\
00074 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00075 float64 altitude\n\
00076 \n\
00077 "; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00082
00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00084 {
00085 ros::serialization::OStream stream(write_ptr, 1000000000);
00086 ros::serialization::serialize(stream, latitude);
00087 ros::serialization::serialize(stream, longitude);
00088 ros::serialization::serialize(stream, altitude);
00089 return stream.getData();
00090 }
00091
00092 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00093 {
00094 ros::serialization::IStream stream(read_ptr, 1000000000);
00095 ros::serialization::deserialize(stream, latitude);
00096 ros::serialization::deserialize(stream, longitude);
00097 ros::serialization::deserialize(stream, altitude);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint32_t serializationLength() const
00102 {
00103 uint32_t size = 0;
00104 size += ros::serialization::serializationLength(latitude);
00105 size += ros::serialization::serializationLength(longitude);
00106 size += ros::serialization::serializationLength(altitude);
00107 return size;
00108 }
00109
00110 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint_<ContainerAllocator> > Ptr;
00111 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint_<ContainerAllocator> const> ConstPtr;
00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00113 };
00114 typedef ::geographic_msgs::GeoPoint_<std::allocator<void> > GeoPoint;
00115
00116 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint> GeoPointPtr;
00117 typedef boost::shared_ptr< ::geographic_msgs::GeoPoint const> GeoPointConstPtr;
00118
00119
00120 template<typename ContainerAllocator>
00121 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::GeoPoint_<ContainerAllocator> & v)
00122 {
00123 ros::message_operations::Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >::stream(s, "", v);
00124 return s;}
00125
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_traits
00131 {
00132 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPoint_<ContainerAllocator> > : public TrueType {};
00133 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPoint_<ContainerAllocator> const> : public TrueType {};
00134 template<class ContainerAllocator>
00135 struct MD5Sum< ::geographic_msgs::GeoPoint_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "c48027a852aeff972be80478ff38e81a";
00139 }
00140
00141 static const char* value(const ::geographic_msgs::GeoPoint_<ContainerAllocator> &) { return value(); }
00142 static const uint64_t static_value1 = 0xc48027a852aeff97ULL;
00143 static const uint64_t static_value2 = 0x2be80478ff38e81aULL;
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct DataType< ::geographic_msgs::GeoPoint_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "geographic_msgs/GeoPoint";
00151 }
00152
00153 static const char* value(const ::geographic_msgs::GeoPoint_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct Definition< ::geographic_msgs::GeoPoint_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "# Geographic point, using the WGS 84 reference ellipsoid.\n\
00161 \n\
00162 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00163 # (-90 <= latitude <= +90).\n\
00164 float64 latitude\n\
00165 \n\
00166 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00167 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00168 # +90, and longitude is irrelevant, but must be in range.\n\
00169 float64 longitude\n\
00170 \n\
00171 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00172 float64 altitude\n\
00173 \n\
00174 ";
00175 }
00176
00177 static const char* value(const ::geographic_msgs::GeoPoint_<ContainerAllocator> &) { return value(); }
00178 };
00179
00180 template<class ContainerAllocator> struct IsFixedSize< ::geographic_msgs::GeoPoint_<ContainerAllocator> > : public TrueType {};
00181 }
00182 }
00183
00184 namespace ros
00185 {
00186 namespace serialization
00187 {
00188
00189 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >
00190 {
00191 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00192 {
00193 stream.next(m.latitude);
00194 stream.next(m.longitude);
00195 stream.next(m.altitude);
00196 }
00197
00198 ROS_DECLARE_ALLINONE_SERIALIZER;
00199 };
00200 }
00201 }
00202
00203 namespace ros
00204 {
00205 namespace message_operations
00206 {
00207
00208 template<class ContainerAllocator>
00209 struct Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >
00210 {
00211 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::GeoPoint_<ContainerAllocator> & v)
00212 {
00213 s << indent << "latitude: ";
00214 Printer<double>::stream(s, indent + " ", v.latitude);
00215 s << indent << "longitude: ";
00216 Printer<double>::stream(s, indent + " ", v.longitude);
00217 s << indent << "altitude: ";
00218 Printer<double>::stream(s, indent + " ", v.altitude);
00219 }
00220 };
00221
00222
00223 }
00224 }
00225
00226 #endif // GEOGRAPHIC_MSGS_MESSAGE_GEOPOINT_H
00227