Go to the documentation of this file.00001
00002 #ifndef UBLOX_MSGS_MESSAGE_RXMSVSI_SV_H
00003 #define UBLOX_MSGS_MESSAGE_RXMSVSI_SV_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
00018 namespace ublox_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct RxmSVSI_SV_ {
00022 typedef RxmSVSI_SV_<ContainerAllocator> Type;
00023
00024 RxmSVSI_SV_()
00025 : svid(0)
00026 , svFlag(0)
00027 , azi(0)
00028 , elev(0)
00029 , age(0)
00030 {
00031 }
00032
00033 RxmSVSI_SV_(const ContainerAllocator& _alloc)
00034 : svid(0)
00035 , svFlag(0)
00036 , azi(0)
00037 , elev(0)
00038 , age(0)
00039 {
00040 }
00041
00042 typedef uint8_t _svid_type;
00043 uint8_t svid;
00044
00045 typedef uint8_t _svFlag_type;
00046 uint8_t svFlag;
00047
00048 typedef int16_t _azi_type;
00049 int16_t azi;
00050
00051 typedef int8_t _elev_type;
00052 int8_t elev;
00053
00054 typedef uint8_t _age_type;
00055 uint8_t age;
00056
00057 enum { FLAG_URA_MASK = 15 };
00058 enum { FLAG_HEALTHY = 16 };
00059 enum { FLAG_EPH_VAL = 32 };
00060 enum { FLAG_ALM_VAL = 64 };
00061 enum { FLAG_NOT_AVAIL = 128 };
00062 enum { AGE_ALM_MASK = 15 };
00063 enum { AGE_EPH_MASK = 240 };
00064
00065 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > Ptr;
00066 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> const> ConstPtr;
00067 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00068 };
00069 typedef ::ublox_msgs::RxmSVSI_SV_<std::allocator<void> > RxmSVSI_SV;
00070
00071 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV> RxmSVSI_SVPtr;
00072 typedef boost::shared_ptr< ::ublox_msgs::RxmSVSI_SV const> RxmSVSI_SVConstPtr;
00073
00074
00075 template<typename ContainerAllocator>
00076 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> & v)
00077 {
00078 ros::message_operations::Printer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >::stream(s, "", v);
00079 return s;}
00080
00081 }
00082
00083 namespace ros
00084 {
00085 namespace message_traits
00086 {
00087 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > : public TrueType {};
00088 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> const> : public TrueType {};
00089 template<class ContainerAllocator>
00090 struct MD5Sum< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "b58fccf5178b8e0d3921f5737e017cc6";
00094 }
00095
00096 static const char* value(const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> &) { return value(); }
00097 static const uint64_t static_value1 = 0xb58fccf5178b8e0dULL;
00098 static const uint64_t static_value2 = 0x3921f5737e017cc6ULL;
00099 };
00100
00101 template<class ContainerAllocator>
00102 struct DataType< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > {
00103 static const char* value()
00104 {
00105 return "ublox_msgs/RxmSVSI_SV";
00106 }
00107
00108 static const char* value(const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> &) { return value(); }
00109 };
00110
00111 template<class ContainerAllocator>
00112 struct Definition< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "# see message RxmSVSI\n\
00116 #\n\
00117 \n\
00118 uint8 svid # Satellite ID\n\
00119 \n\
00120 uint8 svFlag # Information Flags\n\
00121 uint8 FLAG_URA_MASK = 15 # Figure of Merit (URA) range 0..15\n\
00122 uint8 FLAG_HEALTHY = 16 # SV healthy flag\n\
00123 uint8 FLAG_EPH_VAL = 32 # Ephemeris valid\n\
00124 uint8 FLAG_ALM_VAL = 64 # Almanach valid\n\
00125 uint8 FLAG_NOT_AVAIL = 128 # SV not available\n\
00126 \n\
00127 int16 azi # Azimuth\n\
00128 int8 elev # Elevation\n\
00129 \n\
00130 uint8 age # Age of Almanach and Ephemeris\n\
00131 uint8 AGE_ALM_MASK = 15 # Age of ALM in days offset by 4\n\
00132 # i.e. the reference time may be in the future:\n\
00133 # ageOfAlm = (age & 0x0f) - 4\n\
00134 uint8 AGE_EPH_MASK = 240 # Age of EPH in hours offset by 4.\n\
00135 # i.e. the reference time may be in the future:\n\
00136 # ageOfEph = ((age & 0xf0) >> 4) - 4\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> > : public TrueType {};
00145 }
00146 }
00147
00148 namespace ros
00149 {
00150 namespace serialization
00151 {
00152
00153 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >
00154 {
00155 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00156 {
00157 stream.next(m.svid);
00158 stream.next(m.svFlag);
00159 stream.next(m.azi);
00160 stream.next(m.elev);
00161 stream.next(m.age);
00162 }
00163
00164 ROS_DECLARE_ALLINONE_SERIALIZER;
00165 };
00166 }
00167 }
00168
00169 namespace ros
00170 {
00171 namespace message_operations
00172 {
00173
00174 template<class ContainerAllocator>
00175 struct Printer< ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> >
00176 {
00177 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::RxmSVSI_SV_<ContainerAllocator> & v)
00178 {
00179 s << indent << "svid: ";
00180 Printer<uint8_t>::stream(s, indent + " ", v.svid);
00181 s << indent << "svFlag: ";
00182 Printer<uint8_t>::stream(s, indent + " ", v.svFlag);
00183 s << indent << "azi: ";
00184 Printer<int16_t>::stream(s, indent + " ", v.azi);
00185 s << indent << "elev: ";
00186 Printer<int8_t>::stream(s, indent + " ", v.elev);
00187 s << indent << "age: ";
00188 Printer<uint8_t>::stream(s, indent + " ", v.age);
00189 }
00190 };
00191
00192
00193 }
00194 }
00195
00196 #endif // UBLOX_MSGS_MESSAGE_RXMSVSI_SV_H
00197