$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/NavTIMEUTC.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_NAVTIMEUTC_H 00003 #define UBLOX_MSGS_MESSAGE_NAVTIMEUTC_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 NavTIMEUTC_ { 00022 typedef NavTIMEUTC_<ContainerAllocator> Type; 00023 00024 NavTIMEUTC_() 00025 : iTOW(0) 00026 , tAcc(0) 00027 , nano(0) 00028 , year(0) 00029 , month(0) 00030 , day(0) 00031 , hour(0) 00032 , min(0) 00033 , sec(0) 00034 , valid(0) 00035 { 00036 } 00037 00038 NavTIMEUTC_(const ContainerAllocator& _alloc) 00039 : iTOW(0) 00040 , tAcc(0) 00041 , nano(0) 00042 , year(0) 00043 , month(0) 00044 , day(0) 00045 , hour(0) 00046 , min(0) 00047 , sec(0) 00048 , valid(0) 00049 { 00050 } 00051 00052 typedef uint32_t _iTOW_type; 00053 uint32_t iTOW; 00054 00055 typedef uint32_t _tAcc_type; 00056 uint32_t tAcc; 00057 00058 typedef int32_t _nano_type; 00059 int32_t nano; 00060 00061 typedef uint16_t _year_type; 00062 uint16_t year; 00063 00064 typedef uint8_t _month_type; 00065 uint8_t month; 00066 00067 typedef uint8_t _day_type; 00068 uint8_t day; 00069 00070 typedef uint8_t _hour_type; 00071 uint8_t hour; 00072 00073 typedef uint8_t _min_type; 00074 uint8_t min; 00075 00076 typedef uint8_t _sec_type; 00077 uint8_t sec; 00078 00079 typedef uint8_t _valid_type; 00080 uint8_t valid; 00081 00082 enum { CLASS_ID = 1 }; 00083 enum { MESSAGE_ID = 33 }; 00084 enum { VALID_TOW = 1 }; 00085 enum { VALID_WKN = 2 }; 00086 enum { VALID_UTC = 4 }; 00087 00088 private: 00089 static const char* __s_getDataType_() { return "ublox_msgs/NavTIMEUTC"; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00092 00093 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00094 00095 private: 00096 static const char* __s_getMD5Sum_() { return "0ea9fbec0e54f3dbba61f743936c206a"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00099 00100 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00101 00102 private: 00103 static const char* __s_getMessageDefinition_() { return "# NAV-TIMEUTC (0x01 0x21)\n\ 00104 # UTC Time Solution\n\ 00105 #\n\ 00106 \n\ 00107 uint8 CLASS_ID = 1\n\ 00108 uint8 MESSAGE_ID = 33\n\ 00109 \n\ 00110 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00111 \n\ 00112 uint32 tAcc # Time Accuracy Estimate [ns]\n\ 00113 int32 nano # Nanoseconds of second, range -1e9 .. 1e9 (UTC) [ns]\n\ 00114 uint16 year # Year, range 1999..2099 (UTC) [y]\n\ 00115 uint8 month # Month, range 1..12 (UTC) [month]\n\ 00116 uint8 day # Day of Month, range 1..31 (UTC) [d]\n\ 00117 uint8 hour # Hour of Day, range 0..23 (UTC) [h]\n\ 00118 uint8 min # Minute of Hour, range 0..59 (UTC) [min]\n\ 00119 uint8 sec # Seconds of Minute, range 0..59 (UTC) [s]\n\ 00120 \n\ 00121 uint8 valid # Validity Flags\n\ 00122 uint8 VALID_TOW = 1 # Valid Time of Week\n\ 00123 uint8 VALID_WKN = 2 # Valid Week Number\n\ 00124 uint8 VALID_UTC = 4 # Valid Leap Seconds, i.e. Leap Seconds already known\n\ 00125 \n\ 00126 "; } 00127 public: 00128 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00129 00130 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00131 00132 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00133 { 00134 ros::serialization::OStream stream(write_ptr, 1000000000); 00135 ros::serialization::serialize(stream, iTOW); 00136 ros::serialization::serialize(stream, tAcc); 00137 ros::serialization::serialize(stream, nano); 00138 ros::serialization::serialize(stream, year); 00139 ros::serialization::serialize(stream, month); 00140 ros::serialization::serialize(stream, day); 00141 ros::serialization::serialize(stream, hour); 00142 ros::serialization::serialize(stream, min); 00143 ros::serialization::serialize(stream, sec); 00144 ros::serialization::serialize(stream, valid); 00145 return stream.getData(); 00146 } 00147 00148 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00149 { 00150 ros::serialization::IStream stream(read_ptr, 1000000000); 00151 ros::serialization::deserialize(stream, iTOW); 00152 ros::serialization::deserialize(stream, tAcc); 00153 ros::serialization::deserialize(stream, nano); 00154 ros::serialization::deserialize(stream, year); 00155 ros::serialization::deserialize(stream, month); 00156 ros::serialization::deserialize(stream, day); 00157 ros::serialization::deserialize(stream, hour); 00158 ros::serialization::deserialize(stream, min); 00159 ros::serialization::deserialize(stream, sec); 00160 ros::serialization::deserialize(stream, valid); 00161 return stream.getData(); 00162 } 00163 00164 ROS_DEPRECATED virtual uint32_t serializationLength() const 00165 { 00166 uint32_t size = 0; 00167 size += ros::serialization::serializationLength(iTOW); 00168 size += ros::serialization::serializationLength(tAcc); 00169 size += ros::serialization::serializationLength(nano); 00170 size += ros::serialization::serializationLength(year); 00171 size += ros::serialization::serializationLength(month); 00172 size += ros::serialization::serializationLength(day); 00173 size += ros::serialization::serializationLength(hour); 00174 size += ros::serialization::serializationLength(min); 00175 size += ros::serialization::serializationLength(sec); 00176 size += ros::serialization::serializationLength(valid); 00177 return size; 00178 } 00179 00180 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > Ptr; 00181 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> const> ConstPtr; 00182 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00183 }; // struct NavTIMEUTC 00184 typedef ::ublox_msgs::NavTIMEUTC_<std::allocator<void> > NavTIMEUTC; 00185 00186 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEUTC> NavTIMEUTCPtr; 00187 typedef boost::shared_ptr< ::ublox_msgs::NavTIMEUTC const> NavTIMEUTCConstPtr; 00188 00189 00190 template<typename ContainerAllocator> 00191 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> & v) 00192 { 00193 ros::message_operations::Printer< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> >::stream(s, "", v); 00194 return s;} 00195 00196 } // namespace ublox_msgs 00197 00198 namespace ros 00199 { 00200 namespace message_traits 00201 { 00202 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > : public TrueType {}; 00203 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> const> : public TrueType {}; 00204 template<class ContainerAllocator> 00205 struct MD5Sum< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > { 00206 static const char* value() 00207 { 00208 return "0ea9fbec0e54f3dbba61f743936c206a"; 00209 } 00210 00211 static const char* value(const ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> &) { return value(); } 00212 static const uint64_t static_value1 = 0x0ea9fbec0e54f3dbULL; 00213 static const uint64_t static_value2 = 0xba61f743936c206aULL; 00214 }; 00215 00216 template<class ContainerAllocator> 00217 struct DataType< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "ublox_msgs/NavTIMEUTC"; 00221 } 00222 00223 static const char* value(const ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> &) { return value(); } 00224 }; 00225 00226 template<class ContainerAllocator> 00227 struct Definition< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > { 00228 static const char* value() 00229 { 00230 return "# NAV-TIMEUTC (0x01 0x21)\n\ 00231 # UTC Time Solution\n\ 00232 #\n\ 00233 \n\ 00234 uint8 CLASS_ID = 1\n\ 00235 uint8 MESSAGE_ID = 33\n\ 00236 \n\ 00237 uint32 iTOW # GPS Millisecond time of week [ms]\n\ 00238 \n\ 00239 uint32 tAcc # Time Accuracy Estimate [ns]\n\ 00240 int32 nano # Nanoseconds of second, range -1e9 .. 1e9 (UTC) [ns]\n\ 00241 uint16 year # Year, range 1999..2099 (UTC) [y]\n\ 00242 uint8 month # Month, range 1..12 (UTC) [month]\n\ 00243 uint8 day # Day of Month, range 1..31 (UTC) [d]\n\ 00244 uint8 hour # Hour of Day, range 0..23 (UTC) [h]\n\ 00245 uint8 min # Minute of Hour, range 0..59 (UTC) [min]\n\ 00246 uint8 sec # Seconds of Minute, range 0..59 (UTC) [s]\n\ 00247 \n\ 00248 uint8 valid # Validity Flags\n\ 00249 uint8 VALID_TOW = 1 # Valid Time of Week\n\ 00250 uint8 VALID_WKN = 2 # Valid Week Number\n\ 00251 uint8 VALID_UTC = 4 # Valid Leap Seconds, i.e. Leap Seconds already known\n\ 00252 \n\ 00253 "; 00254 } 00255 00256 static const char* value(const ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > : public TrueType {}; 00260 } // namespace message_traits 00261 } // namespace ros 00262 00263 namespace ros 00264 { 00265 namespace serialization 00266 { 00267 00268 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > 00269 { 00270 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00271 { 00272 stream.next(m.iTOW); 00273 stream.next(m.tAcc); 00274 stream.next(m.nano); 00275 stream.next(m.year); 00276 stream.next(m.month); 00277 stream.next(m.day); 00278 stream.next(m.hour); 00279 stream.next(m.min); 00280 stream.next(m.sec); 00281 stream.next(m.valid); 00282 } 00283 00284 ROS_DECLARE_ALLINONE_SERIALIZER; 00285 }; // struct NavTIMEUTC_ 00286 } // namespace serialization 00287 } // namespace ros 00288 00289 namespace ros 00290 { 00291 namespace message_operations 00292 { 00293 00294 template<class ContainerAllocator> 00295 struct Printer< ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> > 00296 { 00297 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::NavTIMEUTC_<ContainerAllocator> & v) 00298 { 00299 s << indent << "iTOW: "; 00300 Printer<uint32_t>::stream(s, indent + " ", v.iTOW); 00301 s << indent << "tAcc: "; 00302 Printer<uint32_t>::stream(s, indent + " ", v.tAcc); 00303 s << indent << "nano: "; 00304 Printer<int32_t>::stream(s, indent + " ", v.nano); 00305 s << indent << "year: "; 00306 Printer<uint16_t>::stream(s, indent + " ", v.year); 00307 s << indent << "month: "; 00308 Printer<uint8_t>::stream(s, indent + " ", v.month); 00309 s << indent << "day: "; 00310 Printer<uint8_t>::stream(s, indent + " ", v.day); 00311 s << indent << "hour: "; 00312 Printer<uint8_t>::stream(s, indent + " ", v.hour); 00313 s << indent << "min: "; 00314 Printer<uint8_t>::stream(s, indent + " ", v.min); 00315 s << indent << "sec: "; 00316 Printer<uint8_t>::stream(s, indent + " ", v.sec); 00317 s << indent << "valid: "; 00318 Printer<uint8_t>::stream(s, indent + " ", v.valid); 00319 } 00320 }; 00321 00322 00323 } // namespace message_operations 00324 } // namespace ros 00325 00326 #endif // UBLOX_MSGS_MESSAGE_NAVTIMEUTC_H 00327