Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > Ptr;
00061 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK_<ContainerAllocator> const> ConstPtr;
00062 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00063 };
00064 typedef ::ublox_msgs::NavCLOCK_<std::allocator<void> > NavCLOCK;
00065
00066 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK> NavCLOCKPtr;
00067 typedef boost::shared_ptr< ::ublox_msgs::NavCLOCK const> NavCLOCKConstPtr;
00068
00069
00070 template<typename ContainerAllocator>
00071 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavCLOCK_<ContainerAllocator> & v)
00072 {
00073 ros::message_operations::Printer< ::ublox_msgs::NavCLOCK_<ContainerAllocator> >::stream(s, "", v);
00074 return s;}
00075
00076 }
00077
00078 namespace ros
00079 {
00080 namespace message_traits
00081 {
00082 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > : public TrueType {};
00083 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavCLOCK_<ContainerAllocator> const> : public TrueType {};
00084 template<class ContainerAllocator>
00085 struct MD5Sum< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "a9acfdf2e7ac2bf086926ae4e6a182a0";
00089 }
00090
00091 static const char* value(const ::ublox_msgs::NavCLOCK_<ContainerAllocator> &) { return value(); }
00092 static const uint64_t static_value1 = 0xa9acfdf2e7ac2bf0ULL;
00093 static const uint64_t static_value2 = 0x86926ae4e6a182a0ULL;
00094 };
00095
00096 template<class ContainerAllocator>
00097 struct DataType< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > {
00098 static const char* value()
00099 {
00100 return "ublox_msgs/NavCLOCK";
00101 }
00102
00103 static const char* value(const ::ublox_msgs::NavCLOCK_<ContainerAllocator> &) { return value(); }
00104 };
00105
00106 template<class ContainerAllocator>
00107 struct Definition< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > {
00108 static const char* value()
00109 {
00110 return "# NAV-CLOCK (0x01 0x22)\n\
00111 # Clock Solution\n\
00112 #\n\
00113 \n\
00114 uint8 CLASS_ID = 1\n\
00115 uint8 MESSAGE_ID = 34\n\
00116 \n\
00117 uint32 iTOW # GPS Millisecond Time of week [ms]\n\
00118 \n\
00119 int32 clkB # Clock bias in nanoseconds [ns]\n\
00120 int32 clkD # Clock drift in nanoseconds per second [ns/s]\n\
00121 uint32 tAcc # Time Accuracy Estimate [ns]\n\
00122 uint32 fAcc # Frequency Accuracy Estimate [ps/s]\n\
00123 \n\
00124 ";
00125 }
00126
00127 static const char* value(const ::ublox_msgs::NavCLOCK_<ContainerAllocator> &) { return value(); }
00128 };
00129
00130 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::NavCLOCK_<ContainerAllocator> > : public TrueType {};
00131 }
00132 }
00133
00134 namespace ros
00135 {
00136 namespace serialization
00137 {
00138
00139 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavCLOCK_<ContainerAllocator> >
00140 {
00141 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00142 {
00143 stream.next(m.iTOW);
00144 stream.next(m.clkB);
00145 stream.next(m.clkD);
00146 stream.next(m.tAcc);
00147 stream.next(m.fAcc);
00148 }
00149
00150 ROS_DECLARE_ALLINONE_SERIALIZER;
00151 };
00152 }
00153 }
00154
00155 namespace ros
00156 {
00157 namespace message_operations
00158 {
00159
00160 template<class ContainerAllocator>
00161 struct Printer< ::ublox_msgs::NavCLOCK_<ContainerAllocator> >
00162 {
00163 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavCLOCK_<ContainerAllocator> & v)
00164 {
00165 s << indent << "iTOW: ";
00166 Printer<uint32_t>::stream(s, indent + " ", v.iTOW);
00167 s << indent << "clkB: ";
00168 Printer<int32_t>::stream(s, indent + " ", v.clkB);
00169 s << indent << "clkD: ";
00170 Printer<int32_t>::stream(s, indent + " ", v.clkD);
00171 s << indent << "tAcc: ";
00172 Printer<uint32_t>::stream(s, indent + " ", v.tAcc);
00173 s << indent << "fAcc: ";
00174 Printer<uint32_t>::stream(s, indent + " ", v.fAcc);
00175 }
00176 };
00177
00178
00179 }
00180 }
00181
00182 #endif // UBLOX_MSGS_MESSAGE_NAVCLOCK_H
00183