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