$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/UserTimeStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_USERTIMESTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_USERTIMESTATUS_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 "applanix_msgs/TimeDistance.h" 00018 00019 namespace applanix_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct UserTimeStatus_ { 00023 typedef UserTimeStatus_<ContainerAllocator> Type; 00024 00025 UserTimeStatus_() 00026 : td() 00027 , time_synch_rejections(0) 00028 , user_time_resynchs(0) 00029 , user_time_valid(0) 00030 , time_synch_message_received(0) 00031 { 00032 } 00033 00034 UserTimeStatus_(const ContainerAllocator& _alloc) 00035 : td(_alloc) 00036 , time_synch_rejections(0) 00037 , user_time_resynchs(0) 00038 , user_time_valid(0) 00039 , time_synch_message_received(0) 00040 { 00041 } 00042 00043 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00044 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00045 00046 typedef uint32_t _time_synch_rejections_type; 00047 uint32_t time_synch_rejections; 00048 00049 typedef uint32_t _user_time_resynchs_type; 00050 uint32_t user_time_resynchs; 00051 00052 typedef uint8_t _user_time_valid_type; 00053 uint8_t user_time_valid; 00054 00055 typedef uint8_t _time_synch_message_received_type; 00056 uint8_t time_synch_message_received; 00057 00058 00059 private: 00060 static const char* __s_getDataType_() { return "applanix_msgs/UserTimeStatus"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "3d0128542d920da1a88ece6cf34151c4"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "# Group 17\n\ 00075 TimeDistance td\n\ 00076 \n\ 00077 uint32 time_synch_rejections\n\ 00078 uint32 user_time_resynchs\n\ 00079 \n\ 00080 uint8 user_time_valid\n\ 00081 uint8 time_synch_message_received\n\ 00082 \n\ 00083 ================================================================================\n\ 00084 MSG: applanix_msgs/TimeDistance\n\ 00085 float64 time1\n\ 00086 float64 time2\n\ 00087 float64 distance\n\ 00088 uint8 time_types\n\ 00089 uint8 distance_type\n\ 00090 \n\ 00091 "; } 00092 public: 00093 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00098 { 00099 ros::serialization::OStream stream(write_ptr, 1000000000); 00100 ros::serialization::serialize(stream, td); 00101 ros::serialization::serialize(stream, time_synch_rejections); 00102 ros::serialization::serialize(stream, user_time_resynchs); 00103 ros::serialization::serialize(stream, user_time_valid); 00104 ros::serialization::serialize(stream, time_synch_message_received); 00105 return stream.getData(); 00106 } 00107 00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00109 { 00110 ros::serialization::IStream stream(read_ptr, 1000000000); 00111 ros::serialization::deserialize(stream, td); 00112 ros::serialization::deserialize(stream, time_synch_rejections); 00113 ros::serialization::deserialize(stream, user_time_resynchs); 00114 ros::serialization::deserialize(stream, user_time_valid); 00115 ros::serialization::deserialize(stream, time_synch_message_received); 00116 return stream.getData(); 00117 } 00118 00119 ROS_DEPRECATED virtual uint32_t serializationLength() const 00120 { 00121 uint32_t size = 0; 00122 size += ros::serialization::serializationLength(td); 00123 size += ros::serialization::serializationLength(time_synch_rejections); 00124 size += ros::serialization::serializationLength(user_time_resynchs); 00125 size += ros::serialization::serializationLength(user_time_valid); 00126 size += ros::serialization::serializationLength(time_synch_message_received); 00127 return size; 00128 } 00129 00130 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > Ptr; 00131 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> const> ConstPtr; 00132 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00133 }; // struct UserTimeStatus 00134 typedef ::applanix_msgs::UserTimeStatus_<std::allocator<void> > UserTimeStatus; 00135 00136 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus> UserTimeStatusPtr; 00137 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus const> UserTimeStatusConstPtr; 00138 00139 00140 template<typename ContainerAllocator> 00141 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> & v) 00142 { 00143 ros::message_operations::Printer< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> >::stream(s, "", v); 00144 return s;} 00145 00146 } // namespace applanix_msgs 00147 00148 namespace ros 00149 { 00150 namespace message_traits 00151 { 00152 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > : public TrueType {}; 00153 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> const> : public TrueType {}; 00154 template<class ContainerAllocator> 00155 struct MD5Sum< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "3d0128542d920da1a88ece6cf34151c4"; 00159 } 00160 00161 static const char* value(const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> &) { return value(); } 00162 static const uint64_t static_value1 = 0x3d0128542d920da1ULL; 00163 static const uint64_t static_value2 = 0xa88ece6cf34151c4ULL; 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct DataType< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "applanix_msgs/UserTimeStatus"; 00171 } 00172 00173 static const char* value(const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> &) { return value(); } 00174 }; 00175 00176 template<class ContainerAllocator> 00177 struct Definition< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "# Group 17\n\ 00181 TimeDistance td\n\ 00182 \n\ 00183 uint32 time_synch_rejections\n\ 00184 uint32 user_time_resynchs\n\ 00185 \n\ 00186 uint8 user_time_valid\n\ 00187 uint8 time_synch_message_received\n\ 00188 \n\ 00189 ================================================================================\n\ 00190 MSG: applanix_msgs/TimeDistance\n\ 00191 float64 time1\n\ 00192 float64 time2\n\ 00193 float64 distance\n\ 00194 uint8 time_types\n\ 00195 uint8 distance_type\n\ 00196 \n\ 00197 "; 00198 } 00199 00200 static const char* value(const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> &) { return value(); } 00201 }; 00202 00203 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > : public TrueType {}; 00204 } // namespace message_traits 00205 } // namespace ros 00206 00207 namespace ros 00208 { 00209 namespace serialization 00210 { 00211 00212 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > 00213 { 00214 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00215 { 00216 stream.next(m.td); 00217 stream.next(m.time_synch_rejections); 00218 stream.next(m.user_time_resynchs); 00219 stream.next(m.user_time_valid); 00220 stream.next(m.time_synch_message_received); 00221 } 00222 00223 ROS_DECLARE_ALLINONE_SERIALIZER; 00224 }; // struct UserTimeStatus_ 00225 } // namespace serialization 00226 } // namespace ros 00227 00228 namespace ros 00229 { 00230 namespace message_operations 00231 { 00232 00233 template<class ContainerAllocator> 00234 struct Printer< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > 00235 { 00236 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> & v) 00237 { 00238 s << indent << "td: "; 00239 s << std::endl; 00240 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00241 s << indent << "time_synch_rejections: "; 00242 Printer<uint32_t>::stream(s, indent + " ", v.time_synch_rejections); 00243 s << indent << "user_time_resynchs: "; 00244 Printer<uint32_t>::stream(s, indent + " ", v.user_time_resynchs); 00245 s << indent << "user_time_valid: "; 00246 Printer<uint8_t>::stream(s, indent + " ", v.user_time_valid); 00247 s << indent << "time_synch_message_received: "; 00248 Printer<uint8_t>::stream(s, indent + " ", v.time_synch_message_received); 00249 } 00250 }; 00251 00252 00253 } // namespace message_operations 00254 } // namespace ros 00255 00256 #endif // APPLANIX_MSGS_MESSAGE_USERTIMESTATUS_H 00257