Go to the documentation of this file.00001
00002 #ifndef UBLOX_MSGS_MESSAGE_RXMSVSI_H
00003 #define UBLOX_MSGS_MESSAGE_RXMSVSI_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/RxmSVSI_SV.h"
00018
00019 namespace ublox_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct RxmSVSI_ {
00023 typedef RxmSVSI_<ContainerAllocator> Type;
00024
00025 RxmSVSI_()
00026 : iTOW(0)
00027 , week(0)
00028 , numVis(0)
00029 , numSV(0)
00030 , sv()
00031 {
00032 }
00033
00034 RxmSVSI_(const ContainerAllocator& _alloc)
00035 : iTOW(0)
00036 , week(0)
00037 , numVis(0)
00038 , numSV(0)
00039 , sv(_alloc)
00040 {
00041 }
00042
00043 typedef int32_t _iTOW_type;
00044 int32_t iTOW;
00045
00046 typedef int16_t _week_type;
00047 int16_t week;
00048
00049 typedef uint8_t _numVis_type;
00050 uint8_t numVis;
00051
00052 typedef uint8_t _numSV_type;
00053 uint8_t numSV;
00054
00055 typedef std::vector< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::other > _sv_type;
00056 std::vector< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::other > sv;
00057
00058 enum { CLASS_ID = 2 };
00059 enum { MESSAGE_ID = 32 };
00060
00061 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > Ptr;
00062 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_<ContainerAllocator> const> ConstPtr;
00063 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00064 };
00065 typedef ::ublox_msgs::RxmSVSI_<std::allocator<void> > RxmSVSI;
00066
00067 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI> RxmSVSIPtr;
00068 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI const> RxmSVSIConstPtr;
00069
00070
00071 template<typename ContainerAllocator>
00072 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::RxmSVSI_<ContainerAllocator> & v)
00073 {
00074 ros::message_operations::Printer< ::ublox_msgs::RxmSVSI_<ContainerAllocator> >::stream(s, "", v);
00075 return s;}
00076
00077 }
00078
00079 namespace ros
00080 {
00081 namespace message_traits
00082 {
00083 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > : public TrueType {};
00084 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_<ContainerAllocator> const> : public TrueType {};
00085 template<class ContainerAllocator>
00086 struct MD5Sum< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "98aa3a36683a81726f4382ea8e0b7c1b";
00090 }
00091
00092 static const char* value(const ::ublox_msgs::RxmSVSI_<ContainerAllocator> &) { return value(); }
00093 static const uint64_t static_value1 = 0x98aa3a36683a8172ULL;
00094 static const uint64_t static_value2 = 0x6f4382ea8e0b7c1bULL;
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct DataType< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "ublox_msgs/RxmSVSI";
00102 }
00103
00104 static const char* value(const ::ublox_msgs::RxmSVSI_<ContainerAllocator> &) { return value(); }
00105 };
00106
00107 template<class ContainerAllocator>
00108 struct Definition< ::ublox_msgs::RxmSVSI_<ContainerAllocator> > {
00109 static const char* value()
00110 {
00111 return "# RXM-SVSI (0x02 0x20)\n\
00112 # SV Status Info\n\
00113 #\n\
00114 # Status of the receiver manager knowledge about GPS Orbit Validity\n\
00115 #\n\
00116 \n\
00117 uint8 CLASS_ID = 2\n\
00118 uint8 MESSAGE_ID = 32\n\
00119 \n\
00120 int32 iTOW # Measurement integer millisecond GPS time of week [ms]\n\
00121 int16 week # Measurement GPS week number [weeks]\n\
00122 \n\
00123 uint8 numVis # Number of visible satellites\n\
00124 uint8 numSV # Number of per-SV data blocks following\n\
00125 \n\
00126 RxmSVSI_SV[] sv\n\
00127 \n\
00128 ================================================================================\n\
00129 MSG: ublox_msgs/RxmSVSI_SV\n\
00130 # see message RxmSVSI\n\
00131 #\n\
00132 \n\
00133 uint8 svid # Satellite ID\n\
00134 \n\
00135 uint8 svFlag # Information Flags\n\
00136 uint8 FLAG_URA_MASK = 15 # Figure of Merit (URA) range 0..15\n\
00137 uint8 FLAG_HEALTHY = 16 # SV healthy flag\n\
00138 uint8 FLAG_EPH_VAL = 32 # Ephemeris valid\n\
00139 uint8 FLAG_ALM_VAL = 64 # Almanach valid\n\
00140 uint8 FLAG_NOT_AVAIL = 128 # SV not available\n\
00141 \n\
00142 int16 azi # Azimuth\n\
00143 int8 elev # Elevation\n\
00144 \n\
00145 uint8 age # Age of Almanach and Ephemeris\n\
00146 uint8 AGE_ALM_MASK = 15 # Age of ALM in days offset by 4\n\
00147 # i.e. the reference time may be in the future:\n\
00148 # ageOfAlm = (age & 0x0f) - 4\n\
00149 uint8 AGE_EPH_MASK = 240 # Age of EPH in hours offset by 4.\n\
00150 # i.e. the reference time may be in the future:\n\
00151 # ageOfEph = ((age & 0xf0) >> 4) - 4\n\
00152 \n\
00153 ";
00154 }
00155
00156 static const char* value(const ::ublox_msgs::RxmSVSI_<ContainerAllocator> &) { return value(); }
00157 };
00158
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace serialization
00165 {
00166
00167 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::RxmSVSI_<ContainerAllocator> >
00168 {
00169 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00170 {
00171 stream.next(m.iTOW);
00172 stream.next(m.week);
00173 stream.next(m.numVis);
00174 stream.next(m.numSV);
00175 stream.next(m.sv);
00176 }
00177
00178 ROS_DECLARE_ALLINONE_SERIALIZER;
00179 };
00180 }
00181 }
00182
00183 namespace ros
00184 {
00185 namespace message_operations
00186 {
00187
00188 template<class ContainerAllocator>
00189 struct Printer< ::ublox_msgs::RxmSVSI_<ContainerAllocator> >
00190 {
00191 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::RxmSVSI_<ContainerAllocator> & v)
00192 {
00193 s << indent << "iTOW: ";
00194 Printer<int32_t>::stream(s, indent + " ", v.iTOW);
00195 s << indent << "week: ";
00196 Printer<int16_t>::stream(s, indent + " ", v.week);
00197 s << indent << "numVis: ";
00198 Printer<uint8_t>::stream(s, indent + " ", v.numVis);
00199 s << indent << "numSV: ";
00200 Printer<uint8_t>::stream(s, indent + " ", v.numSV);
00201 s << indent << "sv[]" << std::endl;
00202 for (size_t i = 0; i < v.sv.size(); ++i)
00203 {
00204 s << indent << " sv[" << i << "]: ";
00205 s << std::endl;
00206 s << indent;
00207 Printer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::stream(s, indent + " ", v.sv[i]);
00208 }
00209 }
00210 };
00211
00212
00213 }
00214 }
00215
00216 #endif // UBLOX_MSGS_MESSAGE_RXMSVSI_H
00217