$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/NavDOP.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_NAVDOP_H 00003 #define UBLOX_MSGS_MESSAGE_NAVDOP_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 NavDOP_ { 00022 typedef NavDOP_<ContainerAllocator> Type; 00023 00024 NavDOP_() 00025 : iTOW(0) 00026 , gDOP(0) 00027 , pDOP(0) 00028 , tDOP(0) 00029 , vDOP(0) 00030 , hDOP(0) 00031 , nDOP(0) 00032 , eDOP(0) 00033 { 00034 } 00035 00036 NavDOP_(const ContainerAllocator& _alloc) 00037 : iTOW(0) 00038 , gDOP(0) 00039 , pDOP(0) 00040 , tDOP(0) 00041 , vDOP(0) 00042 , hDOP(0) 00043 , nDOP(0) 00044 , eDOP(0) 00045 { 00046 } 00047 00048 typedef uint32_t _iTOW_type; 00049 uint32_t iTOW; 00050 00051 typedef uint16_t _gDOP_type; 00052 uint16_t gDOP; 00053 00054 typedef uint16_t _pDOP_type; 00055 uint16_t pDOP; 00056 00057 typedef uint16_t _tDOP_type; 00058 uint16_t tDOP; 00059 00060 typedef uint16_t _vDOP_type; 00061 uint16_t vDOP; 00062 00063 typedef uint16_t _hDOP_type; 00064 uint16_t hDOP; 00065 00066 typedef uint16_t _nDOP_type; 00067 uint16_t nDOP; 00068 00069 typedef uint16_t _eDOP_type; 00070 uint16_t eDOP; 00071 00072 enum { CLASS_ID = 1 }; 00073 enum { MESSAGE_ID = 4 }; 00074 00075 private: 00076 static const char* __s_getDataType_() { return "ublox_msgs/NavDOP"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00079 00080 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00081 00082 private: 00083 static const char* __s_getMD5Sum_() { return "19fe2210fc48e52c1c14b7d2c567407f"; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00086 00087 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00088 00089 private: 00090 static const char* __s_getMessageDefinition_() { return "# NAV-DOP (0x01 0x04)\n\ 00091 # Dilution of precision\n\ 00092 #\n\ 00093 # - DOP values are dimensionless.\n\ 00094 # - All DOP values are scaled by a factor of 100. If the unit transmits a value of e.g. 156, the\n\ 00095 # DOP value is 1.56.\n\ 00096 #\n\ 00097 \n\ 00098 uint8 CLASS_ID = 1\n\ 00099 uint8 MESSAGE_ID = 4\n\ 00100 \n\ 00101 uint32 iTOW # GPS Millisecond Time of Week [ms]\n\ 00102 \n\ 00103 uint16 gDOP # Geometric DOP\n\ 00104 uint16 pDOP # Position DOP\n\ 00105 uint16 tDOP # Time DOP\n\ 00106 uint16 vDOP # Vertical DOP\n\ 00107 uint16 hDOP # Horizontal DOP\n\ 00108 uint16 nDOP # Northing DOP\n\ 00109 uint16 eDOP # Easting DOP\n\ 00110 \n\ 00111 "; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00116 00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00118 { 00119 ros::serialization::OStream stream(write_ptr, 1000000000); 00120 ros::serialization::serialize(stream, iTOW); 00121 ros::serialization::serialize(stream, gDOP); 00122 ros::serialization::serialize(stream, pDOP); 00123 ros::serialization::serialize(stream, tDOP); 00124 ros::serialization::serialize(stream, vDOP); 00125 ros::serialization::serialize(stream, hDOP); 00126 ros::serialization::serialize(stream, nDOP); 00127 ros::serialization::serialize(stream, eDOP); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00132 { 00133 ros::serialization::IStream stream(read_ptr, 1000000000); 00134 ros::serialization::deserialize(stream, iTOW); 00135 ros::serialization::deserialize(stream, gDOP); 00136 ros::serialization::deserialize(stream, pDOP); 00137 ros::serialization::deserialize(stream, tDOP); 00138 ros::serialization::deserialize(stream, vDOP); 00139 ros::serialization::deserialize(stream, hDOP); 00140 ros::serialization::deserialize(stream, nDOP); 00141 ros::serialization::deserialize(stream, eDOP); 00142 return stream.getData(); 00143 } 00144 00145 ROS_DEPRECATED virtual uint32_t serializationLength() const 00146 { 00147 uint32_t size = 0; 00148 size += ros::serialization::serializationLength(iTOW); 00149 size += ros::serialization::serializationLength(gDOP); 00150 size += ros::serialization::serializationLength(pDOP); 00151 size += ros::serialization::serializationLength(tDOP); 00152 size += ros::serialization::serializationLength(vDOP); 00153 size += ros::serialization::serializationLength(hDOP); 00154 size += ros::serialization::serializationLength(nDOP); 00155 size += ros::serialization::serializationLength(eDOP); 00156 return size; 00157 } 00158 00159 typedef boost::shared_ptr< ::ublox_msgs::NavDOP_<ContainerAllocator> > Ptr; 00160 typedef boost::shared_ptr< ::ublox_msgs::NavDOP_<ContainerAllocator> const> ConstPtr; 00161 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00162 }; // struct NavDOP 00163 typedef ::ublox_msgs::NavDOP_<std::allocator<void> > NavDOP; 00164 00165 typedef boost::shared_ptr< ::ublox_msgs::NavDOP> NavDOPPtr; 00166 typedef boost::shared_ptr< ::ublox_msgs::NavDOP const> NavDOPConstPtr; 00167 00168 00169 template<typename ContainerAllocator> 00170 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavDOP_<ContainerAllocator> & v) 00171 { 00172 ros::message_operations::Printer< ::ublox_msgs::NavDOP_<ContainerAllocator> >::stream(s, "", v); 00173 return s;} 00174 00175 } // namespace ublox_msgs 00176 00177 namespace ros 00178 { 00179 namespace message_traits 00180 { 00181 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavDOP_<ContainerAllocator> > : public TrueType {}; 00182 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavDOP_<ContainerAllocator> const> : public TrueType {}; 00183 template<class ContainerAllocator> 00184 struct MD5Sum< ::ublox_msgs::NavDOP_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "19fe2210fc48e52c1c14b7d2c567407f"; 00188 } 00189 00190 static const char* value(const ::ublox_msgs::NavDOP_<ContainerAllocator> &) { return value(); } 00191 static const uint64_t static_value1 = 0x19fe2210fc48e52cULL; 00192 static const uint64_t static_value2 = 0x1c14b7d2c567407fULL; 00193 }; 00194 00195 template<class ContainerAllocator> 00196 struct DataType< ::ublox_msgs::NavDOP_<ContainerAllocator> > { 00197 static const char* value() 00198 { 00199 return "ublox_msgs/NavDOP"; 00200 } 00201 00202 static const char* value(const ::ublox_msgs::NavDOP_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 template<class ContainerAllocator> 00206 struct Definition< ::ublox_msgs::NavDOP_<ContainerAllocator> > { 00207 static const char* value() 00208 { 00209 return "# NAV-DOP (0x01 0x04)\n\ 00210 # Dilution of precision\n\ 00211 #\n\ 00212 # - DOP values are dimensionless.\n\ 00213 # - All DOP values are scaled by a factor of 100. If the unit transmits a value of e.g. 156, the\n\ 00214 # DOP value is 1.56.\n\ 00215 #\n\ 00216 \n\ 00217 uint8 CLASS_ID = 1\n\ 00218 uint8 MESSAGE_ID = 4\n\ 00219 \n\ 00220 uint32 iTOW # GPS Millisecond Time of Week [ms]\n\ 00221 \n\ 00222 uint16 gDOP # Geometric DOP\n\ 00223 uint16 pDOP # Position DOP\n\ 00224 uint16 tDOP # Time DOP\n\ 00225 uint16 vDOP # Vertical DOP\n\ 00226 uint16 hDOP # Horizontal DOP\n\ 00227 uint16 nDOP # Northing DOP\n\ 00228 uint16 eDOP # Easting DOP\n\ 00229 \n\ 00230 "; 00231 } 00232 00233 static const char* value(const ::ublox_msgs::NavDOP_<ContainerAllocator> &) { return value(); } 00234 }; 00235 00236 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::NavDOP_<ContainerAllocator> > : public TrueType {}; 00237 } // namespace message_traits 00238 } // namespace ros 00239 00240 namespace ros 00241 { 00242 namespace serialization 00243 { 00244 00245 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavDOP_<ContainerAllocator> > 00246 { 00247 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00248 { 00249 stream.next(m.iTOW); 00250 stream.next(m.gDOP); 00251 stream.next(m.pDOP); 00252 stream.next(m.tDOP); 00253 stream.next(m.vDOP); 00254 stream.next(m.hDOP); 00255 stream.next(m.nDOP); 00256 stream.next(m.eDOP); 00257 } 00258 00259 ROS_DECLARE_ALLINONE_SERIALIZER; 00260 }; // struct NavDOP_ 00261 } // namespace serialization 00262 } // namespace ros 00263 00264 namespace ros 00265 { 00266 namespace message_operations 00267 { 00268 00269 template<class ContainerAllocator> 00270 struct Printer< ::ublox_msgs::NavDOP_<ContainerAllocator> > 00271 { 00272 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavDOP_<ContainerAllocator> & v) 00273 { 00274 s << indent << "iTOW: "; 00275 Printer<uint32_t>::stream(s, indent + " ", v.iTOW); 00276 s << indent << "gDOP: "; 00277 Printer<uint16_t>::stream(s, indent + " ", v.gDOP); 00278 s << indent << "pDOP: "; 00279 Printer<uint16_t>::stream(s, indent + " ", v.pDOP); 00280 s << indent << "tDOP: "; 00281 Printer<uint16_t>::stream(s, indent + " ", v.tDOP); 00282 s << indent << "vDOP: "; 00283 Printer<uint16_t>::stream(s, indent + " ", v.vDOP); 00284 s << indent << "hDOP: "; 00285 Printer<uint16_t>::stream(s, indent + " ", v.hDOP); 00286 s << indent << "nDOP: "; 00287 Printer<uint16_t>::stream(s, indent + " ", v.nDOP); 00288 s << indent << "eDOP: "; 00289 Printer<uint16_t>::stream(s, indent + " ", v.eDOP); 00290 } 00291 }; 00292 00293 00294 } // namespace message_operations 00295 } // namespace ros 00296 00297 #endif // UBLOX_MSGS_MESSAGE_NAVDOP_H 00298