DMIData.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-applanix_driver/doc_stacks/2014-01-02_11-02-36.446834/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   typedef boost::shared_ptr< ::applanix_msgs::DMIData_<ContainerAllocator> > Ptr;
00081   typedef boost::shared_ptr< ::applanix_msgs::DMIData_<ContainerAllocator>  const> ConstPtr;
00082   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00083 }; // struct DMIData
00084 typedef  ::applanix_msgs::DMIData_<std::allocator<void> > DMIData;
00085 
00086 typedef boost::shared_ptr< ::applanix_msgs::DMIData> DMIDataPtr;
00087 typedef boost::shared_ptr< ::applanix_msgs::DMIData const> DMIDataConstPtr;
00088 
00089 
00090 template<typename ContainerAllocator>
00091 std::ostream& operator<<(std::ostream& s, const  ::applanix_msgs::DMIData_<ContainerAllocator> & v)
00092 {
00093   ros::message_operations::Printer< ::applanix_msgs::DMIData_<ContainerAllocator> >::stream(s, "", v);
00094   return s;}
00095 
00096 } // namespace applanix_msgs
00097 
00098 namespace ros
00099 {
00100 namespace message_traits
00101 {
00102 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::DMIData_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::DMIData_<ContainerAllocator>  const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::applanix_msgs::DMIData_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "2feef48ec7606bd895e47a3ec03e1841";
00109   }
00110 
00111   static const char* value(const  ::applanix_msgs::DMIData_<ContainerAllocator> &) { return value(); } 
00112   static const uint64_t static_value1 = 0x2feef48ec7606bd8ULL;
00113   static const uint64_t static_value2 = 0x95e47a3ec03e1841ULL;
00114 };
00115 
00116 template<class ContainerAllocator>
00117 struct DataType< ::applanix_msgs::DMIData_<ContainerAllocator> > {
00118   static const char* value() 
00119   {
00120     return "applanix_msgs/DMIData";
00121   }
00122 
00123   static const char* value(const  ::applanix_msgs::DMIData_<ContainerAllocator> &) { return value(); } 
00124 };
00125 
00126 template<class ContainerAllocator>
00127 struct Definition< ::applanix_msgs::DMIData_<ContainerAllocator> > {
00128   static const char* value() 
00129   {
00130     return "# Group 15 \n\
00131 TimeDistance td\n\
00132 \n\
00133 float64 signed_distance\n\
00134 float64 unsigned_distance\n\
00135 \n\
00136 uint16 scale_factor\n\
00137 \n\
00138 uint8 STATUS_INVALID=0\n\
00139 uint8 STATUS_VALID=1\n\
00140 uint8 STATUS_SCALE_FACTOR_CHANGE=2\n\
00141 uint8 status\n\
00142 \n\
00143 uint8 TYPE_NONE=0\n\
00144 uint8 TYPE_PULSE_DIR=1\n\
00145 uint8 TYPE_QUADRATURE=2\n\
00146 uint8 type\n\
00147 \n\
00148 uint8 RATE_50HZ=0\n\
00149 uint8 RATE_100HZ=1\n\
00150 uint8 RATE_200HZ=2\n\
00151 uint8 RATE_400HZ=3\n\
00152 uint8 RATE_125HZ=4\n\
00153 uint8 rate\n\
00154 \n\
00155 ================================================================================\n\
00156 MSG: applanix_msgs/TimeDistance\n\
00157 float64 time1\n\
00158 float64 time2\n\
00159 float64 distance\n\
00160 uint8 time_types\n\
00161 uint8 distance_type\n\
00162 \n\
00163 ";
00164   }
00165 
00166   static const char* value(const  ::applanix_msgs::DMIData_<ContainerAllocator> &) { return value(); } 
00167 };
00168 
00169 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::DMIData_<ContainerAllocator> > : public TrueType {};
00170 } // namespace message_traits
00171 } // namespace ros
00172 
00173 namespace ros
00174 {
00175 namespace serialization
00176 {
00177 
00178 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::DMIData_<ContainerAllocator> >
00179 {
00180   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00181   {
00182     stream.next(m.td);
00183     stream.next(m.signed_distance);
00184     stream.next(m.unsigned_distance);
00185     stream.next(m.scale_factor);
00186     stream.next(m.status);
00187     stream.next(m.type);
00188     stream.next(m.rate);
00189   }
00190 
00191   ROS_DECLARE_ALLINONE_SERIALIZER;
00192 }; // struct DMIData_
00193 } // namespace serialization
00194 } // namespace ros
00195 
00196 namespace ros
00197 {
00198 namespace message_operations
00199 {
00200 
00201 template<class ContainerAllocator>
00202 struct Printer< ::applanix_msgs::DMIData_<ContainerAllocator> >
00203 {
00204   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::applanix_msgs::DMIData_<ContainerAllocator> & v) 
00205   {
00206     s << indent << "td: ";
00207 s << std::endl;
00208     Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + "  ", v.td);
00209     s << indent << "signed_distance: ";
00210     Printer<double>::stream(s, indent + "  ", v.signed_distance);
00211     s << indent << "unsigned_distance: ";
00212     Printer<double>::stream(s, indent + "  ", v.unsigned_distance);
00213     s << indent << "scale_factor: ";
00214     Printer<uint16_t>::stream(s, indent + "  ", v.scale_factor);
00215     s << indent << "status: ";
00216     Printer<uint8_t>::stream(s, indent + "  ", v.status);
00217     s << indent << "type: ";
00218     Printer<uint8_t>::stream(s, indent + "  ", v.type);
00219     s << indent << "rate: ";
00220     Printer<uint8_t>::stream(s, indent + "  ", v.rate);
00221   }
00222 };
00223 
00224 
00225 } // namespace message_operations
00226 } // namespace ros
00227 
00228 #endif // APPLANIX_MSGS_MESSAGE_DMIDATA_H
00229 


applanix_msgs
Author(s): Mike Purvis
autogenerated on Thu Jan 2 2014 11:04:51