Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::applanix_msgs::UserTimeStatus_<std::allocator<void> > UserTimeStatus;
00064
00065 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus> UserTimeStatusPtr;
00066 typedef boost::shared_ptr< ::applanix_msgs::UserTimeStatus const> UserTimeStatusConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "3d0128542d920da1a88ece6cf34151c4";
00088 }
00089
00090 static const char* value(const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0x3d0128542d920da1ULL;
00092 static const uint64_t static_value2 = 0xa88ece6cf34151c4ULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "applanix_msgs/UserTimeStatus";
00100 }
00101
00102 static const char* value(const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "# Group 17\n\
00110 TimeDistance td\n\
00111 \n\
00112 uint32 time_synch_rejections\n\
00113 uint32 user_time_resynchs\n\
00114 \n\
00115 uint8 user_time_valid\n\
00116 uint8 time_synch_message_received\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: applanix_msgs/TimeDistance\n\
00120 float64 time1\n\
00121 float64 time2\n\
00122 float64 distance\n\
00123 uint8 time_types\n\
00124 uint8 distance_type\n\
00125 \n\
00126 ";
00127 }
00128
00129 static const char* value(const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> &) { return value(); }
00130 };
00131
00132 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> > : public TrueType {};
00133 }
00134 }
00135
00136 namespace ros
00137 {
00138 namespace serialization
00139 {
00140
00141 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> >
00142 {
00143 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00144 {
00145 stream.next(m.td);
00146 stream.next(m.time_synch_rejections);
00147 stream.next(m.user_time_resynchs);
00148 stream.next(m.user_time_valid);
00149 stream.next(m.time_synch_message_received);
00150 }
00151
00152 ROS_DECLARE_ALLINONE_SERIALIZER;
00153 };
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace message_operations
00160 {
00161
00162 template<class ContainerAllocator>
00163 struct Printer< ::applanix_msgs::UserTimeStatus_<ContainerAllocator> >
00164 {
00165 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::UserTimeStatus_<ContainerAllocator> & v)
00166 {
00167 s << indent << "td: ";
00168 s << std::endl;
00169 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td);
00170 s << indent << "time_synch_rejections: ";
00171 Printer<uint32_t>::stream(s, indent + " ", v.time_synch_rejections);
00172 s << indent << "user_time_resynchs: ";
00173 Printer<uint32_t>::stream(s, indent + " ", v.user_time_resynchs);
00174 s << indent << "user_time_valid: ";
00175 Printer<uint8_t>::stream(s, indent + " ", v.user_time_valid);
00176 s << indent << "time_synch_message_received: ";
00177 Printer<uint8_t>::stream(s, indent + " ", v.time_synch_message_received);
00178 }
00179 };
00180
00181
00182 }
00183 }
00184
00185 #endif // APPLANIX_MSGS_MESSAGE_USERTIMESTATUS_H
00186