$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/NavTIMEGPS.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_NAVTIMEGPS_H 00003 #define UBLOX_MSGS_MESSAGE_NAVTIMEGPS_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 NavTIMEGPS_ { 00022 typedef NavTIMEGPS_<ContainerAllocator> Type; 00023 00024 NavTIMEGPS_() 00025 : iTOW(0) 00026 , fTOW(0) 00027 , week(0) 00028 , leapS(0) 00029 , valid(0) 00030 , tAcc(0) 00031 { 00032 } 00033 00034 NavTIMEGPS_(const ContainerAllocator& _alloc) 00035 : iTOW(0) 00036 , fTOW(0) 00037 , week(0) 00038 , leapS(0) 00039 , valid(0) 00040 , tAcc(0) 00041 { 00042 } 00043 00044 typedef uint32_t _iTOW_type; 00045 uint32_t iTOW; 00046 00047 typedef int32_t _fTOW_type; 00048 int32_t fTOW; 00049 00050 typedef int16_t _week_type; 00051 int16_t week; 00052 00053 typedef int8_t _leapS_type; 00054 int8_t leapS; 00055 00056 typedef uint8_t _valid_type; 00057 uint8_t valid; 00058 00059 typedef uint32_t _tAcc_type; 00060 uint32_t tAcc; 00061 00062 enum { CLASS_ID = 1 }; 00063 enum { MESSAGE_ID = 32 }; 00064 enum { VALID_TOW = 1 }; 00065 enum { VALID_WEEK = 2 }; 00066 enum { VALID_UTC = 4 }; 00067 00068 private: 00069 static const char* __s_getDataType_() { return "ublox_msgs/NavTIMEGPS"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "4b13e924e2a4818785c01a54ff86bd76"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "# NAV-TIMEGPS (0x01 0x20)\n\ 00084 # GPS Time Solution\n\ 00085 #\n\ 00086 \n\ 00087 uint8 CLASS_ID = 1\n\ 00088 uint8 MESSAGE_ID = 32\n\ 00089 \n\ 00090 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00091 int32 fTOW # Fractional Nanoseconds remainder of rounded\n\ 00092 # ms above, range -500000 .. 500000 [ns]\n\ 00093 int16 week # GPS week (GPS time)\n\ 00094 \n\ 00095 int8 leapS # Leap Seconds (GPS-UTC) [s]\n\ 00096 \n\ 00097 uint8 valid # Validity Flags\n\ 00098 uint8 VALID_TOW = 1 # Valid Time of Week\n\ 00099 uint8 VALID_WEEK = 2 # Valid Week Number\n\ 00100 uint8 VALID_UTC = 4 # Valid Leap Seconds, i.e. Leap Seconds already known\n\ 00101 \n\ 00102 uint32 tAcc # Time Accuracy Estimate [ns]\n\ 00103 \n\ 00104 "; } 00105 public: 00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00111 { 00112 ros::serialization::OStream stream(write_ptr, 1000000000); 00113 ros::serialization::serialize(stream, iTOW); 00114 ros::serialization::serialize(stream, fTOW); 00115 ros::serialization::serialize(stream, week); 00116 ros::serialization::serialize(stream, leapS); 00117 ros::serialization::serialize(stream, valid); 00118 ros::serialization::serialize(stream, tAcc); 00119 return stream.getData(); 00120 } 00121 00122 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00123 { 00124 ros::serialization::IStream stream(read_ptr, 1000000000); 00125 ros::serialization::deserialize(stream, iTOW); 00126 ros::serialization::deserialize(stream, fTOW); 00127 ros::serialization::deserialize(stream, week); 00128 ros::serialization::deserialize(stream, leapS); 00129 ros::serialization::deserialize(stream, valid); 00130 ros::serialization::deserialize(stream, tAcc); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint32_t serializationLength() const 00135 { 00136 uint32_t size = 0; 00137 size += ros::serialization::serializationLength(iTOW); 00138 size += ros::serialization::serializationLength(fTOW); 00139 size += ros::serialization::serializationLength(week); 00140 size += ros::serialization::serializationLength(leapS); 00141 size += ros::serialization::serializationLength(valid); 00142 size += ros::serialization::serializationLength(tAcc); 00143 return size; 00144 } 00145 00146 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > Ptr; 00147 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> const> ConstPtr; 00148 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00149 }; // struct NavTIMEGPS 00150 typedef ::ublox_msgs::NavTIMEGPS_<std::allocator<void> > NavTIMEGPS; 00151 00152 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEGPS> NavTIMEGPSPtr; 00153 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEGPS const> NavTIMEGPSConstPtr; 00154 00155 00156 template<typename ContainerAllocator> 00157 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> & v) 00158 { 00159 ros::message_operations::Printer< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> >::stream(s, "", v); 00160 return s;} 00161 00162 } // namespace ublox_msgs 00163 00164 namespace ros 00165 { 00166 namespace message_traits 00167 { 00168 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > : public TrueType {}; 00169 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> const> : public TrueType {}; 00170 template<class ContainerAllocator> 00171 struct MD5Sum< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "4b13e924e2a4818785c01a54ff86bd76"; 00175 } 00176 00177 static const char* value(const ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> &) { return value(); } 00178 static const uint64_t static_value1 = 0x4b13e924e2a48187ULL; 00179 static const uint64_t static_value2 = 0x85c01a54ff86bd76ULL; 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct DataType< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "ublox_msgs/NavTIMEGPS"; 00187 } 00188 00189 static const char* value(const ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> &) { return value(); } 00190 }; 00191 00192 template<class ContainerAllocator> 00193 struct Definition< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > { 00194 static const char* value() 00195 { 00196 return "# NAV-TIMEGPS (0x01 0x20)\n\ 00197 # GPS Time Solution\n\ 00198 #\n\ 00199 \n\ 00200 uint8 CLASS_ID = 1\n\ 00201 uint8 MESSAGE_ID = 32\n\ 00202 \n\ 00203 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00204 int32 fTOW # Fractional Nanoseconds remainder of rounded\n\ 00205 # ms above, range -500000 .. 500000 [ns]\n\ 00206 int16 week # GPS week (GPS time)\n\ 00207 \n\ 00208 int8 leapS # Leap Seconds (GPS-UTC) [s]\n\ 00209 \n\ 00210 uint8 valid # Validity Flags\n\ 00211 uint8 VALID_TOW = 1 # Valid Time of Week\n\ 00212 uint8 VALID_WEEK = 2 # Valid Week Number\n\ 00213 uint8 VALID_UTC = 4 # Valid Leap Seconds, i.e. Leap Seconds already known\n\ 00214 \n\ 00215 uint32 tAcc # Time Accuracy Estimate [ns]\n\ 00216 \n\ 00217 "; 00218 } 00219 00220 static const char* value(const ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> &) { return value(); } 00221 }; 00222 00223 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > : public TrueType {}; 00224 } // namespace message_traits 00225 } // namespace ros 00226 00227 namespace ros 00228 { 00229 namespace serialization 00230 { 00231 00232 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > 00233 { 00234 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00235 { 00236 stream.next(m.iTOW); 00237 stream.next(m.fTOW); 00238 stream.next(m.week); 00239 stream.next(m.leapS); 00240 stream.next(m.valid); 00241 stream.next(m.tAcc); 00242 } 00243 00244 ROS_DECLARE_ALLINONE_SERIALIZER; 00245 }; // struct NavTIMEGPS_ 00246 } // namespace serialization 00247 } // namespace ros 00248 00249 namespace ros 00250 { 00251 namespace message_operations 00252 { 00253 00254 template<class ContainerAllocator> 00255 struct Printer< ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> > 00256 { 00257 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavTIMEGPS_<ContainerAllocator> & v) 00258 { 00259 s << indent << "iTOW: "; 00260 Printer<uint32_t>::stream(s, indent + " ", v.iTOW); 00261 s << indent << "fTOW: "; 00262 Printer<int32_t>::stream(s, indent + " ", v.fTOW); 00263 s << indent << "week: "; 00264 Printer<int16_t>::stream(s, indent + " ", v.week); 00265 s << indent << "leapS: "; 00266 Printer<int8_t>::stream(s, indent + " ", v.leapS); 00267 s << indent << "valid: "; 00268 Printer<uint8_t>::stream(s, indent + " ", v.valid); 00269 s << indent << "tAcc: "; 00270 Printer<uint32_t>::stream(s, indent + " ", v.tAcc); 00271 } 00272 }; 00273 00274 00275 } // namespace message_operations 00276 } // namespace ros 00277 00278 #endif // UBLOX_MSGS_MESSAGE_NAVTIMEGPS_H 00279