00001
00002 #ifndef GEOGRAPHIC_MSGS_MESSAGE_GEOPOSE_H
00003 #define GEOGRAPHIC_MSGS_MESSAGE_GEOPOSE_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/GeoPoint.h"
00018 #include "geometry_msgs/Quaternion.h"
00019
00020 namespace geographic_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct GeoPose_ {
00024 typedef GeoPose_<ContainerAllocator> Type;
00025
00026 GeoPose_()
00027 : position()
00028 , orientation()
00029 {
00030 }
00031
00032 GeoPose_(const ContainerAllocator& _alloc)
00033 : position(_alloc)
00034 , orientation(_alloc)
00035 {
00036 }
00037
00038 typedef ::geographic_msgs::GeoPoint_<ContainerAllocator> _position_type;
00039 ::geographic_msgs::GeoPoint_<ContainerAllocator> position;
00040
00041 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation_type;
00042 ::geometry_msgs::Quaternion_<ContainerAllocator> orientation;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "geographic_msgs/GeoPose"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "778680b5172de58b7c057d973576c784"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "# Geographic pose, using the WGS 84 reference ellipsoid.\n\
00061 #\n\
00062 # Orientation uses the East-North-Up (ENU) frame of reference.\n\
00063 # (But, what about singularities at the poles?)\n\
00064 \n\
00065 GeoPoint position\n\
00066 geometry_msgs/Quaternion orientation\n\
00067 \n\
00068 ================================================================================\n\
00069 MSG: geographic_msgs/GeoPoint\n\
00070 # Geographic point, using the WGS 84 reference ellipsoid.\n\
00071 \n\
00072 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00073 # (-90 <= latitude <= +90).\n\
00074 float64 latitude\n\
00075 \n\
00076 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00077 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00078 # +90, and longitude is irrelevant, but must be in range.\n\
00079 float64 longitude\n\
00080 \n\
00081 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00082 float64 altitude\n\
00083 \n\
00084 ================================================================================\n\
00085 MSG: geometry_msgs/Quaternion\n\
00086 # This represents an orientation in free space in quaternion form.\n\
00087 \n\
00088 float64 x\n\
00089 float64 y\n\
00090 float64 z\n\
00091 float64 w\n\
00092 \n\
00093 "; }
00094 public:
00095 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00096
00097 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00098
00099 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00100 {
00101 ros::serialization::OStream stream(write_ptr, 1000000000);
00102 ros::serialization::serialize(stream, position);
00103 ros::serialization::serialize(stream, orientation);
00104 return stream.getData();
00105 }
00106
00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00108 {
00109 ros::serialization::IStream stream(read_ptr, 1000000000);
00110 ros::serialization::deserialize(stream, position);
00111 ros::serialization::deserialize(stream, orientation);
00112 return stream.getData();
00113 }
00114
00115 ROS_DEPRECATED virtual uint32_t serializationLength() const
00116 {
00117 uint32_t size = 0;
00118 size += ros::serialization::serializationLength(position);
00119 size += ros::serialization::serializationLength(orientation);
00120 return size;
00121 }
00122
00123 typedef boost::shared_ptr< ::geographic_msgs::GeoPose_<ContainerAllocator> > Ptr;
00124 typedef boost::shared_ptr< ::geographic_msgs::GeoPose_<ContainerAllocator> const> ConstPtr;
00125 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00126 };
00127 typedef ::geographic_msgs::GeoPose_<std::allocator<void> > GeoPose;
00128
00129 typedef boost::shared_ptr< ::geographic_msgs::GeoPose> GeoPosePtr;
00130 typedef boost::shared_ptr< ::geographic_msgs::GeoPose const> GeoPoseConstPtr;
00131
00132
00133 template<typename ContainerAllocator>
00134 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::GeoPose_<ContainerAllocator> & v)
00135 {
00136 ros::message_operations::Printer< ::geographic_msgs::GeoPose_<ContainerAllocator> >::stream(s, "", v);
00137 return s;}
00138
00139 }
00140
00141 namespace ros
00142 {
00143 namespace message_traits
00144 {
00145 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPose_<ContainerAllocator> > : public TrueType {};
00146 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::GeoPose_<ContainerAllocator> const> : public TrueType {};
00147 template<class ContainerAllocator>
00148 struct MD5Sum< ::geographic_msgs::GeoPose_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "778680b5172de58b7c057d973576c784";
00152 }
00153
00154 static const char* value(const ::geographic_msgs::GeoPose_<ContainerAllocator> &) { return value(); }
00155 static const uint64_t static_value1 = 0x778680b5172de58bULL;
00156 static const uint64_t static_value2 = 0x7c057d973576c784ULL;
00157 };
00158
00159 template<class ContainerAllocator>
00160 struct DataType< ::geographic_msgs::GeoPose_<ContainerAllocator> > {
00161 static const char* value()
00162 {
00163 return "geographic_msgs/GeoPose";
00164 }
00165
00166 static const char* value(const ::geographic_msgs::GeoPose_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 template<class ContainerAllocator>
00170 struct Definition< ::geographic_msgs::GeoPose_<ContainerAllocator> > {
00171 static const char* value()
00172 {
00173 return "# Geographic pose, using the WGS 84 reference ellipsoid.\n\
00174 #\n\
00175 # Orientation uses the East-North-Up (ENU) frame of reference.\n\
00176 # (But, what about singularities at the poles?)\n\
00177 \n\
00178 GeoPoint position\n\
00179 geometry_msgs/Quaternion orientation\n\
00180 \n\
00181 ================================================================================\n\
00182 MSG: geographic_msgs/GeoPoint\n\
00183 # Geographic point, using the WGS 84 reference ellipsoid.\n\
00184 \n\
00185 # Latitude [degrees]. Positive is north of equator; negative is south\n\
00186 # (-90 <= latitude <= +90).\n\
00187 float64 latitude\n\
00188 \n\
00189 # Longitude [degrees]. Positive is east of prime meridian; negative is\n\
00190 # west (-180 <= longitude <= +180). At the poles, latitude is -90 or\n\
00191 # +90, and longitude is irrelevant, but must be in range.\n\
00192 float64 longitude\n\
00193 \n\
00194 # Altitude [m]. Positive is above the WGS 84 ellipsoid (NaN if unspecified).\n\
00195 float64 altitude\n\
00196 \n\
00197 ================================================================================\n\
00198 MSG: geometry_msgs/Quaternion\n\
00199 # This represents an orientation in free space in quaternion form.\n\
00200 \n\
00201 float64 x\n\
00202 float64 y\n\
00203 float64 z\n\
00204 float64 w\n\
00205 \n\
00206 ";
00207 }
00208
00209 static const char* value(const ::geographic_msgs::GeoPose_<ContainerAllocator> &) { return value(); }
00210 };
00211
00212 template<class ContainerAllocator> struct IsFixedSize< ::geographic_msgs::GeoPose_<ContainerAllocator> > : public TrueType {};
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace serialization
00219 {
00220
00221 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::GeoPose_<ContainerAllocator> >
00222 {
00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00224 {
00225 stream.next(m.position);
00226 stream.next(m.orientation);
00227 }
00228
00229 ROS_DECLARE_ALLINONE_SERIALIZER;
00230 };
00231 }
00232 }
00233
00234 namespace ros
00235 {
00236 namespace message_operations
00237 {
00238
00239 template<class ContainerAllocator>
00240 struct Printer< ::geographic_msgs::GeoPose_<ContainerAllocator> >
00241 {
00242 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::GeoPose_<ContainerAllocator> & v)
00243 {
00244 s << indent << "position: ";
00245 s << std::endl;
00246 Printer< ::geographic_msgs::GeoPoint_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00247 s << indent << "orientation: ";
00248 s << std::endl;
00249 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.orientation);
00250 }
00251 };
00252
00253
00254 }
00255 }
00256
00257 #endif // GEOGRAPHIC_MSGS_MESSAGE_GEOPOSE_H
00258