Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_TIMESYNCCONTROL_H
00003 #define APPLANIX_MSGS_MESSAGE_TIMESYNCCONTROL_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 applanix_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct TimeSyncControl_ {
00022 typedef TimeSyncControl_<ContainerAllocator> Type;
00023
00024 TimeSyncControl_()
00025 : transaction(0)
00026 , user_pps_time(0.0)
00027 , user_time_conversion_factor(0.0)
00028 {
00029 }
00030
00031 TimeSyncControl_(const ContainerAllocator& _alloc)
00032 : transaction(0)
00033 , user_pps_time(0.0)
00034 , user_time_conversion_factor(0.0)
00035 {
00036 }
00037
00038 typedef uint16_t _transaction_type;
00039 uint16_t transaction;
00040
00041 typedef double _user_pps_time_type;
00042 double user_pps_time;
00043
00044 typedef double _user_time_conversion_factor_type;
00045 double user_time_conversion_factor;
00046
00047
00048 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::applanix_msgs::TimeSyncControl_<std::allocator<void> > TimeSyncControl;
00053
00054 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl> TimeSyncControlPtr;
00055 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl const> TimeSyncControlConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "1e6b12cc55fda44e001851a5e5433aad";
00077 }
00078
00079 static const char* value(const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0x1e6b12cc55fda44eULL;
00081 static const uint64_t static_value2 = 0x001851a5e5433aadULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "applanix_msgs/TimeSyncControl";
00089 }
00090
00091 static const char* value(const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "uint16 transaction\n\
00099 \n\
00100 float64 user_pps_time\n\
00101 float64 user_time_conversion_factor\n\
00102 \n\
00103 ";
00104 }
00105
00106 static const char* value(const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > : public TrueType {};
00110 }
00111 }
00112
00113 namespace ros
00114 {
00115 namespace serialization
00116 {
00117
00118 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> >
00119 {
00120 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00121 {
00122 stream.next(m.transaction);
00123 stream.next(m.user_pps_time);
00124 stream.next(m.user_time_conversion_factor);
00125 }
00126
00127 ROS_DECLARE_ALLINONE_SERIALIZER;
00128 };
00129 }
00130 }
00131
00132 namespace ros
00133 {
00134 namespace message_operations
00135 {
00136
00137 template<class ContainerAllocator>
00138 struct Printer< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> >
00139 {
00140 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> & v)
00141 {
00142 s << indent << "transaction: ";
00143 Printer<uint16_t>::stream(s, indent + " ", v.transaction);
00144 s << indent << "user_pps_time: ";
00145 Printer<double>::stream(s, indent + " ", v.user_pps_time);
00146 s << indent << "user_time_conversion_factor: ";
00147 Printer<double>::stream(s, indent + " ", v.user_time_conversion_factor);
00148 }
00149 };
00150
00151
00152 }
00153 }
00154
00155 #endif // APPLANIX_MSGS_MESSAGE_TIMESYNCCONTROL_H
00156