GPSStatus.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-roscorobot/doc_stacks/2014-01-07_11-36-17.541726/Corobot/corobot_msgs/msg/GPSStatus.msg */
00002 #ifndef COROBOT_MSGS_MESSAGE_GPSSTATUS_H
00003 #define COROBOT_MSGS_MESSAGE_GPSSTATUS_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 
00019 namespace corobot_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GPSStatus_ {
00023   typedef GPSStatus_<ContainerAllocator> Type;
00024 
00025   GPSStatus_()
00026   : header()
00027   , satellites_used(0)
00028   , satellite_used_prn()
00029   , satellites_visible(0)
00030   , satellite_visible_prn()
00031   , satellite_visible_z()
00032   , satellite_visible_azimuth()
00033   , satellite_visible_snr()
00034   , status(0)
00035   , motion_source(0)
00036   , orientation_source(0)
00037   , position_source(0)
00038   {
00039   }
00040 
00041   GPSStatus_(const ContainerAllocator& _alloc)
00042   : header(_alloc)
00043   , satellites_used(0)
00044   , satellite_used_prn(_alloc)
00045   , satellites_visible(0)
00046   , satellite_visible_prn(_alloc)
00047   , satellite_visible_z(_alloc)
00048   , satellite_visible_azimuth(_alloc)
00049   , satellite_visible_snr(_alloc)
00050   , status(0)
00051   , motion_source(0)
00052   , orientation_source(0)
00053   , position_source(0)
00054   {
00055   }
00056 
00057   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00058    ::std_msgs::Header_<ContainerAllocator>  header;
00059 
00060   typedef uint16_t _satellites_used_type;
00061   uint16_t satellites_used;
00062 
00063   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _satellite_used_prn_type;
00064   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  satellite_used_prn;
00065 
00066   typedef uint16_t _satellites_visible_type;
00067   uint16_t satellites_visible;
00068 
00069   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _satellite_visible_prn_type;
00070   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  satellite_visible_prn;
00071 
00072   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _satellite_visible_z_type;
00073   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  satellite_visible_z;
00074 
00075   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _satellite_visible_azimuth_type;
00076   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  satellite_visible_azimuth;
00077 
00078   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _satellite_visible_snr_type;
00079   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  satellite_visible_snr;
00080 
00081   typedef int16_t _status_type;
00082   int16_t status;
00083 
00084   typedef uint16_t _motion_source_type;
00085   uint16_t motion_source;
00086 
00087   typedef uint16_t _orientation_source_type;
00088   uint16_t orientation_source;
00089 
00090   typedef uint16_t _position_source_type;
00091   uint16_t position_source;
00092 
00093   enum { STATUS_NO_FIX = -1 };
00094   enum { STATUS_FIX = 0 };
00095   enum { STATUS_SBAS_FIX = 1 };
00096   enum { STATUS_GBAS_FIX = 2 };
00097   enum { STATUS_DGPS_FIX = 18 };
00098   enum { STATUS_WAAS_FIX = 33 };
00099   enum { SOURCE_NONE = 0 };
00100   enum { SOURCE_GPS = 1 };
00101   enum { SOURCE_POINTS = 2 };
00102   enum { SOURCE_DOPPLER = 4 };
00103   enum { SOURCE_ALTIMETER = 8 };
00104   enum { SOURCE_MAGNETIC = 16 };
00105   enum { SOURCE_GYRO = 32 };
00106   enum { SOURCE_ACCEL = 64 };
00107 
00108   typedef boost::shared_ptr< ::corobot_msgs::GPSStatus_<ContainerAllocator> > Ptr;
00109   typedef boost::shared_ptr< ::corobot_msgs::GPSStatus_<ContainerAllocator>  const> ConstPtr;
00110   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00111 }; // struct GPSStatus
00112 typedef  ::corobot_msgs::GPSStatus_<std::allocator<void> > GPSStatus;
00113 
00114 typedef boost::shared_ptr< ::corobot_msgs::GPSStatus> GPSStatusPtr;
00115 typedef boost::shared_ptr< ::corobot_msgs::GPSStatus const> GPSStatusConstPtr;
00116 
00117 
00118 template<typename ContainerAllocator>
00119 std::ostream& operator<<(std::ostream& s, const  ::corobot_msgs::GPSStatus_<ContainerAllocator> & v)
00120 {
00121   ros::message_operations::Printer< ::corobot_msgs::GPSStatus_<ContainerAllocator> >::stream(s, "", v);
00122   return s;}
00123 
00124 } // namespace corobot_msgs
00125 
00126 namespace ros
00127 {
00128 namespace message_traits
00129 {
00130 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::GPSStatus_<ContainerAllocator> > : public TrueType {};
00131 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::GPSStatus_<ContainerAllocator>  const> : public TrueType {};
00132 template<class ContainerAllocator>
00133 struct MD5Sum< ::corobot_msgs::GPSStatus_<ContainerAllocator> > {
00134   static const char* value() 
00135   {
00136     return "313baa8951fdd056c78bf61b1b07d249";
00137   }
00138 
00139   static const char* value(const  ::corobot_msgs::GPSStatus_<ContainerAllocator> &) { return value(); } 
00140   static const uint64_t static_value1 = 0x313baa8951fdd056ULL;
00141   static const uint64_t static_value2 = 0xc78bf61b1b07d249ULL;
00142 };
00143 
00144 template<class ContainerAllocator>
00145 struct DataType< ::corobot_msgs::GPSStatus_<ContainerAllocator> > {
00146   static const char* value() 
00147   {
00148     return "corobot_msgs/GPSStatus";
00149   }
00150 
00151   static const char* value(const  ::corobot_msgs::GPSStatus_<ContainerAllocator> &) { return value(); } 
00152 };
00153 
00154 template<class ContainerAllocator>
00155 struct Definition< ::corobot_msgs::GPSStatus_<ContainerAllocator> > {
00156   static const char* value() 
00157   {
00158     return "Header header\n\
00159 \n\
00160 # Satellites used in solution\n\
00161 uint16 satellites_used # Number of satellites\n\
00162 int32[] satellite_used_prn # PRN identifiers\n\
00163 \n\
00164 # Satellites visible\n\
00165 uint16 satellites_visible\n\
00166 int32[] satellite_visible_prn # PRN identifiers\n\
00167 int32[] satellite_visible_z # Elevation of satellites\n\
00168 int32[] satellite_visible_azimuth # Azimuth of satellites\n\
00169 int32[] satellite_visible_snr # Signal-to-noise ratios (dB)\n\
00170 \n\
00171 # Measurement status\n\
00172 int16 STATUS_NO_FIX=-1   # Unable to fix position\n\
00173 int16 STATUS_FIX=0       # Normal fix\n\
00174 int16 STATUS_SBAS_FIX=1  # Fixed using a satellite-based augmentation system\n\
00175 int16 STATUS_GBAS_FIX=2  #          or a ground-based augmentation system\n\
00176 int16 STATUS_DGPS_FIX=18 # Fixed with DGPS\n\
00177 int16 STATUS_WAAS_FIX=33 # Fixed with WAAS\n\
00178 int16 status\n\
00179 \n\
00180 uint16 SOURCE_NONE=0 # No information is available\n\
00181 uint16 SOURCE_GPS=1 # Using standard GPS location [only valid for position_source]\n\
00182 uint16 SOURCE_POINTS=2 # Motion/orientation fix is derived from successive points\n\
00183 uint16 SOURCE_DOPPLER=4 # Motion is derived using the Doppler effect\n\
00184 uint16 SOURCE_ALTIMETER=8 # Using an altimeter\n\
00185 uint16 SOURCE_MAGNETIC=16 # Using magnetic sensors\n\
00186 uint16 SOURCE_GYRO=32 # Using gyroscopes\n\
00187 uint16 SOURCE_ACCEL=64 # Using accelerometers\n\
00188 \n\
00189 uint16 motion_source # Source for speed, climb and track\n\
00190 uint16 orientation_source # Source for device orientation\n\
00191 uint16 position_source # Source for position\n\
00192 \n\
00193 \n\
00194 ================================================================================\n\
00195 MSG: std_msgs/Header\n\
00196 # Standard metadata for higher-level stamped data types.\n\
00197 # This is generally used to communicate timestamped data \n\
00198 # in a particular coordinate frame.\n\
00199 # \n\
00200 # sequence ID: consecutively increasing ID \n\
00201 uint32 seq\n\
00202 #Two-integer timestamp that is expressed as:\n\
00203 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00204 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00205 # time-handling sugar is provided by the client library\n\
00206 time stamp\n\
00207 #Frame this data is associated with\n\
00208 # 0: no frame\n\
00209 # 1: global frame\n\
00210 string frame_id\n\
00211 \n\
00212 ";
00213   }
00214 
00215   static const char* value(const  ::corobot_msgs::GPSStatus_<ContainerAllocator> &) { return value(); } 
00216 };
00217 
00218 template<class ContainerAllocator> struct HasHeader< ::corobot_msgs::GPSStatus_<ContainerAllocator> > : public TrueType {};
00219 template<class ContainerAllocator> struct HasHeader< const ::corobot_msgs::GPSStatus_<ContainerAllocator> > : public TrueType {};
00220 } // namespace message_traits
00221 } // namespace ros
00222 
00223 namespace ros
00224 {
00225 namespace serialization
00226 {
00227 
00228 template<class ContainerAllocator> struct Serializer< ::corobot_msgs::GPSStatus_<ContainerAllocator> >
00229 {
00230   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00231   {
00232     stream.next(m.header);
00233     stream.next(m.satellites_used);
00234     stream.next(m.satellite_used_prn);
00235     stream.next(m.satellites_visible);
00236     stream.next(m.satellite_visible_prn);
00237     stream.next(m.satellite_visible_z);
00238     stream.next(m.satellite_visible_azimuth);
00239     stream.next(m.satellite_visible_snr);
00240     stream.next(m.status);
00241     stream.next(m.motion_source);
00242     stream.next(m.orientation_source);
00243     stream.next(m.position_source);
00244   }
00245 
00246   ROS_DECLARE_ALLINONE_SERIALIZER;
00247 }; // struct GPSStatus_
00248 } // namespace serialization
00249 } // namespace ros
00250 
00251 namespace ros
00252 {
00253 namespace message_operations
00254 {
00255 
00256 template<class ContainerAllocator>
00257 struct Printer< ::corobot_msgs::GPSStatus_<ContainerAllocator> >
00258 {
00259   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::corobot_msgs::GPSStatus_<ContainerAllocator> & v) 
00260   {
00261     s << indent << "header: ";
00262 s << std::endl;
00263     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00264     s << indent << "satellites_used: ";
00265     Printer<uint16_t>::stream(s, indent + "  ", v.satellites_used);
00266     s << indent << "satellite_used_prn[]" << std::endl;
00267     for (size_t i = 0; i < v.satellite_used_prn.size(); ++i)
00268     {
00269       s << indent << "  satellite_used_prn[" << i << "]: ";
00270       Printer<int32_t>::stream(s, indent + "  ", v.satellite_used_prn[i]);
00271     }
00272     s << indent << "satellites_visible: ";
00273     Printer<uint16_t>::stream(s, indent + "  ", v.satellites_visible);
00274     s << indent << "satellite_visible_prn[]" << std::endl;
00275     for (size_t i = 0; i < v.satellite_visible_prn.size(); ++i)
00276     {
00277       s << indent << "  satellite_visible_prn[" << i << "]: ";
00278       Printer<int32_t>::stream(s, indent + "  ", v.satellite_visible_prn[i]);
00279     }
00280     s << indent << "satellite_visible_z[]" << std::endl;
00281     for (size_t i = 0; i < v.satellite_visible_z.size(); ++i)
00282     {
00283       s << indent << "  satellite_visible_z[" << i << "]: ";
00284       Printer<int32_t>::stream(s, indent + "  ", v.satellite_visible_z[i]);
00285     }
00286     s << indent << "satellite_visible_azimuth[]" << std::endl;
00287     for (size_t i = 0; i < v.satellite_visible_azimuth.size(); ++i)
00288     {
00289       s << indent << "  satellite_visible_azimuth[" << i << "]: ";
00290       Printer<int32_t>::stream(s, indent + "  ", v.satellite_visible_azimuth[i]);
00291     }
00292     s << indent << "satellite_visible_snr[]" << std::endl;
00293     for (size_t i = 0; i < v.satellite_visible_snr.size(); ++i)
00294     {
00295       s << indent << "  satellite_visible_snr[" << i << "]: ";
00296       Printer<int32_t>::stream(s, indent + "  ", v.satellite_visible_snr[i]);
00297     }
00298     s << indent << "status: ";
00299     Printer<int16_t>::stream(s, indent + "  ", v.status);
00300     s << indent << "motion_source: ";
00301     Printer<uint16_t>::stream(s, indent + "  ", v.motion_source);
00302     s << indent << "orientation_source: ";
00303     Printer<uint16_t>::stream(s, indent + "  ", v.orientation_source);
00304     s << indent << "position_source: ";
00305     Printer<uint16_t>::stream(s, indent + "  ", v.position_source);
00306   }
00307 };
00308 
00309 
00310 } // namespace message_operations
00311 } // namespace ros
00312 
00313 #endif // COROBOT_MSGS_MESSAGE_GPSSTATUS_H
00314 


corobot_msgs
Author(s): Morgan Cormier/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:38:41