GpsCustom.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-asctec_mav_framework/doc_stacks/2014-01-07_11-03-25.838445/asctec_mav_framework/asctec_hl_comm/msg/GpsCustom.msg */
00002 #ifndef ASCTEC_HL_COMM_MESSAGE_GPSCUSTOM_H
00003 #define ASCTEC_HL_COMM_MESSAGE_GPSCUSTOM_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 "std_msgs/Header.h"
00018 #include "sensor_msgs/NavSatStatus.h"
00019 
00020 namespace asctec_hl_comm
00021 {
00022 template <class ContainerAllocator>
00023 struct GpsCustom_ {
00024   typedef GpsCustom_<ContainerAllocator> Type;
00025 
00026   GpsCustom_()
00027   : header()
00028   , status()
00029   , latitude(0.0)
00030   , longitude(0.0)
00031   , altitude(0.0)
00032   , position_covariance()
00033   , position_covariance_type(0)
00034   , pressure_height(0.0)
00035   , velocity_x(0.0)
00036   , velocity_y(0.0)
00037   , velocity_covariance()
00038   {
00039     position_covariance.assign(0.0);
00040     velocity_covariance.assign(0.0);
00041   }
00042 
00043   GpsCustom_(const ContainerAllocator& _alloc)
00044   : header(_alloc)
00045   , status(_alloc)
00046   , latitude(0.0)
00047   , longitude(0.0)
00048   , altitude(0.0)
00049   , position_covariance()
00050   , position_covariance_type(0)
00051   , pressure_height(0.0)
00052   , velocity_x(0.0)
00053   , velocity_y(0.0)
00054   , velocity_covariance()
00055   {
00056     position_covariance.assign(0.0);
00057     velocity_covariance.assign(0.0);
00058   }
00059 
00060   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00061    ::std_msgs::Header_<ContainerAllocator>  header;
00062 
00063   typedef  ::sensor_msgs::NavSatStatus_<ContainerAllocator>  _status_type;
00064    ::sensor_msgs::NavSatStatus_<ContainerAllocator>  status;
00065 
00066   typedef double _latitude_type;
00067   double latitude;
00068 
00069   typedef double _longitude_type;
00070   double longitude;
00071 
00072   typedef double _altitude_type;
00073   double altitude;
00074 
00075   typedef boost::array<double, 9>  _position_covariance_type;
00076   boost::array<double, 9>  position_covariance;
00077 
00078   typedef uint8_t _position_covariance_type_type;
00079   uint8_t position_covariance_type;
00080 
00081   typedef double _pressure_height_type;
00082   double pressure_height;
00083 
00084   typedef double _velocity_x_type;
00085   double velocity_x;
00086 
00087   typedef double _velocity_y_type;
00088   double velocity_y;
00089 
00090   typedef boost::array<double, 4>  _velocity_covariance_type;
00091   boost::array<double, 4>  velocity_covariance;
00092 
00093 
00094   typedef boost::shared_ptr< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> > Ptr;
00095   typedef boost::shared_ptr< ::asctec_hl_comm::GpsCustom_<ContainerAllocator>  const> ConstPtr;
00096   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00097 }; // struct GpsCustom
00098 typedef  ::asctec_hl_comm::GpsCustom_<std::allocator<void> > GpsCustom;
00099 
00100 typedef boost::shared_ptr< ::asctec_hl_comm::GpsCustom> GpsCustomPtr;
00101 typedef boost::shared_ptr< ::asctec_hl_comm::GpsCustom const> GpsCustomConstPtr;
00102 
00103 
00104 template<typename ContainerAllocator>
00105 std::ostream& operator<<(std::ostream& s, const  ::asctec_hl_comm::GpsCustom_<ContainerAllocator> & v)
00106 {
00107   ros::message_operations::Printer< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> >::stream(s, "", v);
00108   return s;}
00109 
00110 } // namespace asctec_hl_comm
00111 
00112 namespace ros
00113 {
00114 namespace message_traits
00115 {
00116 template<class ContainerAllocator> struct IsMessage< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> > : public TrueType {};
00117 template<class ContainerAllocator> struct IsMessage< ::asctec_hl_comm::GpsCustom_<ContainerAllocator>  const> : public TrueType {};
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> > {
00120   static const char* value() 
00121   {
00122     return "ea845c87e3fc5ff92a4bebb639327746";
00123   }
00124 
00125   static const char* value(const  ::asctec_hl_comm::GpsCustom_<ContainerAllocator> &) { return value(); } 
00126   static const uint64_t static_value1 = 0xea845c87e3fc5ff9ULL;
00127   static const uint64_t static_value2 = 0x2a4bebb639327746ULL;
00128 };
00129 
00130 template<class ContainerAllocator>
00131 struct DataType< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> > {
00132   static const char* value() 
00133   {
00134     return "asctec_hl_comm/GpsCustom";
00135   }
00136 
00137   static const char* value(const  ::asctec_hl_comm::GpsCustom_<ContainerAllocator> &) { return value(); } 
00138 };
00139 
00140 template<class ContainerAllocator>
00141 struct Definition< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> > {
00142   static const char* value() 
00143   {
00144     return "# Navigation Satellite fix for any Global Navigation Satellite System\n\
00145 #\n\
00146 # Specified using the WGS 84 reference ellipsoid\n\
00147 \n\
00148 # Header specifies ROS time and frame of reference for this fix.\n\
00149 Header header\n\
00150 \n\
00151 # satellite fix status information\n\
00152 sensor_msgs/NavSatStatus status\n\
00153 \n\
00154 # Latitude [degrees]. Positive is north of equator; negative is south.\n\
00155 float64 latitude\n\
00156 \n\
00157 # Longitude [degrees]. Positive is east of prime meridian; negative is west.\n\
00158 float64 longitude\n\
00159 \n\
00160 # Altitude [m]. Positive is above the WGS 84 ellipsoid.\n\
00161 float64 altitude\n\
00162 \n\
00163 # Position covariance [m^2] defined relative to a tangential plane\n\
00164 # through the reported position. The components are East, North, and\n\
00165 # Up (ENU), in row-major order.\n\
00166 #\n\
00167 # Beware: this coordinate system exhibits singularities at the poles.\n\
00168 \n\
00169 float64[9] position_covariance\n\
00170 \n\
00171 uint8 position_covariance_type\n\
00172 \n\
00173 float64 pressure_height\n\
00174 \n\
00175 float64 velocity_x\n\
00176 float64 velocity_y\n\
00177 float64[4] velocity_covariance\n\
00178 ================================================================================\n\
00179 MSG: std_msgs/Header\n\
00180 # Standard metadata for higher-level stamped data types.\n\
00181 # This is generally used to communicate timestamped data \n\
00182 # in a particular coordinate frame.\n\
00183 # \n\
00184 # sequence ID: consecutively increasing ID \n\
00185 uint32 seq\n\
00186 #Two-integer timestamp that is expressed as:\n\
00187 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00188 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00189 # time-handling sugar is provided by the client library\n\
00190 time stamp\n\
00191 #Frame this data is associated with\n\
00192 # 0: no frame\n\
00193 # 1: global frame\n\
00194 string frame_id\n\
00195 \n\
00196 ================================================================================\n\
00197 MSG: sensor_msgs/NavSatStatus\n\
00198 # Navigation Satellite fix status for any Global Navigation Satellite System\n\
00199 \n\
00200 # Whether to output an augmented fix is determined by both the fix\n\
00201 # type and the last time differential corrections were received.  A\n\
00202 # fix is valid when status >= STATUS_FIX.\n\
00203 \n\
00204 int8 STATUS_NO_FIX =  -1        # unable to fix position\n\
00205 int8 STATUS_FIX =      0        # unaugmented fix\n\
00206 int8 STATUS_SBAS_FIX = 1        # with satellite-based augmentation\n\
00207 int8 STATUS_GBAS_FIX = 2        # with ground-based augmentation\n\
00208 \n\
00209 int8 status\n\
00210 \n\
00211 # Bits defining which Global Navigation Satellite System signals were\n\
00212 # used by the receiver.\n\
00213 \n\
00214 uint16 SERVICE_GPS =     1\n\
00215 uint16 SERVICE_GLONASS = 2\n\
00216 uint16 SERVICE_COMPASS = 4      # includes BeiDou.\n\
00217 uint16 SERVICE_GALILEO = 8\n\
00218 \n\
00219 uint16 service\n\
00220 \n\
00221 ";
00222   }
00223 
00224   static const char* value(const  ::asctec_hl_comm::GpsCustom_<ContainerAllocator> &) { return value(); } 
00225 };
00226 
00227 template<class ContainerAllocator> struct HasHeader< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> > : public TrueType {};
00228 template<class ContainerAllocator> struct HasHeader< const ::asctec_hl_comm::GpsCustom_<ContainerAllocator> > : public TrueType {};
00229 } // namespace message_traits
00230 } // namespace ros
00231 
00232 namespace ros
00233 {
00234 namespace serialization
00235 {
00236 
00237 template<class ContainerAllocator> struct Serializer< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> >
00238 {
00239   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00240   {
00241     stream.next(m.header);
00242     stream.next(m.status);
00243     stream.next(m.latitude);
00244     stream.next(m.longitude);
00245     stream.next(m.altitude);
00246     stream.next(m.position_covariance);
00247     stream.next(m.position_covariance_type);
00248     stream.next(m.pressure_height);
00249     stream.next(m.velocity_x);
00250     stream.next(m.velocity_y);
00251     stream.next(m.velocity_covariance);
00252   }
00253 
00254   ROS_DECLARE_ALLINONE_SERIALIZER;
00255 }; // struct GpsCustom_
00256 } // namespace serialization
00257 } // namespace ros
00258 
00259 namespace ros
00260 {
00261 namespace message_operations
00262 {
00263 
00264 template<class ContainerAllocator>
00265 struct Printer< ::asctec_hl_comm::GpsCustom_<ContainerAllocator> >
00266 {
00267   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::asctec_hl_comm::GpsCustom_<ContainerAllocator> & v) 
00268   {
00269     s << indent << "header: ";
00270 s << std::endl;
00271     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00272     s << indent << "status: ";
00273 s << std::endl;
00274     Printer< ::sensor_msgs::NavSatStatus_<ContainerAllocator> >::stream(s, indent + "  ", v.status);
00275     s << indent << "latitude: ";
00276     Printer<double>::stream(s, indent + "  ", v.latitude);
00277     s << indent << "longitude: ";
00278     Printer<double>::stream(s, indent + "  ", v.longitude);
00279     s << indent << "altitude: ";
00280     Printer<double>::stream(s, indent + "  ", v.altitude);
00281     s << indent << "position_covariance[]" << std::endl;
00282     for (size_t i = 0; i < v.position_covariance.size(); ++i)
00283     {
00284       s << indent << "  position_covariance[" << i << "]: ";
00285       Printer<double>::stream(s, indent + "  ", v.position_covariance[i]);
00286     }
00287     s << indent << "position_covariance_type: ";
00288     Printer<uint8_t>::stream(s, indent + "  ", v.position_covariance_type);
00289     s << indent << "pressure_height: ";
00290     Printer<double>::stream(s, indent + "  ", v.pressure_height);
00291     s << indent << "velocity_x: ";
00292     Printer<double>::stream(s, indent + "  ", v.velocity_x);
00293     s << indent << "velocity_y: ";
00294     Printer<double>::stream(s, indent + "  ", v.velocity_y);
00295     s << indent << "velocity_covariance[]" << std::endl;
00296     for (size_t i = 0; i < v.velocity_covariance.size(); ++i)
00297     {
00298       s << indent << "  velocity_covariance[" << i << "]: ";
00299       Printer<double>::stream(s, indent + "  ", v.velocity_covariance[i]);
00300     }
00301   }
00302 };
00303 
00304 
00305 } // namespace message_operations
00306 } // namespace ros
00307 
00308 #endif // ASCTEC_HL_COMM_MESSAGE_GPSCUSTOM_H
00309 


asctec_hl_comm
Author(s): Markus Achtelik, Michael Achtelik, Stephan Weiss, Laurent Kneip
autogenerated on Tue Jan 7 2014 11:05:05