$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/ublox/ublox_msgs/msg/NavSBAS.msg */ 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 ROS_DEPRECATED uint32_t get_reserved0_size() const { return (uint32_t)reserved0.size(); } 00091 ROS_DEPRECATED uint32_t get_sv_size() const { return (uint32_t)sv.size(); } 00092 ROS_DEPRECATED void set_sv_size(uint32_t size) { sv.resize((size_t)size); } 00093 ROS_DEPRECATED void get_sv_vec(std::vector< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> >::other > & vec) const { vec = this->sv; } 00094 ROS_DEPRECATED void set_sv_vec(const std::vector< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> >::other > & vec) { this->sv = vec; } 00095 private: 00096 static const char* __s_getDataType_() { return "ublox_msgs/NavSBAS"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00099 00100 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00101 00102 private: 00103 static const char* __s_getMD5Sum_() { return "ef6bea20644abf57a149084ba2380e8c"; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00106 00107 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00108 00109 private: 00110 static const char* __s_getMessageDefinition_() { return "# NAV-SBAS (0x01 0x32)\n\ 00111 # SBAS Status Data\n\ 00112 #\n\ 00113 # This message outputs the status of the SBAS sub system\n\ 00114 #\n\ 00115 \n\ 00116 uint8 CLASS_ID = 1\n\ 00117 uint8 MESSAGE_ID = 50\n\ 00118 \n\ 00119 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00120 \n\ 00121 uint8 geo # PRN Number of the GEO where correction and integrity data is used from\n\ 00122 \n\ 00123 uint8 mode # SBAS Mode\n\ 00124 uint8 MODE_DISABLED = 0\n\ 00125 uint8 MODE_ENABLED_INTEGRITY = 1\n\ 00126 uint8 MODE_ENABLED_TESTMODE = 3\n\ 00127 \n\ 00128 int8 sys # SBAS System (WAAS/EGNOS/...)\n\ 00129 int8 SYS_UNKNOWN = -1\n\ 00130 int8 SYS_WAAS = 0\n\ 00131 int8 SYS_EGNOS = 1\n\ 00132 int8 SYS_MSAS = 2\n\ 00133 int8 SYS_GPS = 16\n\ 00134 \n\ 00135 uint8 service # SBAS Services available\n\ 00136 uint8 SERVICE_RANGING = 1\n\ 00137 uint8 SERVICE_CORRECTIONS = 2\n\ 00138 uint8 SERVICE_INTEGRITY = 4\n\ 00139 uint8 SERVICE_TESTMODE = 8\n\ 00140 \n\ 00141 uint8 cnt # Number of SV data following\n\ 00142 uint8[3] reserved0 # Reserved\n\ 00143 \n\ 00144 NavSBAS_SV[] sv\n\ 00145 \n\ 00146 ================================================================================\n\ 00147 MSG: ublox_msgs/NavSBAS_SV\n\ 00148 # see message NavSBAS\n\ 00149 #\n\ 00150 \n\ 00151 uint8 svid # SV Id\n\ 00152 uint8 flags # Flags for this SV\n\ 00153 uint8 udre # Monitoring status\n\ 00154 uint8 svSys # System (WAAS/EGNOS/...), same as SYS\n\ 00155 uint8 svService # Services available, same as SERVICE\n\ 00156 uint8 reserved1 # Reserved\n\ 00157 int16 prc # Pseudo Range correction in [cm]\n\ 00158 uint16 reserved2 # Reserved\n\ 00159 int16 ic # Ionosphere correction in [cm]\n\ 00160 \n\ 00161 "; } 00162 public: 00163 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00164 00165 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00166 00167 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00168 { 00169 ros::serialization::OStream stream(write_ptr, 1000000000); 00170 ros::serialization::serialize(stream, iTOW); 00171 ros::serialization::serialize(stream, geo); 00172 ros::serialization::serialize(stream, mode); 00173 ros::serialization::serialize(stream, sys); 00174 ros::serialization::serialize(stream, service); 00175 ros::serialization::serialize(stream, cnt); 00176 ros::serialization::serialize(stream, reserved0); 00177 ros::serialization::serialize(stream, sv); 00178 return stream.getData(); 00179 } 00180 00181 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00182 { 00183 ros::serialization::IStream stream(read_ptr, 1000000000); 00184 ros::serialization::deserialize(stream, iTOW); 00185 ros::serialization::deserialize(stream, geo); 00186 ros::serialization::deserialize(stream, mode); 00187 ros::serialization::deserialize(stream, sys); 00188 ros::serialization::deserialize(stream, service); 00189 ros::serialization::deserialize(stream, cnt); 00190 ros::serialization::deserialize(stream, reserved0); 00191 ros::serialization::deserialize(stream, sv); 00192 return stream.getData(); 00193 } 00194 00195 ROS_DEPRECATED virtual uint32_t serializationLength() const 00196 { 00197 uint32_t size = 0; 00198 size += ros::serialization::serializationLength(iTOW); 00199 size += ros::serialization::serializationLength(geo); 00200 size += ros::serialization::serializationLength(mode); 00201 size += ros::serialization::serializationLength(sys); 00202 size += ros::serialization::serializationLength(service); 00203 size += ros::serialization::serializationLength(cnt); 00204 size += ros::serialization::serializationLength(reserved0); 00205 size += ros::serialization::serializationLength(sv); 00206 return size; 00207 } 00208 00209 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS_<ContainerAllocator> > Ptr; 00210 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS_<ContainerAllocator> const> ConstPtr; 00211 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00212 }; // struct NavSBAS 00213 typedef ::ublox_msgs::NavSBAS_<std::allocator<void> > NavSBAS; 00214 00215 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS> NavSBASPtr; 00216 typedef boost::shared_ptr< ::ublox_msgs::NavSBAS const> NavSBASConstPtr; 00217 00218 00219 template<typename ContainerAllocator> 00220 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavSBAS_<ContainerAllocator> & v) 00221 { 00222 ros::message_operations::Printer< ::ublox_msgs::NavSBAS_<ContainerAllocator> >::stream(s, "", v); 00223 return s;} 00224 00225 } // namespace ublox_msgs 00226 00227 namespace ros 00228 { 00229 namespace message_traits 00230 { 00231 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSBAS_<ContainerAllocator> > : public TrueType {}; 00232 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSBAS_<ContainerAllocator> const> : public TrueType {}; 00233 template<class ContainerAllocator> 00234 struct MD5Sum< ::ublox_msgs::NavSBAS_<ContainerAllocator> > { 00235 static const char* value() 00236 { 00237 return "ef6bea20644abf57a149084ba2380e8c"; 00238 } 00239 00240 static const char* value(const ::ublox_msgs::NavSBAS_<ContainerAllocator> &) { return value(); } 00241 static const uint64_t static_value1 = 0xef6bea20644abf57ULL; 00242 static const uint64_t static_value2 = 0xa149084ba2380e8cULL; 00243 }; 00244 00245 template<class ContainerAllocator> 00246 struct DataType< ::ublox_msgs::NavSBAS_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "ublox_msgs/NavSBAS"; 00250 } 00251 00252 static const char* value(const ::ublox_msgs::NavSBAS_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 template<class ContainerAllocator> 00256 struct Definition< ::ublox_msgs::NavSBAS_<ContainerAllocator> > { 00257 static const char* value() 00258 { 00259 return "# NAV-SBAS (0x01 0x32)\n\ 00260 # SBAS Status Data\n\ 00261 #\n\ 00262 # This message outputs the status of the SBAS sub system\n\ 00263 #\n\ 00264 \n\ 00265 uint8 CLASS_ID = 1\n\ 00266 uint8 MESSAGE_ID = 50\n\ 00267 \n\ 00268 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00269 \n\ 00270 uint8 geo # PRN Number of the GEO where correction and integrity data is used from\n\ 00271 \n\ 00272 uint8 mode # SBAS Mode\n\ 00273 uint8 MODE_DISABLED = 0\n\ 00274 uint8 MODE_ENABLED_INTEGRITY = 1\n\ 00275 uint8 MODE_ENABLED_TESTMODE = 3\n\ 00276 \n\ 00277 int8 sys # SBAS System (WAAS/EGNOS/...)\n\ 00278 int8 SYS_UNKNOWN = -1\n\ 00279 int8 SYS_WAAS = 0\n\ 00280 int8 SYS_EGNOS = 1\n\ 00281 int8 SYS_MSAS = 2\n\ 00282 int8 SYS_GPS = 16\n\ 00283 \n\ 00284 uint8 service # SBAS Services available\n\ 00285 uint8 SERVICE_RANGING = 1\n\ 00286 uint8 SERVICE_CORRECTIONS = 2\n\ 00287 uint8 SERVICE_INTEGRITY = 4\n\ 00288 uint8 SERVICE_TESTMODE = 8\n\ 00289 \n\ 00290 uint8 cnt # Number of SV data following\n\ 00291 uint8[3] reserved0 # Reserved\n\ 00292 \n\ 00293 NavSBAS_SV[] sv\n\ 00294 \n\ 00295 ================================================================================\n\ 00296 MSG: ublox_msgs/NavSBAS_SV\n\ 00297 # see message NavSBAS\n\ 00298 #\n\ 00299 \n\ 00300 uint8 svid # SV Id\n\ 00301 uint8 flags # Flags for this SV\n\ 00302 uint8 udre # Monitoring status\n\ 00303 uint8 svSys # System (WAAS/EGNOS/...), same as SYS\n\ 00304 uint8 svService # Services available, same as SERVICE\n\ 00305 uint8 reserved1 # Reserved\n\ 00306 int16 prc # Pseudo Range correction in [cm]\n\ 00307 uint16 reserved2 # Reserved\n\ 00308 int16 ic # Ionosphere correction in [cm]\n\ 00309 \n\ 00310 "; 00311 } 00312 00313 static const char* value(const ::ublox_msgs::NavSBAS_<ContainerAllocator> &) { return value(); } 00314 }; 00315 00316 } // namespace message_traits 00317 } // namespace ros 00318 00319 namespace ros 00320 { 00321 namespace serialization 00322 { 00323 00324 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavSBAS_<ContainerAllocator> > 00325 { 00326 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00327 { 00328 stream.next(m.iTOW); 00329 stream.next(m.geo); 00330 stream.next(m.mode); 00331 stream.next(m.sys); 00332 stream.next(m.service); 00333 stream.next(m.cnt); 00334 stream.next(m.reserved0); 00335 stream.next(m.sv); 00336 } 00337 00338 ROS_DECLARE_ALLINONE_SERIALIZER; 00339 }; // struct NavSBAS_ 00340 } // namespace serialization 00341 } // namespace ros 00342 00343 namespace ros 00344 { 00345 namespace message_operations 00346 { 00347 00348 template<class ContainerAllocator> 00349 struct Printer< ::ublox_msgs::NavSBAS_<ContainerAllocator> > 00350 { 00351 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavSBAS_<ContainerAllocator> & v) 00352 { 00353 s << indent << "iTOW: "; 00354 Printer<uint32_t>::stream(s, indent + " ", v.iTOW); 00355 s << indent << "geo: "; 00356 Printer<uint8_t>::stream(s, indent + " ", v.geo); 00357 s << indent << "mode: "; 00358 Printer<uint8_t>::stream(s, indent + " ", v.mode); 00359 s << indent << "sys: "; 00360 Printer<int8_t>::stream(s, indent + " ", v.sys); 00361 s << indent << "service: "; 00362 Printer<uint8_t>::stream(s, indent + " ", v.service); 00363 s << indent << "cnt: "; 00364 Printer<uint8_t>::stream(s, indent + " ", v.cnt); 00365 s << indent << "reserved0[]" << std::endl; 00366 for (size_t i = 0; i < v.reserved0.size(); ++i) 00367 { 00368 s << indent << " reserved0[" << i << "]: "; 00369 Printer<uint8_t>::stream(s, indent + " ", v.reserved0[i]); 00370 } 00371 s << indent << "sv[]" << std::endl; 00372 for (size_t i = 0; i < v.sv.size(); ++i) 00373 { 00374 s << indent << " sv[" << i << "]: "; 00375 s << std::endl; 00376 s << indent; 00377 Printer< ::ublox_msgs::NavSBAS_SV_<ContainerAllocator> >::stream(s, indent + " ", v.sv[i]); 00378 } 00379 } 00380 }; 00381 00382 00383 } // namespace message_operations 00384 } // namespace ros 00385 00386 #endif // UBLOX_MSGS_MESSAGE_NAVSBAS_H 00387