$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/TimeSyncControl.msg */ 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 private: 00049 static const char* __s_getDataType_() { return "applanix_msgs/TimeSyncControl"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "1e6b12cc55fda44e001851a5e5433aad"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "uint16 transaction\n\ 00064 \n\ 00065 float64 user_pps_time\n\ 00066 float64 user_time_conversion_factor\n\ 00067 \n\ 00068 "; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00075 { 00076 ros::serialization::OStream stream(write_ptr, 1000000000); 00077 ros::serialization::serialize(stream, transaction); 00078 ros::serialization::serialize(stream, user_pps_time); 00079 ros::serialization::serialize(stream, user_time_conversion_factor); 00080 return stream.getData(); 00081 } 00082 00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00084 { 00085 ros::serialization::IStream stream(read_ptr, 1000000000); 00086 ros::serialization::deserialize(stream, transaction); 00087 ros::serialization::deserialize(stream, user_pps_time); 00088 ros::serialization::deserialize(stream, user_time_conversion_factor); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(transaction); 00096 size += ros::serialization::serializationLength(user_pps_time); 00097 size += ros::serialization::serializationLength(user_time_conversion_factor); 00098 return size; 00099 } 00100 00101 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > Ptr; 00102 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> const> ConstPtr; 00103 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00104 }; // struct TimeSyncControl 00105 typedef ::applanix_msgs::TimeSyncControl_<std::allocator<void> > TimeSyncControl; 00106 00107 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl> TimeSyncControlPtr; 00108 typedef boost::shared_ptr< ::applanix_msgs::TimeSyncControl const> TimeSyncControlConstPtr; 00109 00110 00111 template<typename ContainerAllocator> 00112 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> & v) 00113 { 00114 ros::message_operations::Printer< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> >::stream(s, "", v); 00115 return s;} 00116 00117 } // namespace applanix_msgs 00118 00119 namespace ros 00120 { 00121 namespace message_traits 00122 { 00123 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > : public TrueType {}; 00124 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> const> : public TrueType {}; 00125 template<class ContainerAllocator> 00126 struct MD5Sum< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > { 00127 static const char* value() 00128 { 00129 return "1e6b12cc55fda44e001851a5e5433aad"; 00130 } 00131 00132 static const char* value(const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> &) { return value(); } 00133 static const uint64_t static_value1 = 0x1e6b12cc55fda44eULL; 00134 static const uint64_t static_value2 = 0x001851a5e5433aadULL; 00135 }; 00136 00137 template<class ContainerAllocator> 00138 struct DataType< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "applanix_msgs/TimeSyncControl"; 00142 } 00143 00144 static const char* value(const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> &) { return value(); } 00145 }; 00146 00147 template<class ContainerAllocator> 00148 struct Definition< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "uint16 transaction\n\ 00152 \n\ 00153 float64 user_pps_time\n\ 00154 float64 user_time_conversion_factor\n\ 00155 \n\ 00156 "; 00157 } 00158 00159 static const char* value(const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> &) { return value(); } 00160 }; 00161 00162 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > : public TrueType {}; 00163 } // namespace message_traits 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace serialization 00169 { 00170 00171 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > 00172 { 00173 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00174 { 00175 stream.next(m.transaction); 00176 stream.next(m.user_pps_time); 00177 stream.next(m.user_time_conversion_factor); 00178 } 00179 00180 ROS_DECLARE_ALLINONE_SERIALIZER; 00181 }; // struct TimeSyncControl_ 00182 } // namespace serialization 00183 } // namespace ros 00184 00185 namespace ros 00186 { 00187 namespace message_operations 00188 { 00189 00190 template<class ContainerAllocator> 00191 struct Printer< ::applanix_msgs::TimeSyncControl_<ContainerAllocator> > 00192 { 00193 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::TimeSyncControl_<ContainerAllocator> & v) 00194 { 00195 s << indent << "transaction: "; 00196 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00197 s << indent << "user_pps_time: "; 00198 Printer<double>::stream(s, indent + " ", v.user_pps_time); 00199 s << indent << "user_time_conversion_factor: "; 00200 Printer<double>::stream(s, indent + " ", v.user_time_conversion_factor); 00201 } 00202 }; 00203 00204 00205 } // namespace message_operations 00206 } // namespace ros 00207 00208 #endif // APPLANIX_MSGS_MESSAGE_TIMESYNCCONTROL_H 00209