$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/NavCLOCK.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_NAVCLOCK_H 00003 #define UBLOX_MSGS_MESSAGE_NAVCLOCK_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 NavCLOCK_ { 00022 typedef NavCLOCK_<ContainerAllocator> Type; 00023 00024 NavCLOCK_() 00025 : iTOW(0) 00026 , clkB(0) 00027 , clkD(0) 00028 , tAcc(0) 00029 , fAcc(0) 00030 { 00031 } 00032 00033 NavCLOCK_(const ContainerAllocator& _alloc) 00034 : iTOW(0) 00035 , clkB(0) 00036 , clkD(0) 00037 , tAcc(0) 00038 , fAcc(0) 00039 { 00040 } 00041 00042 typedef uint32_t _iTOW_type; 00043 uint32_t iTOW; 00044 00045 typedef int32_t _clkB_type; 00046 int32_t clkB; 00047 00048 typedef int32_t _clkD_type; 00049 int32_t clkD; 00050 00051 typedef uint32_t _tAcc_type; 00052 uint32_t tAcc; 00053 00054 typedef uint32_t _fAcc_type; 00055 uint32_t fAcc; 00056 00057 enum { CLASS_ID = 1 }; 00058 enum { MESSAGE_ID = 34 }; 00059 00060 private: 00061 static const char* __s_getDataType_() { return "ublox_msgs/NavCLOCK"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00064 00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00066 00067 private: 00068 static const char* __s_getMD5Sum_() { return "a9acfdf2e7ac2bf086926ae4e6a182a0"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00071 00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00073 00074 private: 00075 static const char* __s_getMessageDefinition_() { return "# NAV-CLOCK (0x01 0x22)\n\ 00076 # Clock Solution\n\ 00077 #\n\ 00078 \n\ 00079 uint8 CLASS_ID = 1\n\ 00080 uint8 MESSAGE_ID = 34\n\ 00081 \n\ 00082 uint32 iTOW # GPS Millisecond Time of week [ms]\n\ 00083 \n\ 00084 int32 clkB # Clock bias in nanoseconds [ns]\n\ 00085 int32 clkD # Clock drift in nanoseconds per second [ns/s]\n\ 00086 uint32 tAcc # Time Accuracy Estimate [ns]\n\ 00087 uint32 fAcc # Frequency Accuracy Estimate [ps/s]\n\ 00088 \n\ 00089 "; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00096 { 00097 ros::serialization::OStream stream(write_ptr, 1000000000); 00098 ros::serialization::serialize(stream, iTOW); 00099 ros::serialization::serialize(stream, clkB); 00100 ros::serialization::serialize(stream, clkD); 00101 ros::serialization::serialize(stream, tAcc); 00102 ros::serialization::serialize(stream, fAcc); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00107 { 00108 ros::serialization::IStream stream(read_ptr, 1000000000); 00109 ros::serialization::deserialize(stream, iTOW); 00110 ros::serialization::deserialize(stream, clkB); 00111 ros::serialization::deserialize(stream, clkD); 00112 ros::serialization::deserialize(stream, tAcc); 00113 ros::serialization::deserialize(stream, fAcc); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint32_t serializationLength() const 00118 { 00119 uint32_t size = 0; 00120 size += ros::serialization::serializationLength(iTOW); 00121 size += ros::serialization::serializationLength(clkB); 00122 size += ros::serialization::serializationLength(clkD); 00123 size += ros::serialization::serializationLength(tAcc); 00124 size += ros::serialization::serializationLength(fAcc); 00125 return size; 00126 } 00127 00128 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > Ptr; 00129 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK_<ContainerAllocator> const> ConstPtr; 00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00131 }; // struct NavCLOCK 00132 typedef ::ublox_msgs::NavCLOCK_<std::allocator<void> > NavCLOCK; 00133 00134 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK> NavCLOCKPtr; 00135 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK const> NavCLOCKConstPtr; 00136 00137 00138 template<typename ContainerAllocator> 00139 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavCLOCK_<ContainerAllocator> & v) 00140 { 00141 ros::message_operations::Printer< ::ublox_msgs::NavCLOCK_<ContainerAllocator> >::stream(s, "", v); 00142 return s;} 00143 00144 } // namespace ublox_msgs 00145 00146 namespace ros 00147 { 00148 namespace message_traits 00149 { 00150 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > : public TrueType {}; 00151 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavCLOCK_<ContainerAllocator> const> : public TrueType {}; 00152 template<class ContainerAllocator> 00153 struct MD5Sum< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "a9acfdf2e7ac2bf086926ae4e6a182a0"; 00157 } 00158 00159 static const char* value(const ::ublox_msgs::NavCLOCK_<ContainerAllocator> &) { return value(); } 00160 static const uint64_t static_value1 = 0xa9acfdf2e7ac2bf0ULL; 00161 static const uint64_t static_value2 = 0x86926ae4e6a182a0ULL; 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct DataType< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "ublox_msgs/NavCLOCK"; 00169 } 00170 00171 static const char* value(const ::ublox_msgs::NavCLOCK_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct Definition< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "# NAV-CLOCK (0x01 0x22)\n\ 00179 # Clock Solution\n\ 00180 #\n\ 00181 \n\ 00182 uint8 CLASS_ID = 1\n\ 00183 uint8 MESSAGE_ID = 34\n\ 00184 \n\ 00185 uint32 iTOW # GPS Millisecond Time of week [ms]\n\ 00186 \n\ 00187 int32 clkB # Clock bias in nanoseconds [ns]\n\ 00188 int32 clkD # Clock drift in nanoseconds per second [ns/s]\n\ 00189 uint32 tAcc # Time Accuracy Estimate [ns]\n\ 00190 uint32 fAcc # Frequency Accuracy Estimate [ps/s]\n\ 00191 \n\ 00192 "; 00193 } 00194 00195 static const char* value(const ::ublox_msgs::NavCLOCK_<ContainerAllocator> &) { return value(); } 00196 }; 00197 00198 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > : public TrueType {}; 00199 } // namespace message_traits 00200 } // namespace ros 00201 00202 namespace ros 00203 { 00204 namespace serialization 00205 { 00206 00207 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > 00208 { 00209 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00210 { 00211 stream.next(m.iTOW); 00212 stream.next(m.clkB); 00213 stream.next(m.clkD); 00214 stream.next(m.tAcc); 00215 stream.next(m.fAcc); 00216 } 00217 00218 ROS_DECLARE_ALLINONE_SERIALIZER; 00219 }; // struct NavCLOCK_ 00220 } // namespace serialization 00221 } // namespace ros 00222 00223 namespace ros 00224 { 00225 namespace message_operations 00226 { 00227 00228 template<class ContainerAllocator> 00229 struct Printer< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > 00230 { 00231 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavCLOCK_<ContainerAllocator> & v) 00232 { 00233 s << indent << "iTOW: "; 00234 Printer<uint32_t>::stream(s, indent + " ", v.iTOW); 00235 s << indent << "clkB: "; 00236 Printer<int32_t>::stream(s, indent + " ", v.clkB); 00237 s << indent << "clkD: "; 00238 Printer<int32_t>::stream(s, indent + " ", v.clkD); 00239 s << indent << "tAcc: "; 00240 Printer<uint32_t>::stream(s, indent + " ", v.tAcc); 00241 s << indent << "fAcc: "; 00242 Printer<uint32_t>::stream(s, indent + " ", v.fAcc); 00243 } 00244 }; 00245 00246 00247 } // namespace message_operations 00248 } // namespace ros 00249 00250 #endif // UBLOX_MSGS_MESSAGE_NAVCLOCK_H 00251