$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/CfgNAV5.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_CFGNAV5_H 00003 #define UBLOX_MSGS_MESSAGE_CFGNAV5_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 CfgNAV5_ { 00022 typedef CfgNAV5_<ContainerAllocator> Type; 00023 00024 CfgNAV5_() 00025 : mask(0) 00026 , dynModel(0) 00027 , fixMode(0) 00028 , fixedAlt(0) 00029 , fixedAltVar(0) 00030 , minElev(0) 00031 , drLimit(0) 00032 , pDop(0) 00033 , tDop(0) 00034 , pAcc(0) 00035 , tAcc(0) 00036 , staticHoldThresh(0) 00037 , dgpsTimeOut(0) 00038 , reserved2(0) 00039 , reserved3(0) 00040 , reserved4(0) 00041 { 00042 } 00043 00044 CfgNAV5_(const ContainerAllocator& _alloc) 00045 : mask(0) 00046 , dynModel(0) 00047 , fixMode(0) 00048 , fixedAlt(0) 00049 , fixedAltVar(0) 00050 , minElev(0) 00051 , drLimit(0) 00052 , pDop(0) 00053 , tDop(0) 00054 , pAcc(0) 00055 , tAcc(0) 00056 , staticHoldThresh(0) 00057 , dgpsTimeOut(0) 00058 , reserved2(0) 00059 , reserved3(0) 00060 , reserved4(0) 00061 { 00062 } 00063 00064 typedef uint16_t _mask_type; 00065 uint16_t mask; 00066 00067 typedef uint8_t _dynModel_type; 00068 uint8_t dynModel; 00069 00070 typedef uint8_t _fixMode_type; 00071 uint8_t fixMode; 00072 00073 typedef int32_t _fixedAlt_type; 00074 int32_t fixedAlt; 00075 00076 typedef uint32_t _fixedAltVar_type; 00077 uint32_t fixedAltVar; 00078 00079 typedef int8_t _minElev_type; 00080 int8_t minElev; 00081 00082 typedef uint8_t _drLimit_type; 00083 uint8_t drLimit; 00084 00085 typedef uint16_t _pDop_type; 00086 uint16_t pDop; 00087 00088 typedef uint16_t _tDop_type; 00089 uint16_t tDop; 00090 00091 typedef uint16_t _pAcc_type; 00092 uint16_t pAcc; 00093 00094 typedef uint16_t _tAcc_type; 00095 uint16_t tAcc; 00096 00097 typedef uint8_t _staticHoldThresh_type; 00098 uint8_t staticHoldThresh; 00099 00100 typedef uint8_t _dgpsTimeOut_type; 00101 uint8_t dgpsTimeOut; 00102 00103 typedef uint32_t _reserved2_type; 00104 uint32_t reserved2; 00105 00106 typedef uint32_t _reserved3_type; 00107 uint32_t reserved3; 00108 00109 typedef uint32_t _reserved4_type; 00110 uint32_t reserved4; 00111 00112 enum { CLASS_ID = 6 }; 00113 enum { MESSAGE_ID = 36 }; 00114 enum { MASK_DYN = 1 }; 00115 enum { MASK_MIN_EL = 2 }; 00116 enum { MASK_FIX_MODE = 4 }; 00117 enum { MASK_DR_LIM = 8 }; 00118 enum { MASK_POS_MASK = 16 }; 00119 enum { MASK_TIME_MASK = 32 }; 00120 enum { MASK_STATIC_HOLD_MASK = 64 }; 00121 enum { MASK_DGPS_MASK = 128 }; 00122 enum { DYN_MODEL_PORTABLE = 0 }; 00123 enum { DYN_MODEL_STATIONARY = 2 }; 00124 enum { DYN_MODEL_PEDESTRIAN = 3 }; 00125 enum { DYN_MODEL_AUTOMOTIVE = 4 }; 00126 enum { DYN_MODEL_SEA = 5 }; 00127 enum { DYN_MODEL_AIRBORNE_1G = 6 }; 00128 enum { DYN_MODEL_AIRBORNE_2G = 7 }; 00129 enum { DYN_MODEL_AIRBORNE_4G = 8 }; 00130 enum { FIX_MODE_2D_ONLY = 1 }; 00131 enum { FIX_MODE_3D_ONLY = 2 }; 00132 enum { FIX_MODE_AUTO = 3 }; 00133 00134 private: 00135 static const char* __s_getDataType_() { return "ublox_msgs/CfgNAV5"; } 00136 public: 00137 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00138 00139 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00140 00141 private: 00142 static const char* __s_getMD5Sum_() { return "7c6e2419d1dd6532b8f09e39a02e167c"; } 00143 public: 00144 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00145 00146 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00147 00148 private: 00149 static const char* __s_getMessageDefinition_() { return "# CFG-NAV5 (0x06 0x24)\n\ 00150 # Navigation Engine Settings\n\ 00151 #\n\ 00152 \n\ 00153 uint8 CLASS_ID = 6\n\ 00154 uint8 MESSAGE_ID = 36\n\ 00155 \n\ 00156 uint16 mask # Parameters Bitmask. Only the masked\n\ 00157 # parameters will be applied.\n\ 00158 uint16 MASK_DYN = 1 # Apply dynamic model settings\n\ 00159 uint16 MASK_MIN_EL = 2 # Apply minimum elevation settings\n\ 00160 uint16 MASK_FIX_MODE = 4 # Apply fix mode settings\n\ 00161 uint16 MASK_DR_LIM = 8 # Apply DR limit settings\n\ 00162 uint16 MASK_POS_MASK = 16 # Apply position mask settings\n\ 00163 uint16 MASK_TIME_MASK = 32 # Apply time mask settings\n\ 00164 uint16 MASK_STATIC_HOLD_MASK = 64 # Apply static hold settings\n\ 00165 uint16 MASK_DGPS_MASK = 128 # Apply DGPS settings, firmware 7 and newer only\n\ 00166 \n\ 00167 uint8 dynModel # Dynamic Platform model:\n\ 00168 uint8 DYN_MODEL_PORTABLE = 0 # Portable\n\ 00169 uint8 DYN_MODEL_STATIONARY = 2 # Stationary\n\ 00170 uint8 DYN_MODEL_PEDESTRIAN = 3 # Pedestrian\n\ 00171 uint8 DYN_MODEL_AUTOMOTIVE = 4 # Automotive\n\ 00172 uint8 DYN_MODEL_SEA = 5 # Sea\n\ 00173 uint8 DYN_MODEL_AIRBORNE_1G = 6 # Airborne with <1g Acceleration\n\ 00174 uint8 DYN_MODEL_AIRBORNE_2G = 7 # Airborne with <2g Acceleration\n\ 00175 uint8 DYN_MODEL_AIRBORNE_4G = 8 # Airborne with <4g Acceleration\n\ 00176 \n\ 00177 uint8 fixMode # Position Fixing Mode.\n\ 00178 uint8 FIX_MODE_2D_ONLY = 1 # 2D only\n\ 00179 uint8 FIX_MODE_3D_ONLY = 2 # 3D only\n\ 00180 uint8 FIX_MODE_AUTO = 3 # Auto 2D/3D\n\ 00181 \n\ 00182 int32 fixedAlt # Fixed altitude (mean sea level) for 2D fix mode. [m / 0.01]\n\ 00183 uint32 fixedAltVar # Fixed altitude variance for 2D mode. [m^2 / 0.0001]\n\ 00184 int8 minElev # Minimum Elevation for a GNSS satellite to be used in NAV [deg]\n\ 00185 uint8 drLimit # Maximum time to perform dead reckoning [s]\n\ 00186 # (linear extrapolation) in case of GPS signal loss\n\ 00187 uint16 pDop # Position DOP Mask to use [1 / 0.1]\n\ 00188 uint16 tDop # Time DOP Mask to use [1 / 0.1]\n\ 00189 uint16 pAcc # Position Accuracy Mask [m]\n\ 00190 uint16 tAcc # Time Accuracy Mask [m]\n\ 00191 uint8 staticHoldThresh # Static hold threshold [cm/s]\n\ 00192 uint8 dgpsTimeOut # DGPS timeout, firmware 7 and newer only [s]\n\ 00193 uint32 reserved2 # Always set to zero\n\ 00194 uint32 reserved3 # Always set to zero\n\ 00195 uint32 reserved4 # Always set to zero\n\ 00196 \n\ 00197 "; } 00198 public: 00199 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00200 00201 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00202 00203 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00204 { 00205 ros::serialization::OStream stream(write_ptr, 1000000000); 00206 ros::serialization::serialize(stream, mask); 00207 ros::serialization::serialize(stream, dynModel); 00208 ros::serialization::serialize(stream, fixMode); 00209 ros::serialization::serialize(stream, fixedAlt); 00210 ros::serialization::serialize(stream, fixedAltVar); 00211 ros::serialization::serialize(stream, minElev); 00212 ros::serialization::serialize(stream, drLimit); 00213 ros::serialization::serialize(stream, pDop); 00214 ros::serialization::serialize(stream, tDop); 00215 ros::serialization::serialize(stream, pAcc); 00216 ros::serialization::serialize(stream, tAcc); 00217 ros::serialization::serialize(stream, staticHoldThresh); 00218 ros::serialization::serialize(stream, dgpsTimeOut); 00219 ros::serialization::serialize(stream, reserved2); 00220 ros::serialization::serialize(stream, reserved3); 00221 ros::serialization::serialize(stream, reserved4); 00222 return stream.getData(); 00223 } 00224 00225 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00226 { 00227 ros::serialization::IStream stream(read_ptr, 1000000000); 00228 ros::serialization::deserialize(stream, mask); 00229 ros::serialization::deserialize(stream, dynModel); 00230 ros::serialization::deserialize(stream, fixMode); 00231 ros::serialization::deserialize(stream, fixedAlt); 00232 ros::serialization::deserialize(stream, fixedAltVar); 00233 ros::serialization::deserialize(stream, minElev); 00234 ros::serialization::deserialize(stream, drLimit); 00235 ros::serialization::deserialize(stream, pDop); 00236 ros::serialization::deserialize(stream, tDop); 00237 ros::serialization::deserialize(stream, pAcc); 00238 ros::serialization::deserialize(stream, tAcc); 00239 ros::serialization::deserialize(stream, staticHoldThresh); 00240 ros::serialization::deserialize(stream, dgpsTimeOut); 00241 ros::serialization::deserialize(stream, reserved2); 00242 ros::serialization::deserialize(stream, reserved3); 00243 ros::serialization::deserialize(stream, reserved4); 00244 return stream.getData(); 00245 } 00246 00247 ROS_DEPRECATED virtual uint32_t serializationLength() const 00248 { 00249 uint32_t size = 0; 00250 size += ros::serialization::serializationLength(mask); 00251 size += ros::serialization::serializationLength(dynModel); 00252 size += ros::serialization::serializationLength(fixMode); 00253 size += ros::serialization::serializationLength(fixedAlt); 00254 size += ros::serialization::serializationLength(fixedAltVar); 00255 size += ros::serialization::serializationLength(minElev); 00256 size += ros::serialization::serializationLength(drLimit); 00257 size += ros::serialization::serializationLength(pDop); 00258 size += ros::serialization::serializationLength(tDop); 00259 size += ros::serialization::serializationLength(pAcc); 00260 size += ros::serialization::serializationLength(tAcc); 00261 size += ros::serialization::serializationLength(staticHoldThresh); 00262 size += ros::serialization::serializationLength(dgpsTimeOut); 00263 size += ros::serialization::serializationLength(reserved2); 00264 size += ros::serialization::serializationLength(reserved3); 00265 size += ros::serialization::serializationLength(reserved4); 00266 return size; 00267 } 00268 00269 typedef boost::shared_ptr< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > Ptr; 00270 typedef boost::shared_ptr< ::ublox_msgs::CfgNAV5_<ContainerAllocator> const> ConstPtr; 00271 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00272 }; // struct CfgNAV5 00273 typedef ::ublox_msgs::CfgNAV5_<std::allocator<void> > CfgNAV5; 00274 00275 typedef boost::shared_ptr< ::ublox_msgs::CfgNAV5> CfgNAV5Ptr; 00276 typedef boost::shared_ptr< ::ublox_msgs::CfgNAV5 const> CfgNAV5ConstPtr; 00277 00278 00279 template<typename ContainerAllocator> 00280 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::CfgNAV5_<ContainerAllocator> & v) 00281 { 00282 ros::message_operations::Printer< ::ublox_msgs::CfgNAV5_<ContainerAllocator> >::stream(s, "", v); 00283 return s;} 00284 00285 } // namespace ublox_msgs 00286 00287 namespace ros 00288 { 00289 namespace message_traits 00290 { 00291 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > : public TrueType {}; 00292 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgNAV5_<ContainerAllocator> const> : public TrueType {}; 00293 template<class ContainerAllocator> 00294 struct MD5Sum< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > { 00295 static const char* value() 00296 { 00297 return "7c6e2419d1dd6532b8f09e39a02e167c"; 00298 } 00299 00300 static const char* value(const ::ublox_msgs::CfgNAV5_<ContainerAllocator> &) { return value(); } 00301 static const uint64_t static_value1 = 0x7c6e2419d1dd6532ULL; 00302 static const uint64_t static_value2 = 0xb8f09e39a02e167cULL; 00303 }; 00304 00305 template<class ContainerAllocator> 00306 struct DataType< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > { 00307 static const char* value() 00308 { 00309 return "ublox_msgs/CfgNAV5"; 00310 } 00311 00312 static const char* value(const ::ublox_msgs::CfgNAV5_<ContainerAllocator> &) { return value(); } 00313 }; 00314 00315 template<class ContainerAllocator> 00316 struct Definition< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > { 00317 static const char* value() 00318 { 00319 return "# CFG-NAV5 (0x06 0x24)\n\ 00320 # Navigation Engine Settings\n\ 00321 #\n\ 00322 \n\ 00323 uint8 CLASS_ID = 6\n\ 00324 uint8 MESSAGE_ID = 36\n\ 00325 \n\ 00326 uint16 mask # Parameters Bitmask. Only the masked\n\ 00327 # parameters will be applied.\n\ 00328 uint16 MASK_DYN = 1 # Apply dynamic model settings\n\ 00329 uint16 MASK_MIN_EL = 2 # Apply minimum elevation settings\n\ 00330 uint16 MASK_FIX_MODE = 4 # Apply fix mode settings\n\ 00331 uint16 MASK_DR_LIM = 8 # Apply DR limit settings\n\ 00332 uint16 MASK_POS_MASK = 16 # Apply position mask settings\n\ 00333 uint16 MASK_TIME_MASK = 32 # Apply time mask settings\n\ 00334 uint16 MASK_STATIC_HOLD_MASK = 64 # Apply static hold settings\n\ 00335 uint16 MASK_DGPS_MASK = 128 # Apply DGPS settings, firmware 7 and newer only\n\ 00336 \n\ 00337 uint8 dynModel # Dynamic Platform model:\n\ 00338 uint8 DYN_MODEL_PORTABLE = 0 # Portable\n\ 00339 uint8 DYN_MODEL_STATIONARY = 2 # Stationary\n\ 00340 uint8 DYN_MODEL_PEDESTRIAN = 3 # Pedestrian\n\ 00341 uint8 DYN_MODEL_AUTOMOTIVE = 4 # Automotive\n\ 00342 uint8 DYN_MODEL_SEA = 5 # Sea\n\ 00343 uint8 DYN_MODEL_AIRBORNE_1G = 6 # Airborne with <1g Acceleration\n\ 00344 uint8 DYN_MODEL_AIRBORNE_2G = 7 # Airborne with <2g Acceleration\n\ 00345 uint8 DYN_MODEL_AIRBORNE_4G = 8 # Airborne with <4g Acceleration\n\ 00346 \n\ 00347 uint8 fixMode # Position Fixing Mode.\n\ 00348 uint8 FIX_MODE_2D_ONLY = 1 # 2D only\n\ 00349 uint8 FIX_MODE_3D_ONLY = 2 # 3D only\n\ 00350 uint8 FIX_MODE_AUTO = 3 # Auto 2D/3D\n\ 00351 \n\ 00352 int32 fixedAlt # Fixed altitude (mean sea level) for 2D fix mode. [m / 0.01]\n\ 00353 uint32 fixedAltVar # Fixed altitude variance for 2D mode. [m^2 / 0.0001]\n\ 00354 int8 minElev # Minimum Elevation for a GNSS satellite to be used in NAV [deg]\n\ 00355 uint8 drLimit # Maximum time to perform dead reckoning [s]\n\ 00356 # (linear extrapolation) in case of GPS signal loss\n\ 00357 uint16 pDop # Position DOP Mask to use [1 / 0.1]\n\ 00358 uint16 tDop # Time DOP Mask to use [1 / 0.1]\n\ 00359 uint16 pAcc # Position Accuracy Mask [m]\n\ 00360 uint16 tAcc # Time Accuracy Mask [m]\n\ 00361 uint8 staticHoldThresh # Static hold threshold [cm/s]\n\ 00362 uint8 dgpsTimeOut # DGPS timeout, firmware 7 and newer only [s]\n\ 00363 uint32 reserved2 # Always set to zero\n\ 00364 uint32 reserved3 # Always set to zero\n\ 00365 uint32 reserved4 # Always set to zero\n\ 00366 \n\ 00367 "; 00368 } 00369 00370 static const char* value(const ::ublox_msgs::CfgNAV5_<ContainerAllocator> &) { return value(); } 00371 }; 00372 00373 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > : public TrueType {}; 00374 } // namespace message_traits 00375 } // namespace ros 00376 00377 namespace ros 00378 { 00379 namespace serialization 00380 { 00381 00382 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > 00383 { 00384 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00385 { 00386 stream.next(m.mask); 00387 stream.next(m.dynModel); 00388 stream.next(m.fixMode); 00389 stream.next(m.fixedAlt); 00390 stream.next(m.fixedAltVar); 00391 stream.next(m.minElev); 00392 stream.next(m.drLimit); 00393 stream.next(m.pDop); 00394 stream.next(m.tDop); 00395 stream.next(m.pAcc); 00396 stream.next(m.tAcc); 00397 stream.next(m.staticHoldThresh); 00398 stream.next(m.dgpsTimeOut); 00399 stream.next(m.reserved2); 00400 stream.next(m.reserved3); 00401 stream.next(m.reserved4); 00402 } 00403 00404 ROS_DECLARE_ALLINONE_SERIALIZER; 00405 }; // struct CfgNAV5_ 00406 } // namespace serialization 00407 } // namespace ros 00408 00409 namespace ros 00410 { 00411 namespace message_operations 00412 { 00413 00414 template<class ContainerAllocator> 00415 struct Printer< ::ublox_msgs::CfgNAV5_<ContainerAllocator> > 00416 { 00417 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::CfgNAV5_<ContainerAllocator> & v) 00418 { 00419 s << indent << "mask: "; 00420 Printer<uint16_t>::stream(s, indent + " ", v.mask); 00421 s << indent << "dynModel: "; 00422 Printer<uint8_t>::stream(s, indent + " ", v.dynModel); 00423 s << indent << "fixMode: "; 00424 Printer<uint8_t>::stream(s, indent + " ", v.fixMode); 00425 s << indent << "fixedAlt: "; 00426 Printer<int32_t>::stream(s, indent + " ", v.fixedAlt); 00427 s << indent << "fixedAltVar: "; 00428 Printer<uint32_t>::stream(s, indent + " ", v.fixedAltVar); 00429 s << indent << "minElev: "; 00430 Printer<int8_t>::stream(s, indent + " ", v.minElev); 00431 s << indent << "drLimit: "; 00432 Printer<uint8_t>::stream(s, indent + " ", v.drLimit); 00433 s << indent << "pDop: "; 00434 Printer<uint16_t>::stream(s, indent + " ", v.pDop); 00435 s << indent << "tDop: "; 00436 Printer<uint16_t>::stream(s, indent + " ", v.tDop); 00437 s << indent << "pAcc: "; 00438 Printer<uint16_t>::stream(s, indent + " ", v.pAcc); 00439 s << indent << "tAcc: "; 00440 Printer<uint16_t>::stream(s, indent + " ", v.tAcc); 00441 s << indent << "staticHoldThresh: "; 00442 Printer<uint8_t>::stream(s, indent + " ", v.staticHoldThresh); 00443 s << indent << "dgpsTimeOut: "; 00444 Printer<uint8_t>::stream(s, indent + " ", v.dgpsTimeOut); 00445 s << indent << "reserved2: "; 00446 Printer<uint32_t>::stream(s, indent + " ", v.reserved2); 00447 s << indent << "reserved3: "; 00448 Printer<uint32_t>::stream(s, indent + " ", v.reserved3); 00449 s << indent << "reserved4: "; 00450 Printer<uint32_t>::stream(s, indent + " ", v.reserved4); 00451 } 00452 }; 00453 00454 00455 } // namespace message_operations 00456 } // namespace ros 00457 00458 #endif // UBLOX_MSGS_MESSAGE_CFGNAV5_H 00459