Go to the documentation of this file.00001
00002 #ifndef UBLOX_MSGS_MESSAGE_NAVSVINFO_H
00003 #define UBLOX_MSGS_MESSAGE_NAVSVINFO_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 "ublox_msgs/NavSVINFO_SV.h"
00018
00019 namespace ublox_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct NavSVINFO_ {
00023 typedef NavSVINFO_<ContainerAllocator> Type;
00024
00025 NavSVINFO_()
00026 : iTOW(0)
00027 , numCh(0)
00028 , globalFlags(0)
00029 , reserved2(0)
00030 , sv()
00031 {
00032 }
00033
00034 NavSVINFO_(const ContainerAllocator& _alloc)
00035 : iTOW(0)
00036 , numCh(0)
00037 , globalFlags(0)
00038 , reserved2(0)
00039 , sv(_alloc)
00040 {
00041 }
00042
00043 typedef uint32_t _iTOW_type;
00044 uint32_t iTOW;
00045
00046 typedef uint8_t _numCh_type;
00047 uint8_t numCh;
00048
00049 typedef uint8_t _globalFlags_type;
00050 uint8_t globalFlags;
00051
00052 typedef uint16_t _reserved2_type;
00053 uint16_t reserved2;
00054
00055 typedef std::vector< ::ublox_msgs::NavSVINFO_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavSVINFO_SV_<ContainerAllocator> >::other > _sv_type;
00056 std::vector< ::ublox_msgs::NavSVINFO_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavSVINFO_SV_<ContainerAllocator> >::other > sv;
00057
00058 enum { CLASS_ID = 1 };
00059 enum { MESSAGE_ID = 48 };
00060 enum { CHIPGEN_ANTARIS = 0 };
00061 enum { CHIPGEN_UBLOX5 = 1 };
00062 enum { CHIPGEN_UBLOX6 = 2 };
00063
00064 typedef boost::shared_ptr< ::ublox_msgs::NavSVINFO_<ContainerAllocator> > Ptr;
00065 typedef boost::shared_ptr< ::ublox_msgs::NavSVINFO_<ContainerAllocator> const> ConstPtr;
00066 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 };
00068 typedef ::ublox_msgs::NavSVINFO_<std::allocator<void> > NavSVINFO;
00069
00070 typedef boost::shared_ptr< ::ublox_msgs::NavSVINFO> NavSVINFOPtr;
00071 typedef boost::shared_ptr< ::ublox_msgs::NavSVINFO const> NavSVINFOConstPtr;
00072
00073
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavSVINFO_<ContainerAllocator> & v)
00076 {
00077 ros::message_operations::Printer< ::ublox_msgs::NavSVINFO_<ContainerAllocator> >::stream(s, "", v);
00078 return s;}
00079
00080 }
00081
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSVINFO_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSVINFO_<ContainerAllocator> const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::ublox_msgs::NavSVINFO_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "92fe4aa48b81d4da7a58f2d2e63a7ca7";
00093 }
00094
00095 static const char* value(const ::ublox_msgs::NavSVINFO_<ContainerAllocator> &) { return value(); }
00096 static const uint64_t static_value1 = 0x92fe4aa48b81d4daULL;
00097 static const uint64_t static_value2 = 0x7a58f2d2e63a7ca7ULL;
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct DataType< ::ublox_msgs::NavSVINFO_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "ublox_msgs/NavSVINFO";
00105 }
00106
00107 static const char* value(const ::ublox_msgs::NavSVINFO_<ContainerAllocator> &) { return value(); }
00108 };
00109
00110 template<class ContainerAllocator>
00111 struct Definition< ::ublox_msgs::NavSVINFO_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "# NAV-SVINFO (0x01 0x30)\n\
00115 # Space Vehicle Information\n\
00116 #\n\
00117 \n\
00118 uint8 CLASS_ID = 1\n\
00119 uint8 MESSAGE_ID = 48\n\
00120 \n\
00121 uint32 iTOW # GPS Millisecond time of week [ms]\n\
00122 \n\
00123 uint8 numCh # Number of channels\n\
00124 \n\
00125 uint8 globalFlags # Bitmask\n\
00126 uint8 CHIPGEN_ANTARIS = 0 # Antaris, Antaris 4\n\
00127 uint8 CHIPGEN_UBLOX5 = 1 # u-blox 5\n\
00128 uint8 CHIPGEN_UBLOX6 = 2 # u-blox 6\n\
00129 \n\
00130 uint16 reserved2 # Reserved\n\
00131 \n\
00132 NavSVINFO_SV[] sv\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: ublox_msgs/NavSVINFO_SV\n\
00136 # see message NavSVINFO\n\
00137 #\n\
00138 \n\
00139 uint8 chn # Channel number, 255 for SVs not assigned to a channel\n\
00140 uint8 svid # Satellite ID\n\
00141 \n\
00142 uint8 flags # Bitmask\n\
00143 uint8 FLAGS_SVUSED = 1 # SV is used for navigation\n\
00144 uint8 FLAGS_DIFFCORR = 2 # Differential correction data is available for this SV\n\
00145 uint8 FLAGS_ORBITAVAIL = 4 # Orbit information is available for this SV (Ephemeris or Almanach)\n\
00146 uint8 FLAGS_ORBITEPH = 8 # Orbit information is Ephemeris\n\
00147 uint8 FLAGS_UNHEALTHY = 16 # SV is unhealthy / shall not be used\n\
00148 uint8 FLAGS_ORBIT_ALM = 32 # Orbit information is Almanac Plus\n\
00149 uint8 FLAGS_ORBIT_AOP = 64 # Orbit information is AssistNow Autonomous\n\
00150 uint8 FLAGS_SMOOTHED = 128 # Carrier smoothed pseudorange used\n\
00151 \n\
00152 uint8 quality # Bitfield\n\
00153 # qualityInd: Signal Quality indicator (range 0..7). The following list shows the meaning of the different QI values:\n\
00154 uint8 QUALITY_IDLE = 0 # This channel is idle\n\
00155 uint8 QUALITY_SEARCHING = 1 # Channel is searching\n\
00156 uint8 QUALITY_AQUIRED = 2 # Signal aquired\n\
00157 uint8 QUALITY_DETECTED = 3 # Signal detected but unusable\n\
00158 uint8 QUALITY_CODE_LOCK = 4 # Code Lock on Signal\n\
00159 uint8 QUALITY_CODE_AND_CARRIER_LOCKED1 = 5 # Code and Carrier locked\n\
00160 uint8 QUALITY_CODE_AND_CARRIER_LOCKED2 = 6 # Code and Carrier locked\n\
00161 uint8 QUALITY_CODE_AND_CARRIER_LOCKED3 = 7 # Code and Carrier locked\n\
00162 \n\
00163 uint8 cno # Carrier to Noise Ratio (Signal Strength) [dbHz]\n\
00164 int8 elev # Elevation in integer degrees [deg]\n\
00165 int16 azim # Azimuth in integer degrees [deg]\n\
00166 int32 prRes # Pseudo range residual in centimetres [cm]\n\
00167 \n\
00168 ";
00169 }
00170
00171 static const char* value(const ::ublox_msgs::NavSVINFO_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 }
00175 }
00176
00177 namespace ros
00178 {
00179 namespace serialization
00180 {
00181
00182 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavSVINFO_<ContainerAllocator> >
00183 {
00184 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00185 {
00186 stream.next(m.iTOW);
00187 stream.next(m.numCh);
00188 stream.next(m.globalFlags);
00189 stream.next(m.reserved2);
00190 stream.next(m.sv);
00191 }
00192
00193 ROS_DECLARE_ALLINONE_SERIALIZER;
00194 };
00195 }
00196 }
00197
00198 namespace ros
00199 {
00200 namespace message_operations
00201 {
00202
00203 template<class ContainerAllocator>
00204 struct Printer< ::ublox_msgs::NavSVINFO_<ContainerAllocator> >
00205 {
00206 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavSVINFO_<ContainerAllocator> & v)
00207 {
00208 s << indent << "iTOW: ";
00209 Printer<uint32_t>::stream(s, indent + " ", v.iTOW);
00210 s << indent << "numCh: ";
00211 Printer<uint8_t>::stream(s, indent + " ", v.numCh);
00212 s << indent << "globalFlags: ";
00213 Printer<uint8_t>::stream(s, indent + " ", v.globalFlags);
00214 s << indent << "reserved2: ";
00215 Printer<uint16_t>::stream(s, indent + " ", v.reserved2);
00216 s << indent << "sv[]" << std::endl;
00217 for (size_t i = 0; i < v.sv.size(); ++i)
00218 {
00219 s << indent << " sv[" << i << "]: ";
00220 s << std::endl;
00221 s << indent;
00222 Printer< ::ublox_msgs::NavSVINFO_SV_<ContainerAllocator> >::stream(s, indent + " ", v.sv[i]);
00223 }
00224 }
00225 };
00226
00227
00228 }
00229 }
00230
00231 #endif // UBLOX_MSGS_MESSAGE_NAVSVINFO_H
00232