Go to the documentation of this file.00001
00002 #ifndef UBLOX_MSGS_MESSAGE_NAVSBAS_H
00003 #define UBLOX_MSGS_MESSAGE_NAVSBAS_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/NavSBAS_SV.h"
00018
00019 namespace ublox_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct NavSBAS_ {
00023 typedef NavSBAS_<ContainerAllocator> Type;
00024
00025 NavSBAS_()
00026 : iTOW(0)
00027 , geo(0)
00028 , mode(0)
00029 , sys(0)
00030 , service(0)
00031 , cnt(0)
00032 , reserved0()
00033 , sv()
00034 {
00035 reserved0.assign(0);
00036 }
00037
00038 NavSBAS_(const ContainerAllocator& _alloc)
00039 : iTOW(0)
00040 , geo(0)
00041 , mode(0)
00042 , sys(0)
00043 , service(0)
00044 , cnt(0)
00045 , reserved0()
00046 , sv(_alloc)
00047 {
00048 reserved0.assign(0);
00049 }
00050
00051 typedef uint32_t _iTOW_type;
00052 uint32_t iTOW;
00053
00054 typedef uint8_t _geo_type;
00055 uint8_t geo;
00056
00057 typedef uint8_t _mode_type;
00058 uint8_t mode;
00059
00060 typedef int8_t _sys_type;
00061 int8_t sys;
00062
00063 typedef uint8_t _service_type;
00064 uint8_t service;
00065
00066 typedef uint8_t _cnt_type;
00067 uint8_t cnt;
00068
00069 typedef boost::array<uint8_t, 3> _reserved0_type;
00070 boost::array<uint8_t, 3> reserved0;
00071
00072 typedef std::vector< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> >::other > _sv_type;
00073 std::vector< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> >::other > sv;
00074
00075 enum { CLASS_ID = 1 };
00076 enum { MESSAGE_ID = 50 };
00077 enum { MODE_DISABLED = 0 };
00078 enum { MODE_ENABLED_INTEGRITY = 1 };
00079 enum { MODE_ENABLED_TESTMODE = 3 };
00080 enum { SYS_UNKNOWN = -1 };
00081 enum { SYS_WAAS = 0 };
00082 enum { SYS_EGNOS = 1 };
00083 enum { SYS_MSAS = 2 };
00084 enum { SYS_GPS = 16 };
00085 enum { SERVICE_RANGING = 1 };
00086 enum { SERVICE_CORRECTIONS = 2 };
00087 enum { SERVICE_INTEGRITY = 4 };
00088 enum { SERVICE_TESTMODE = 8 };
00089
00090 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS_<ContainerAllocator> > Ptr;
00091 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS_<ContainerAllocator> const> ConstPtr;
00092 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00093 };
00094 typedef ::ublox_msgs::NavSBAS_<std::allocator<void> > NavSBAS;
00095
00096 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS> NavSBASPtr;
00097 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS const> NavSBASConstPtr;
00098
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavSBAS_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::ublox_msgs::NavSBAS_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSBAS_<ContainerAllocator> > : public TrueType {};
00113 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSBAS_<ContainerAllocator> const> : public TrueType {};
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::ublox_msgs::NavSBAS_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "ef6bea20644abf57a149084ba2380e8c";
00119 }
00120
00121 static const char* value(const ::ublox_msgs::NavSBAS_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0xef6bea20644abf57ULL;
00123 static const uint64_t static_value2 = 0xa149084ba2380e8cULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::ublox_msgs::NavSBAS_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "ublox_msgs/NavSBAS";
00131 }
00132
00133 static const char* value(const ::ublox_msgs::NavSBAS_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::ublox_msgs::NavSBAS_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# NAV-SBAS (0x01 0x32)\n\
00141 # SBAS Status Data\n\
00142 #\n\
00143 # This message outputs the status of the SBAS sub system\n\
00144 #\n\
00145 \n\
00146 uint8 CLASS_ID = 1\n\
00147 uint8 MESSAGE_ID = 50\n\
00148 \n\
00149 uint32 iTOW # GPS Millisecond time of week [ms]\n\
00150 \n\
00151 uint8 geo # PRN Number of the GEO where correction and integrity data is used from\n\
00152 \n\
00153 uint8 mode # SBAS Mode\n\
00154 uint8 MODE_DISABLED = 0\n\
00155 uint8 MODE_ENABLED_INTEGRITY = 1\n\
00156 uint8 MODE_ENABLED_TESTMODE = 3\n\
00157 \n\
00158 int8 sys # SBAS System (WAAS/EGNOS/...)\n\
00159 int8 SYS_UNKNOWN = -1\n\
00160 int8 SYS_WAAS = 0\n\
00161 int8 SYS_EGNOS = 1\n\
00162 int8 SYS_MSAS = 2\n\
00163 int8 SYS_GPS = 16\n\
00164 \n\
00165 uint8 service # SBAS Services available\n\
00166 uint8 SERVICE_RANGING = 1\n\
00167 uint8 SERVICE_CORRECTIONS = 2\n\
00168 uint8 SERVICE_INTEGRITY = 4\n\
00169 uint8 SERVICE_TESTMODE = 8\n\
00170 \n\
00171 uint8 cnt # Number of SV data following\n\
00172 uint8[3] reserved0 # Reserved\n\
00173 \n\
00174 NavSBAS_SV[] sv\n\
00175 \n\
00176 ================================================================================\n\
00177 MSG: ublox_msgs/NavSBAS_SV\n\
00178 # see message NavSBAS\n\
00179 #\n\
00180 \n\
00181 uint8 svid # SV Id\n\
00182 uint8 flags # Flags for this SV\n\
00183 uint8 udre # Monitoring status\n\
00184 uint8 svSys # System (WAAS/EGNOS/...), same as SYS\n\
00185 uint8 svService # Services available, same as SERVICE\n\
00186 uint8 reserved1 # Reserved\n\
00187 int16 prc # Pseudo Range correction in [cm]\n\
00188 uint16 reserved2 # Reserved\n\
00189 int16 ic # Ionosphere correction in [cm]\n\
00190 \n\
00191 ";
00192 }
00193
00194 static const char* value(const ::ublox_msgs::NavSBAS_<ContainerAllocator> &) { return value(); }
00195 };
00196
00197 }
00198 }
00199
00200 namespace ros
00201 {
00202 namespace serialization
00203 {
00204
00205 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavSBAS_<ContainerAllocator> >
00206 {
00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00208 {
00209 stream.next(m.iTOW);
00210 stream.next(m.geo);
00211 stream.next(m.mode);
00212 stream.next(m.sys);
00213 stream.next(m.service);
00214 stream.next(m.cnt);
00215 stream.next(m.reserved0);
00216 stream.next(m.sv);
00217 }
00218
00219 ROS_DECLARE_ALLINONE_SERIALIZER;
00220 };
00221 }
00222 }
00223
00224 namespace ros
00225 {
00226 namespace message_operations
00227 {
00228
00229 template<class ContainerAllocator>
00230 struct Printer< ::ublox_msgs::NavSBAS_<ContainerAllocator> >
00231 {
00232 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavSBAS_<ContainerAllocator> & v)
00233 {
00234 s << indent << "iTOW: ";
00235 Printer<uint32_t>::stream(s, indent + " ", v.iTOW);
00236 s << indent << "geo: ";
00237 Printer<uint8_t>::stream(s, indent + " ", v.geo);
00238 s << indent << "mode: ";
00239 Printer<uint8_t>::stream(s, indent + " ", v.mode);
00240 s << indent << "sys: ";
00241 Printer<int8_t>::stream(s, indent + " ", v.sys);
00242 s << indent << "service: ";
00243 Printer<uint8_t>::stream(s, indent + " ", v.service);
00244 s << indent << "cnt: ";
00245 Printer<uint8_t>::stream(s, indent + " ", v.cnt);
00246 s << indent << "reserved0[]" << std::endl;
00247 for (size_t i = 0; i < v.reserved0.size(); ++i)
00248 {
00249 s << indent << " reserved0[" << i << "]: ";
00250 Printer<uint8_t>::stream(s, indent + " ", v.reserved0[i]);
00251 }
00252 s << indent << "sv[]" << std::endl;
00253 for (size_t i = 0; i < v.sv.size(); ++i)
00254 {
00255 s << indent << " sv[" << i << "]: ";
00256 s << std::endl;
00257 s << indent;
00258 Printer< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> >::stream(s, indent + " ", v.sv[i]);
00259 }
00260 }
00261 };
00262
00263
00264 }
00265 }
00266
00267 #endif // UBLOX_MSGS_MESSAGE_NAVSBAS_H
00268