$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/DMIData.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_DMIDATA_H 00003 #define APPLANIX_MSGS_MESSAGE_DMIDATA_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 DMIData_ { 00023 typedef DMIData_<ContainerAllocator> Type; 00024 00025 DMIData_() 00026 : td() 00027 , signed_distance(0.0) 00028 , unsigned_distance(0.0) 00029 , scale_factor(0) 00030 , status(0) 00031 , type(0) 00032 , rate(0) 00033 { 00034 } 00035 00036 DMIData_(const ContainerAllocator& _alloc) 00037 : td(_alloc) 00038 , signed_distance(0.0) 00039 , unsigned_distance(0.0) 00040 , scale_factor(0) 00041 , status(0) 00042 , type(0) 00043 , rate(0) 00044 { 00045 } 00046 00047 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00048 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00049 00050 typedef double _signed_distance_type; 00051 double signed_distance; 00052 00053 typedef double _unsigned_distance_type; 00054 double unsigned_distance; 00055 00056 typedef uint16_t _scale_factor_type; 00057 uint16_t scale_factor; 00058 00059 typedef uint8_t _status_type; 00060 uint8_t status; 00061 00062 typedef uint8_t _type_type; 00063 uint8_t type; 00064 00065 typedef uint8_t _rate_type; 00066 uint8_t rate; 00067 00068 enum { STATUS_INVALID = 0 }; 00069 enum { STATUS_VALID = 1 }; 00070 enum { STATUS_SCALE_FACTOR_CHANGE = 2 }; 00071 enum { TYPE_NONE = 0 }; 00072 enum { TYPE_PULSE_DIR = 1 }; 00073 enum { TYPE_QUADRATURE = 2 }; 00074 enum { RATE_50HZ = 0 }; 00075 enum { RATE_100HZ = 1 }; 00076 enum { RATE_200HZ = 2 }; 00077 enum { RATE_400HZ = 3 }; 00078 enum { RATE_125HZ = 4 }; 00079 00080 private: 00081 static const char* __s_getDataType_() { return "applanix_msgs/DMIData"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00084 00085 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00086 00087 private: 00088 static const char* __s_getMD5Sum_() { return "2feef48ec7606bd895e47a3ec03e1841"; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00091 00092 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00093 00094 private: 00095 static const char* __s_getMessageDefinition_() { return "# Group 15 \n\ 00096 TimeDistance td\n\ 00097 \n\ 00098 float64 signed_distance\n\ 00099 float64 unsigned_distance\n\ 00100 \n\ 00101 uint16 scale_factor\n\ 00102 \n\ 00103 uint8 STATUS_INVALID=0\n\ 00104 uint8 STATUS_VALID=1\n\ 00105 uint8 STATUS_SCALE_FACTOR_CHANGE=2\n\ 00106 uint8 status\n\ 00107 \n\ 00108 uint8 TYPE_NONE=0\n\ 00109 uint8 TYPE_PULSE_DIR=1\n\ 00110 uint8 TYPE_QUADRATURE=2\n\ 00111 uint8 type\n\ 00112 \n\ 00113 uint8 RATE_50HZ=0\n\ 00114 uint8 RATE_100HZ=1\n\ 00115 uint8 RATE_200HZ=2\n\ 00116 uint8 RATE_400HZ=3\n\ 00117 uint8 RATE_125HZ=4\n\ 00118 uint8 rate\n\ 00119 \n\ 00120 ================================================================================\n\ 00121 MSG: applanix_msgs/TimeDistance\n\ 00122 float64 time1\n\ 00123 float64 time2\n\ 00124 float64 distance\n\ 00125 uint8 time_types\n\ 00126 uint8 distance_type\n\ 00127 \n\ 00128 "; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00131 00132 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00133 00134 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00135 { 00136 ros::serialization::OStream stream(write_ptr, 1000000000); 00137 ros::serialization::serialize(stream, td); 00138 ros::serialization::serialize(stream, signed_distance); 00139 ros::serialization::serialize(stream, unsigned_distance); 00140 ros::serialization::serialize(stream, scale_factor); 00141 ros::serialization::serialize(stream, status); 00142 ros::serialization::serialize(stream, type); 00143 ros::serialization::serialize(stream, rate); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00148 { 00149 ros::serialization::IStream stream(read_ptr, 1000000000); 00150 ros::serialization::deserialize(stream, td); 00151 ros::serialization::deserialize(stream, signed_distance); 00152 ros::serialization::deserialize(stream, unsigned_distance); 00153 ros::serialization::deserialize(stream, scale_factor); 00154 ros::serialization::deserialize(stream, status); 00155 ros::serialization::deserialize(stream, type); 00156 ros::serialization::deserialize(stream, rate); 00157 return stream.getData(); 00158 } 00159 00160 ROS_DEPRECATED virtual uint32_t serializationLength() const 00161 { 00162 uint32_t size = 0; 00163 size += ros::serialization::serializationLength(td); 00164 size += ros::serialization::serializationLength(signed_distance); 00165 size += ros::serialization::serializationLength(unsigned_distance); 00166 size += ros::serialization::serializationLength(scale_factor); 00167 size += ros::serialization::serializationLength(status); 00168 size += ros::serialization::serializationLength(type); 00169 size += ros::serialization::serializationLength(rate); 00170 return size; 00171 } 00172 00173 typedef boost::shared_ptr< ::applanix_msgs::DMIData_<ContainerAllocator> > Ptr; 00174 typedef boost::shared_ptr< ::applanix_msgs::DMIData_<ContainerAllocator> const> ConstPtr; 00175 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00176 }; // struct DMIData 00177 typedef ::applanix_msgs::DMIData_<std::allocator<void> > DMIData; 00178 00179 typedef boost::shared_ptr< ::applanix_msgs::DMIData> DMIDataPtr; 00180 typedef boost::shared_ptr< ::applanix_msgs::DMIData const> DMIDataConstPtr; 00181 00182 00183 template<typename ContainerAllocator> 00184 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::DMIData_<ContainerAllocator> & v) 00185 { 00186 ros::message_operations::Printer< ::applanix_msgs::DMIData_<ContainerAllocator> >::stream(s, "", v); 00187 return s;} 00188 00189 } // namespace applanix_msgs 00190 00191 namespace ros 00192 { 00193 namespace message_traits 00194 { 00195 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::DMIData_<ContainerAllocator> > : public TrueType {}; 00196 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::DMIData_<ContainerAllocator> const> : public TrueType {}; 00197 template<class ContainerAllocator> 00198 struct MD5Sum< ::applanix_msgs::DMIData_<ContainerAllocator> > { 00199 static const char* value() 00200 { 00201 return "2feef48ec7606bd895e47a3ec03e1841"; 00202 } 00203 00204 static const char* value(const ::applanix_msgs::DMIData_<ContainerAllocator> &) { return value(); } 00205 static const uint64_t static_value1 = 0x2feef48ec7606bd8ULL; 00206 static const uint64_t static_value2 = 0x95e47a3ec03e1841ULL; 00207 }; 00208 00209 template<class ContainerAllocator> 00210 struct DataType< ::applanix_msgs::DMIData_<ContainerAllocator> > { 00211 static const char* value() 00212 { 00213 return "applanix_msgs/DMIData"; 00214 } 00215 00216 static const char* value(const ::applanix_msgs::DMIData_<ContainerAllocator> &) { return value(); } 00217 }; 00218 00219 template<class ContainerAllocator> 00220 struct Definition< ::applanix_msgs::DMIData_<ContainerAllocator> > { 00221 static const char* value() 00222 { 00223 return "# Group 15 \n\ 00224 TimeDistance td\n\ 00225 \n\ 00226 float64 signed_distance\n\ 00227 float64 unsigned_distance\n\ 00228 \n\ 00229 uint16 scale_factor\n\ 00230 \n\ 00231 uint8 STATUS_INVALID=0\n\ 00232 uint8 STATUS_VALID=1\n\ 00233 uint8 STATUS_SCALE_FACTOR_CHANGE=2\n\ 00234 uint8 status\n\ 00235 \n\ 00236 uint8 TYPE_NONE=0\n\ 00237 uint8 TYPE_PULSE_DIR=1\n\ 00238 uint8 TYPE_QUADRATURE=2\n\ 00239 uint8 type\n\ 00240 \n\ 00241 uint8 RATE_50HZ=0\n\ 00242 uint8 RATE_100HZ=1\n\ 00243 uint8 RATE_200HZ=2\n\ 00244 uint8 RATE_400HZ=3\n\ 00245 uint8 RATE_125HZ=4\n\ 00246 uint8 rate\n\ 00247 \n\ 00248 ================================================================================\n\ 00249 MSG: applanix_msgs/TimeDistance\n\ 00250 float64 time1\n\ 00251 float64 time2\n\ 00252 float64 distance\n\ 00253 uint8 time_types\n\ 00254 uint8 distance_type\n\ 00255 \n\ 00256 "; 00257 } 00258 00259 static const char* value(const ::applanix_msgs::DMIData_<ContainerAllocator> &) { return value(); } 00260 }; 00261 00262 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::DMIData_<ContainerAllocator> > : public TrueType {}; 00263 } // namespace message_traits 00264 } // namespace ros 00265 00266 namespace ros 00267 { 00268 namespace serialization 00269 { 00270 00271 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::DMIData_<ContainerAllocator> > 00272 { 00273 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00274 { 00275 stream.next(m.td); 00276 stream.next(m.signed_distance); 00277 stream.next(m.unsigned_distance); 00278 stream.next(m.scale_factor); 00279 stream.next(m.status); 00280 stream.next(m.type); 00281 stream.next(m.rate); 00282 } 00283 00284 ROS_DECLARE_ALLINONE_SERIALIZER; 00285 }; // struct DMIData_ 00286 } // namespace serialization 00287 } // namespace ros 00288 00289 namespace ros 00290 { 00291 namespace message_operations 00292 { 00293 00294 template<class ContainerAllocator> 00295 struct Printer< ::applanix_msgs::DMIData_<ContainerAllocator> > 00296 { 00297 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::DMIData_<ContainerAllocator> & v) 00298 { 00299 s << indent << "td: "; 00300 s << std::endl; 00301 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00302 s << indent << "signed_distance: "; 00303 Printer<double>::stream(s, indent + " ", v.signed_distance); 00304 s << indent << "unsigned_distance: "; 00305 Printer<double>::stream(s, indent + " ", v.unsigned_distance); 00306 s << indent << "scale_factor: "; 00307 Printer<uint16_t>::stream(s, indent + " ", v.scale_factor); 00308 s << indent << "status: "; 00309 Printer<uint8_t>::stream(s, indent + " ", v.status); 00310 s << indent << "type: "; 00311 Printer<uint8_t>::stream(s, indent + " ", v.type); 00312 s << indent << "rate: "; 00313 Printer<uint8_t>::stream(s, indent + " ", v.rate); 00314 } 00315 }; 00316 00317 00318 } // namespace message_operations 00319 } // namespace ros 00320 00321 #endif // APPLANIX_MSGS_MESSAGE_DMIDATA_H 00322