$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/NavSTATUS.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_NAVSTATUS_H 00003 #define UBLOX_MSGS_MESSAGE_NAVSTATUS_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 NavSTATUS_ { 00022 typedef NavSTATUS_<ContainerAllocator> Type; 00023 00024 NavSTATUS_() 00025 : iTOW(0) 00026 , gpsFix(0) 00027 , flags(0) 00028 , fixStat(0) 00029 , flags2(0) 00030 , ttff(0) 00031 , msss(0) 00032 { 00033 } 00034 00035 NavSTATUS_(const ContainerAllocator& _alloc) 00036 : iTOW(0) 00037 , gpsFix(0) 00038 , flags(0) 00039 , fixStat(0) 00040 , flags2(0) 00041 , ttff(0) 00042 , msss(0) 00043 { 00044 } 00045 00046 typedef uint32_t _iTOW_type; 00047 uint32_t iTOW; 00048 00049 typedef uint8_t _gpsFix_type; 00050 uint8_t gpsFix; 00051 00052 typedef uint8_t _flags_type; 00053 uint8_t flags; 00054 00055 typedef uint8_t _fixStat_type; 00056 uint8_t fixStat; 00057 00058 typedef uint8_t _flags2_type; 00059 uint8_t flags2; 00060 00061 typedef uint32_t _ttff_type; 00062 uint32_t ttff; 00063 00064 typedef uint32_t _msss_type; 00065 uint32_t msss; 00066 00067 enum { CLASS_ID = 1 }; 00068 enum { MESSAGE_ID = 3 }; 00069 enum { GPS_NO_FIX = 0 }; 00070 enum { GPS_DEAD_RECKONING_ONLY = 1 }; 00071 enum { GPS_2D_FIX = 2 }; 00072 enum { GPS_3D_FIX = 3 }; 00073 enum { GPS_GPS_DEAD_RECKONING_COMBINED = 4 }; 00074 enum { GPS_TIME_ONLY_FIX = 6 }; 00075 enum { FLAGS_GPSFIXOK = 1 }; 00076 enum { FLAGS_DIFFSOLN = 2 }; 00077 enum { FLAGS_WKNSET = 4 }; 00078 enum { FLAGS_TOWSET = 8 }; 00079 enum { DGPSISTAT_MASK = 1 }; 00080 enum { DGPSISTAT_NONE = 0 }; 00081 enum { DGPSISTAT_PR_PRR = 1 }; 00082 enum { MAPMATCHING_MASK = 192 }; 00083 enum { MAPMATCHING_NONE = 0 }; 00084 enum { MAPMATCHING_VALID = 64 }; 00085 enum { MAPMATCHING_USED = 128 }; 00086 enum { MAPMATCHING_DR = 192 }; 00087 enum { PSMSTATE_ACQUISITION = 0 }; 00088 enum { PSMSTATE_TRACKING = 1 }; 00089 enum { PSMSTATE_POWER_OPTIMIZED_TRACKING = 2 }; 00090 enum { PSMSTATE_INACTIVE = 3 }; 00091 00092 private: 00093 static const char* __s_getDataType_() { return "ublox_msgs/NavSTATUS"; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00096 00097 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00098 00099 private: 00100 static const char* __s_getMD5Sum_() { return "c59712aa2e07ac37df60d9b92f97d104"; } 00101 public: 00102 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00103 00104 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00105 00106 private: 00107 static const char* __s_getMessageDefinition_() { return "# NAV-STATUS (0x01 0x03)\n\ 00108 # Receiver Navigation Status\n\ 00109 #\n\ 00110 # See important comments concerning validity of position and velocity given in\n\ 00111 # section Navigation Output Filters.\n\ 00112 #\n\ 00113 \n\ 00114 uint8 CLASS_ID = 1\n\ 00115 uint8 MESSAGE_ID = 3\n\ 00116 \n\ 00117 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00118 \n\ 00119 uint8 gpsFix # GPSfix Type, range 0..5\n\ 00120 uint8 GPS_NO_FIX = 0\n\ 00121 uint8 GPS_DEAD_RECKONING_ONLY = 1\n\ 00122 uint8 GPS_2D_FIX = 2\n\ 00123 uint8 GPS_3D_FIX = 3\n\ 00124 uint8 GPS_GPS_DEAD_RECKONING_COMBINED = 4\n\ 00125 uint8 GPS_TIME_ONLY_FIX = 6\n\ 00126 \n\ 00127 uint8 flags # Navigation Status Flags\n\ 00128 uint8 FLAGS_GPSFIXOK = 1 # i.e. within DOP & ACC Masks\n\ 00129 uint8 FLAGS_DIFFSOLN = 2 # DGPS used\n\ 00130 uint8 FLAGS_WKNSET = 4 # Week Number valid\n\ 00131 uint8 FLAGS_TOWSET = 8 # Time of Week valid\n\ 00132 \n\ 00133 uint8 fixStat # Fix Status Information\n\ 00134 # DGPS Input Status:\n\ 00135 uint8 DGPSISTAT_MASK = 1\n\ 00136 uint8 DGPSISTAT_NONE = 0 # none\n\ 00137 uint8 DGPSISTAT_PR_PRR = 1 # PR+PRR Correction\n\ 00138 # map matching status:\n\ 00139 uint8 MAPMATCHING_MASK = 192\n\ 00140 uint8 MAPMATCHING_NONE = 0 # none\n\ 00141 uint8 MAPMATCHING_VALID = 64 # valid, i.e. map matching data was received, but was too old\n\ 00142 uint8 MAPMATCHING_USED = 128 # used, map matching data was applied\n\ 00143 uint8 MAPMATCHING_DR = 192 # DR, map matching was the reason to enable the dead reckoning gpsFix type instead of publishing no fix\n\ 00144 \n\ 00145 uint8 flags2 # further information about navigation output\n\ 00146 # power safe mode state (Only for FW version >= 7.01; undefined otherwise)\n\ 00147 uint8 PSMSTATE_ACQUISITION = 0 # ACQUISITION [or when psm disabled]\n\ 00148 uint8 PSMSTATE_TRACKING = 1 # TRACKING\n\ 00149 uint8 PSMSTATE_POWER_OPTIMIZED_TRACKING = 2 # POWER OPTIMIZED TRACKING\n\ 00150 uint8 PSMSTATE_INACTIVE = 3 # INACTIVE\n\ 00151 \n\ 00152 uint32 ttff # Time to first fix (millisecond time tag)\n\ 00153 uint32 msss # Milliseconds since Startup / Reset\n\ 00154 \n\ 00155 "; } 00156 public: 00157 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00158 00159 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00160 00161 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00162 { 00163 ros::serialization::OStream stream(write_ptr, 1000000000); 00164 ros::serialization::serialize(stream, iTOW); 00165 ros::serialization::serialize(stream, gpsFix); 00166 ros::serialization::serialize(stream, flags); 00167 ros::serialization::serialize(stream, fixStat); 00168 ros::serialization::serialize(stream, flags2); 00169 ros::serialization::serialize(stream, ttff); 00170 ros::serialization::serialize(stream, msss); 00171 return stream.getData(); 00172 } 00173 00174 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00175 { 00176 ros::serialization::IStream stream(read_ptr, 1000000000); 00177 ros::serialization::deserialize(stream, iTOW); 00178 ros::serialization::deserialize(stream, gpsFix); 00179 ros::serialization::deserialize(stream, flags); 00180 ros::serialization::deserialize(stream, fixStat); 00181 ros::serialization::deserialize(stream, flags2); 00182 ros::serialization::deserialize(stream, ttff); 00183 ros::serialization::deserialize(stream, msss); 00184 return stream.getData(); 00185 } 00186 00187 ROS_DEPRECATED virtual uint32_t serializationLength() const 00188 { 00189 uint32_t size = 0; 00190 size += ros::serialization::serializationLength(iTOW); 00191 size += ros::serialization::serializationLength(gpsFix); 00192 size += ros::serialization::serializationLength(flags); 00193 size += ros::serialization::serializationLength(fixStat); 00194 size += ros::serialization::serializationLength(flags2); 00195 size += ros::serialization::serializationLength(ttff); 00196 size += ros::serialization::serializationLength(msss); 00197 return size; 00198 } 00199 00200 typedef boost::shared_ptr< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > Ptr; 00201 typedef boost::shared_ptr< ::ublox_msgs::NavSTATUS_<ContainerAllocator> const> ConstPtr; 00202 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00203 }; // struct NavSTATUS 00204 typedef ::ublox_msgs::NavSTATUS_<std::allocator<void> > NavSTATUS; 00205 00206 typedef boost::shared_ptr< ::ublox_msgs::NavSTATUS> NavSTATUSPtr; 00207 typedef boost::shared_ptr< ::ublox_msgs::NavSTATUS const> NavSTATUSConstPtr; 00208 00209 00210 template<typename ContainerAllocator> 00211 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavSTATUS_<ContainerAllocator> & v) 00212 { 00213 ros::message_operations::Printer< ::ublox_msgs::NavSTATUS_<ContainerAllocator> >::stream(s, "", v); 00214 return s;} 00215 00216 } // namespace ublox_msgs 00217 00218 namespace ros 00219 { 00220 namespace message_traits 00221 { 00222 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > : public TrueType {}; 00223 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavSTATUS_<ContainerAllocator> const> : public TrueType {}; 00224 template<class ContainerAllocator> 00225 struct MD5Sum< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > { 00226 static const char* value() 00227 { 00228 return "c59712aa2e07ac37df60d9b92f97d104"; 00229 } 00230 00231 static const char* value(const ::ublox_msgs::NavSTATUS_<ContainerAllocator> &) { return value(); } 00232 static const uint64_t static_value1 = 0xc59712aa2e07ac37ULL; 00233 static const uint64_t static_value2 = 0xdf60d9b92f97d104ULL; 00234 }; 00235 00236 template<class ContainerAllocator> 00237 struct DataType< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > { 00238 static const char* value() 00239 { 00240 return "ublox_msgs/NavSTATUS"; 00241 } 00242 00243 static const char* value(const ::ublox_msgs::NavSTATUS_<ContainerAllocator> &) { return value(); } 00244 }; 00245 00246 template<class ContainerAllocator> 00247 struct Definition< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > { 00248 static const char* value() 00249 { 00250 return "# NAV-STATUS (0x01 0x03)\n\ 00251 # Receiver Navigation Status\n\ 00252 #\n\ 00253 # See important comments concerning validity of position and velocity given in\n\ 00254 # section Navigation Output Filters.\n\ 00255 #\n\ 00256 \n\ 00257 uint8 CLASS_ID = 1\n\ 00258 uint8 MESSAGE_ID = 3\n\ 00259 \n\ 00260 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00261 \n\ 00262 uint8 gpsFix # GPSfix Type, range 0..5\n\ 00263 uint8 GPS_NO_FIX = 0\n\ 00264 uint8 GPS_DEAD_RECKONING_ONLY = 1\n\ 00265 uint8 GPS_2D_FIX = 2\n\ 00266 uint8 GPS_3D_FIX = 3\n\ 00267 uint8 GPS_GPS_DEAD_RECKONING_COMBINED = 4\n\ 00268 uint8 GPS_TIME_ONLY_FIX = 6\n\ 00269 \n\ 00270 uint8 flags # Navigation Status Flags\n\ 00271 uint8 FLAGS_GPSFIXOK = 1 # i.e. within DOP & ACC Masks\n\ 00272 uint8 FLAGS_DIFFSOLN = 2 # DGPS used\n\ 00273 uint8 FLAGS_WKNSET = 4 # Week Number valid\n\ 00274 uint8 FLAGS_TOWSET = 8 # Time of Week valid\n\ 00275 \n\ 00276 uint8 fixStat # Fix Status Information\n\ 00277 # DGPS Input Status:\n\ 00278 uint8 DGPSISTAT_MASK = 1\n\ 00279 uint8 DGPSISTAT_NONE = 0 # none\n\ 00280 uint8 DGPSISTAT_PR_PRR = 1 # PR+PRR Correction\n\ 00281 # map matching status:\n\ 00282 uint8 MAPMATCHING_MASK = 192\n\ 00283 uint8 MAPMATCHING_NONE = 0 # none\n\ 00284 uint8 MAPMATCHING_VALID = 64 # valid, i.e. map matching data was received, but was too old\n\ 00285 uint8 MAPMATCHING_USED = 128 # used, map matching data was applied\n\ 00286 uint8 MAPMATCHING_DR = 192 # DR, map matching was the reason to enable the dead reckoning gpsFix type instead of publishing no fix\n\ 00287 \n\ 00288 uint8 flags2 # further information about navigation output\n\ 00289 # power safe mode state (Only for FW version >= 7.01; undefined otherwise)\n\ 00290 uint8 PSMSTATE_ACQUISITION = 0 # ACQUISITION [or when psm disabled]\n\ 00291 uint8 PSMSTATE_TRACKING = 1 # TRACKING\n\ 00292 uint8 PSMSTATE_POWER_OPTIMIZED_TRACKING = 2 # POWER OPTIMIZED TRACKING\n\ 00293 uint8 PSMSTATE_INACTIVE = 3 # INACTIVE\n\ 00294 \n\ 00295 uint32 ttff # Time to first fix (millisecond time tag)\n\ 00296 uint32 msss # Milliseconds since Startup / Reset\n\ 00297 \n\ 00298 "; 00299 } 00300 00301 static const char* value(const ::ublox_msgs::NavSTATUS_<ContainerAllocator> &) { return value(); } 00302 }; 00303 00304 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > : public TrueType {}; 00305 } // namespace message_traits 00306 } // namespace ros 00307 00308 namespace ros 00309 { 00310 namespace serialization 00311 { 00312 00313 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > 00314 { 00315 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00316 { 00317 stream.next(m.iTOW); 00318 stream.next(m.gpsFix); 00319 stream.next(m.flags); 00320 stream.next(m.fixStat); 00321 stream.next(m.flags2); 00322 stream.next(m.ttff); 00323 stream.next(m.msss); 00324 } 00325 00326 ROS_DECLARE_ALLINONE_SERIALIZER; 00327 }; // struct NavSTATUS_ 00328 } // namespace serialization 00329 } // namespace ros 00330 00331 namespace ros 00332 { 00333 namespace message_operations 00334 { 00335 00336 template<class ContainerAllocator> 00337 struct Printer< ::ublox_msgs::NavSTATUS_<ContainerAllocator> > 00338 { 00339 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavSTATUS_<ContainerAllocator> & v) 00340 { 00341 s << indent << "iTOW: "; 00342 Printer<uint32_t>::stream(s, indent + " ", v.iTOW); 00343 s << indent << "gpsFix: "; 00344 Printer<uint8_t>::stream(s, indent + " ", v.gpsFix); 00345 s << indent << "flags: "; 00346 Printer<uint8_t>::stream(s, indent + " ", v.flags); 00347 s << indent << "fixStat: "; 00348 Printer<uint8_t>::stream(s, indent + " ", v.fixStat); 00349 s << indent << "flags2: "; 00350 Printer<uint8_t>::stream(s, indent + " ", v.flags2); 00351 s << indent << "ttff: "; 00352 Printer<uint32_t>::stream(s, indent + " ", v.ttff); 00353 s << indent << "msss: "; 00354 Printer<uint32_t>::stream(s, indent + " ", v.msss); 00355 } 00356 }; 00357 00358 00359 } // namespace message_operations 00360 } // namespace ros 00361 00362 #endif // UBLOX_MSGS_MESSAGE_NAVSTATUS_H 00363