$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/NavDGPS.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_NAVDGPS_H 00003 #define UBLOX_MSGS_MESSAGE_NAVDGPS_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/NavDGPS_SV.h" 00018 00019 namespace ublox_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct NavDGPS_ { 00023 typedef NavDGPS_<ContainerAllocator> Type; 00024 00025 NavDGPS_() 00026 : iTOW(0) 00027 , age(0) 00028 , baseId(0) 00029 , baseHealth(0) 00030 , numCh(0) 00031 , status(0) 00032 , reserved1(0) 00033 , sv() 00034 { 00035 } 00036 00037 NavDGPS_(const ContainerAllocator& _alloc) 00038 : iTOW(0) 00039 , age(0) 00040 , baseId(0) 00041 , baseHealth(0) 00042 , numCh(0) 00043 , status(0) 00044 , reserved1(0) 00045 , sv(_alloc) 00046 { 00047 } 00048 00049 typedef uint32_t _iTOW_type; 00050 uint32_t iTOW; 00051 00052 typedef int32_t _age_type; 00053 int32_t age; 00054 00055 typedef int16_t _baseId_type; 00056 int16_t baseId; 00057 00058 typedef int16_t _baseHealth_type; 00059 int16_t baseHealth; 00060 00061 typedef int8_t _numCh_type; 00062 int8_t numCh; 00063 00064 typedef uint8_t _status_type; 00065 uint8_t status; 00066 00067 typedef uint16_t _reserved1_type; 00068 uint16_t reserved1; 00069 00070 typedef std::vector< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> >::other > _sv_type; 00071 std::vector< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> >::other > sv; 00072 00073 enum { CLASS_ID = 1 }; 00074 enum { MESSAGE_ID = 31 }; 00075 enum { DGPS_CORRECTION_NONE = 0 }; 00076 enum { DGPS_CORRECTION_PR_PRR = 1 }; 00077 00078 ROS_DEPRECATED uint32_t get_sv_size() const { return (uint32_t)sv.size(); } 00079 ROS_DEPRECATED void set_sv_size(uint32_t size) { sv.resize((size_t)size); } 00080 ROS_DEPRECATED void get_sv_vec(std::vector< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> >::other > & vec) const { vec = this->sv; } 00081 ROS_DEPRECATED void set_sv_vec(const std::vector< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> >::other > & vec) { this->sv = vec; } 00082 private: 00083 static const char* __s_getDataType_() { return "ublox_msgs/NavDGPS"; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00086 00087 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00088 00089 private: 00090 static const char* __s_getMD5Sum_() { return "b0aba8454084620f2a8eb7ff6445368c"; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00093 00094 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00095 00096 private: 00097 static const char* __s_getMessageDefinition_() { return "# NAV-DGPS (0x01 0x31)\n\ 00098 # DGPS Data Used for NAV\n\ 00099 #\n\ 00100 # This message outputs the Correction data as it has been applied to the current NAV\n\ 00101 # Solution. See also the notes on the RTCM protocol.\n\ 00102 #\n\ 00103 \n\ 00104 uint8 CLASS_ID = 1\n\ 00105 uint8 MESSAGE_ID = 31\n\ 00106 \n\ 00107 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00108 \n\ 00109 int32 age # Age of newest correction data [ms]\n\ 00110 int16 baseId # DGPS Base Station ID\n\ 00111 int16 baseHealth # DGPS Base Station Health Status\n\ 00112 int8 numCh # Number of channels for which correction data is following\n\ 00113 \n\ 00114 uint8 status # DGPS Correction Type Status\n\ 00115 uint8 DGPS_CORRECTION_NONE = 0\n\ 00116 uint8 DGPS_CORRECTION_PR_PRR = 1\n\ 00117 \n\ 00118 uint16 reserved1 # Reserved\n\ 00119 \n\ 00120 NavDGPS_SV[] sv\n\ 00121 \n\ 00122 ================================================================================\n\ 00123 MSG: ublox_msgs/NavDGPS_SV\n\ 00124 # see message NavDGPS\n\ 00125 \n\ 00126 uint8 svid # Satellite ID\n\ 00127 \n\ 00128 uint8 flags # Bitmask / Channel Number\n\ 00129 uint8 CHANNEL1 = 1\n\ 00130 uint8 CHANNEL2 = 2\n\ 00131 uint8 CHANNEL3 = 3\n\ 00132 uint8 CHANNEL4 = 4\n\ 00133 uint8 CHANNEL5 = 5\n\ 00134 uint8 CHANNEL6 = 6\n\ 00135 uint8 CHANNEL7 = 7\n\ 00136 uint8 CHANNEL8 = 8\n\ 00137 uint8 DGPS = 16\n\ 00138 \n\ 00139 uint16 ageC # Age of latest correction data [ms]\n\ 00140 float32 prc # Pseudo Range Correction [m]\n\ 00141 float32 prrc # Pseudo Range Rate Correction [m/s]\n\ 00142 \n\ 00143 \n\ 00144 "; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00147 00148 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00149 00150 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00151 { 00152 ros::serialization::OStream stream(write_ptr, 1000000000); 00153 ros::serialization::serialize(stream, iTOW); 00154 ros::serialization::serialize(stream, age); 00155 ros::serialization::serialize(stream, baseId); 00156 ros::serialization::serialize(stream, baseHealth); 00157 ros::serialization::serialize(stream, numCh); 00158 ros::serialization::serialize(stream, status); 00159 ros::serialization::serialize(stream, reserved1); 00160 ros::serialization::serialize(stream, sv); 00161 return stream.getData(); 00162 } 00163 00164 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00165 { 00166 ros::serialization::IStream stream(read_ptr, 1000000000); 00167 ros::serialization::deserialize(stream, iTOW); 00168 ros::serialization::deserialize(stream, age); 00169 ros::serialization::deserialize(stream, baseId); 00170 ros::serialization::deserialize(stream, baseHealth); 00171 ros::serialization::deserialize(stream, numCh); 00172 ros::serialization::deserialize(stream, status); 00173 ros::serialization::deserialize(stream, reserved1); 00174 ros::serialization::deserialize(stream, sv); 00175 return stream.getData(); 00176 } 00177 00178 ROS_DEPRECATED virtual uint32_t serializationLength() const 00179 { 00180 uint32_t size = 0; 00181 size += ros::serialization::serializationLength(iTOW); 00182 size += ros::serialization::serializationLength(age); 00183 size += ros::serialization::serializationLength(baseId); 00184 size += ros::serialization::serializationLength(baseHealth); 00185 size += ros::serialization::serializationLength(numCh); 00186 size += ros::serialization::serializationLength(status); 00187 size += ros::serialization::serializationLength(reserved1); 00188 size += ros::serialization::serializationLength(sv); 00189 return size; 00190 } 00191 00192 typedef boost::shared_ptr< ::ublox_msgs::NavDGPS_<ContainerAllocator> > Ptr; 00193 typedef boost::shared_ptr< ::ublox_msgs::NavDGPS_<ContainerAllocator> const> ConstPtr; 00194 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00195 }; // struct NavDGPS 00196 typedef ::ublox_msgs::NavDGPS_<std::allocator<void> > NavDGPS; 00197 00198 typedef boost::shared_ptr< ::ublox_msgs::NavDGPS> NavDGPSPtr; 00199 typedef boost::shared_ptr< ::ublox_msgs::NavDGPS const> NavDGPSConstPtr; 00200 00201 00202 template<typename ContainerAllocator> 00203 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavDGPS_<ContainerAllocator> & v) 00204 { 00205 ros::message_operations::Printer< ::ublox_msgs::NavDGPS_<ContainerAllocator> >::stream(s, "", v); 00206 return s;} 00207 00208 } // namespace ublox_msgs 00209 00210 namespace ros 00211 { 00212 namespace message_traits 00213 { 00214 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavDGPS_<ContainerAllocator> > : public TrueType {}; 00215 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavDGPS_<ContainerAllocator> const> : public TrueType {}; 00216 template<class ContainerAllocator> 00217 struct MD5Sum< ::ublox_msgs::NavDGPS_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "b0aba8454084620f2a8eb7ff6445368c"; 00221 } 00222 00223 static const char* value(const ::ublox_msgs::NavDGPS_<ContainerAllocator> &) { return value(); } 00224 static const uint64_t static_value1 = 0xb0aba8454084620fULL; 00225 static const uint64_t static_value2 = 0x2a8eb7ff6445368cULL; 00226 }; 00227 00228 template<class ContainerAllocator> 00229 struct DataType< ::ublox_msgs::NavDGPS_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "ublox_msgs/NavDGPS"; 00233 } 00234 00235 static const char* value(const ::ublox_msgs::NavDGPS_<ContainerAllocator> &) { return value(); } 00236 }; 00237 00238 template<class ContainerAllocator> 00239 struct Definition< ::ublox_msgs::NavDGPS_<ContainerAllocator> > { 00240 static const char* value() 00241 { 00242 return "# NAV-DGPS (0x01 0x31)\n\ 00243 # DGPS Data Used for NAV\n\ 00244 #\n\ 00245 # This message outputs the Correction data as it has been applied to the current NAV\n\ 00246 # Solution. See also the notes on the RTCM protocol.\n\ 00247 #\n\ 00248 \n\ 00249 uint8 CLASS_ID = 1\n\ 00250 uint8 MESSAGE_ID = 31\n\ 00251 \n\ 00252 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00253 \n\ 00254 int32 age # Age of newest correction data [ms]\n\ 00255 int16 baseId # DGPS Base Station ID\n\ 00256 int16 baseHealth # DGPS Base Station Health Status\n\ 00257 int8 numCh # Number of channels for which correction data is following\n\ 00258 \n\ 00259 uint8 status # DGPS Correction Type Status\n\ 00260 uint8 DGPS_CORRECTION_NONE = 0\n\ 00261 uint8 DGPS_CORRECTION_PR_PRR = 1\n\ 00262 \n\ 00263 uint16 reserved1 # Reserved\n\ 00264 \n\ 00265 NavDGPS_SV[] sv\n\ 00266 \n\ 00267 ================================================================================\n\ 00268 MSG: ublox_msgs/NavDGPS_SV\n\ 00269 # see message NavDGPS\n\ 00270 \n\ 00271 uint8 svid # Satellite ID\n\ 00272 \n\ 00273 uint8 flags # Bitmask / Channel Number\n\ 00274 uint8 CHANNEL1 = 1\n\ 00275 uint8 CHANNEL2 = 2\n\ 00276 uint8 CHANNEL3 = 3\n\ 00277 uint8 CHANNEL4 = 4\n\ 00278 uint8 CHANNEL5 = 5\n\ 00279 uint8 CHANNEL6 = 6\n\ 00280 uint8 CHANNEL7 = 7\n\ 00281 uint8 CHANNEL8 = 8\n\ 00282 uint8 DGPS = 16\n\ 00283 \n\ 00284 uint16 ageC # Age of latest correction data [ms]\n\ 00285 float32 prc # Pseudo Range Correction [m]\n\ 00286 float32 prrc # Pseudo Range Rate Correction [m/s]\n\ 00287 \n\ 00288 \n\ 00289 "; 00290 } 00291 00292 static const char* value(const ::ublox_msgs::NavDGPS_<ContainerAllocator> &) { return value(); } 00293 }; 00294 00295 } // namespace message_traits 00296 } // namespace ros 00297 00298 namespace ros 00299 { 00300 namespace serialization 00301 { 00302 00303 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavDGPS_<ContainerAllocator> > 00304 { 00305 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00306 { 00307 stream.next(m.iTOW); 00308 stream.next(m.age); 00309 stream.next(m.baseId); 00310 stream.next(m.baseHealth); 00311 stream.next(m.numCh); 00312 stream.next(m.status); 00313 stream.next(m.reserved1); 00314 stream.next(m.sv); 00315 } 00316 00317 ROS_DECLARE_ALLINONE_SERIALIZER; 00318 }; // struct NavDGPS_ 00319 } // namespace serialization 00320 } // namespace ros 00321 00322 namespace ros 00323 { 00324 namespace message_operations 00325 { 00326 00327 template<class ContainerAllocator> 00328 struct Printer< ::ublox_msgs::NavDGPS_<ContainerAllocator> > 00329 { 00330 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavDGPS_<ContainerAllocator> & v) 00331 { 00332 s << indent << "iTOW: "; 00333 Printer<uint32_t>::stream(s, indent + " ", v.iTOW); 00334 s << indent << "age: "; 00335 Printer<int32_t>::stream(s, indent + " ", v.age); 00336 s << indent << "baseId: "; 00337 Printer<int16_t>::stream(s, indent + " ", v.baseId); 00338 s << indent << "baseHealth: "; 00339 Printer<int16_t>::stream(s, indent + " ", v.baseHealth); 00340 s << indent << "numCh: "; 00341 Printer<int8_t>::stream(s, indent + " ", v.numCh); 00342 s << indent << "status: "; 00343 Printer<uint8_t>::stream(s, indent + " ", v.status); 00344 s << indent << "reserved1: "; 00345 Printer<uint16_t>::stream(s, indent + " ", v.reserved1); 00346 s << indent << "sv[]" << std::endl; 00347 for (size_t i = 0; i < v.sv.size(); ++i) 00348 { 00349 s << indent << " sv[" << i << "]: "; 00350 s << std::endl; 00351 s << indent; 00352 Printer< ::ublox_msgs::NavDGPS_SV_<ContainerAllocator> >::stream(s, indent + " ", v.sv[i]); 00353 } 00354 } 00355 }; 00356 00357 00358 } // namespace message_operations 00359 } // namespace ros 00360 00361 #endif // UBLOX_MSGS_MESSAGE_NAVDGPS_H 00362