IMUData.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/IMUData.msg */
00002 #ifndef APPLANIX_MSGS_MESSAGE_IMUDATA_H
00003 #define APPLANIX_MSGS_MESSAGE_IMUDATA_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 IMUData_ {
00023   typedef IMUData_<ContainerAllocator> Type;
00024 
00025   IMUData_()
00026   : td()
00027   , delta_velocity_x(0)
00028   , delta_velocity_y(0)
00029   , delta_velocity_z(0)
00030   , delta_accel_x(0)
00031   , delta_accel_y(0)
00032   , delta_accel_z(0)
00033   , data_status(0)
00034   , imu_type(0)
00035   , imu_data_rate(0)
00036   , imu_status(0)
00037   {
00038   }
00039 
00040   IMUData_(const ContainerAllocator& _alloc)
00041   : td(_alloc)
00042   , delta_velocity_x(0)
00043   , delta_velocity_y(0)
00044   , delta_velocity_z(0)
00045   , delta_accel_x(0)
00046   , delta_accel_y(0)
00047   , delta_accel_z(0)
00048   , data_status(0)
00049   , imu_type(0)
00050   , imu_data_rate(0)
00051   , imu_status(0)
00052   {
00053   }
00054 
00055   typedef  ::applanix_msgs::TimeDistance_<ContainerAllocator>  _td_type;
00056    ::applanix_msgs::TimeDistance_<ContainerAllocator>  td;
00057 
00058   typedef int32_t _delta_velocity_x_type;
00059   int32_t delta_velocity_x;
00060 
00061   typedef int32_t _delta_velocity_y_type;
00062   int32_t delta_velocity_y;
00063 
00064   typedef int32_t _delta_velocity_z_type;
00065   int32_t delta_velocity_z;
00066 
00067   typedef int32_t _delta_accel_x_type;
00068   int32_t delta_accel_x;
00069 
00070   typedef int32_t _delta_accel_y_type;
00071   int32_t delta_accel_y;
00072 
00073   typedef int32_t _delta_accel_z_type;
00074   int32_t delta_accel_z;
00075 
00076   typedef uint8_t _data_status_type;
00077   uint8_t data_status;
00078 
00079   typedef uint8_t _imu_type_type;
00080   uint8_t imu_type;
00081 
00082   typedef uint8_t _imu_data_rate_type;
00083   uint8_t imu_data_rate;
00084 
00085   typedef uint16_t _imu_status_type;
00086   uint16_t imu_status;
00087 
00088   enum { STATUS_1_BAD_FRAME = 1 };
00089   enum { STATUS_2_BAD_FRAMES = 2 };
00090   enum { STATUS_3_BAD_FRAMES = 4 };
00091 
00092   typedef boost::shared_ptr< ::applanix_msgs::IMUData_<ContainerAllocator> > Ptr;
00093   typedef boost::shared_ptr< ::applanix_msgs::IMUData_<ContainerAllocator>  const> ConstPtr;
00094   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00095 }; // struct IMUData
00096 typedef  ::applanix_msgs::IMUData_<std::allocator<void> > IMUData;
00097 
00098 typedef boost::shared_ptr< ::applanix_msgs::IMUData> IMUDataPtr;
00099 typedef boost::shared_ptr< ::applanix_msgs::IMUData const> IMUDataConstPtr;
00100 
00101 
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const  ::applanix_msgs::IMUData_<ContainerAllocator> & v)
00104 {
00105   ros::message_operations::Printer< ::applanix_msgs::IMUData_<ContainerAllocator> >::stream(s, "", v);
00106   return s;}
00107 
00108 } // namespace applanix_msgs
00109 
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IMUData_<ContainerAllocator> > : public TrueType {};
00115 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IMUData_<ContainerAllocator>  const> : public TrueType {};
00116 template<class ContainerAllocator>
00117 struct MD5Sum< ::applanix_msgs::IMUData_<ContainerAllocator> > {
00118   static const char* value() 
00119   {
00120     return "053d6fea1c52bdd03cea4527050e0a11";
00121   }
00122 
00123   static const char* value(const  ::applanix_msgs::IMUData_<ContainerAllocator> &) { return value(); } 
00124   static const uint64_t static_value1 = 0x053d6fea1c52bdd0ULL;
00125   static const uint64_t static_value2 = 0x3cea4527050e0a11ULL;
00126 };
00127 
00128 template<class ContainerAllocator>
00129 struct DataType< ::applanix_msgs::IMUData_<ContainerAllocator> > {
00130   static const char* value() 
00131   {
00132     return "applanix_msgs/IMUData";
00133   }
00134 
00135   static const char* value(const  ::applanix_msgs::IMUData_<ContainerAllocator> &) { return value(); } 
00136 };
00137 
00138 template<class ContainerAllocator>
00139 struct Definition< ::applanix_msgs::IMUData_<ContainerAllocator> > {
00140   static const char* value() 
00141   {
00142     return "TimeDistance td\n\
00143 \n\
00144 #uint8[24] data\n\
00145 int32 delta_velocity_x\n\
00146 int32 delta_velocity_y\n\
00147 int32 delta_velocity_z\n\
00148 \n\
00149 int32 delta_accel_x\n\
00150 int32 delta_accel_y\n\
00151 int32 delta_accel_z\n\
00152 \n\
00153 # Bitmask\n\
00154 uint8 STATUS_1_BAD_FRAME=1\n\
00155 uint8 STATUS_2_BAD_FRAMES=2\n\
00156 uint8 STATUS_3_BAD_FRAMES=4\n\
00157 uint8 data_status\n\
00158 \n\
00159 uint8 imu_type\n\
00160 uint8 imu_data_rate\n\
00161 uint16 imu_status\n\
00162 \n\
00163 ================================================================================\n\
00164 MSG: applanix_msgs/TimeDistance\n\
00165 float64 time1\n\
00166 float64 time2\n\
00167 float64 distance\n\
00168 uint8 time_types\n\
00169 uint8 distance_type\n\
00170 \n\
00171 ";
00172   }
00173 
00174   static const char* value(const  ::applanix_msgs::IMUData_<ContainerAllocator> &) { return value(); } 
00175 };
00176 
00177 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::IMUData_<ContainerAllocator> > : public TrueType {};
00178 } // namespace message_traits
00179 } // namespace ros
00180 
00181 namespace ros
00182 {
00183 namespace serialization
00184 {
00185 
00186 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::IMUData_<ContainerAllocator> >
00187 {
00188   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00189   {
00190     stream.next(m.td);
00191     stream.next(m.delta_velocity_x);
00192     stream.next(m.delta_velocity_y);
00193     stream.next(m.delta_velocity_z);
00194     stream.next(m.delta_accel_x);
00195     stream.next(m.delta_accel_y);
00196     stream.next(m.delta_accel_z);
00197     stream.next(m.data_status);
00198     stream.next(m.imu_type);
00199     stream.next(m.imu_data_rate);
00200     stream.next(m.imu_status);
00201   }
00202 
00203   ROS_DECLARE_ALLINONE_SERIALIZER;
00204 }; // struct IMUData_
00205 } // namespace serialization
00206 } // namespace ros
00207 
00208 namespace ros
00209 {
00210 namespace message_operations
00211 {
00212 
00213 template<class ContainerAllocator>
00214 struct Printer< ::applanix_msgs::IMUData_<ContainerAllocator> >
00215 {
00216   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::applanix_msgs::IMUData_<ContainerAllocator> & v) 
00217   {
00218     s << indent << "td: ";
00219 s << std::endl;
00220     Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + "  ", v.td);
00221     s << indent << "delta_velocity_x: ";
00222     Printer<int32_t>::stream(s, indent + "  ", v.delta_velocity_x);
00223     s << indent << "delta_velocity_y: ";
00224     Printer<int32_t>::stream(s, indent + "  ", v.delta_velocity_y);
00225     s << indent << "delta_velocity_z: ";
00226     Printer<int32_t>::stream(s, indent + "  ", v.delta_velocity_z);
00227     s << indent << "delta_accel_x: ";
00228     Printer<int32_t>::stream(s, indent + "  ", v.delta_accel_x);
00229     s << indent << "delta_accel_y: ";
00230     Printer<int32_t>::stream(s, indent + "  ", v.delta_accel_y);
00231     s << indent << "delta_accel_z: ";
00232     Printer<int32_t>::stream(s, indent + "  ", v.delta_accel_z);
00233     s << indent << "data_status: ";
00234     Printer<uint8_t>::stream(s, indent + "  ", v.data_status);
00235     s << indent << "imu_type: ";
00236     Printer<uint8_t>::stream(s, indent + "  ", v.imu_type);
00237     s << indent << "imu_data_rate: ";
00238     Printer<uint8_t>::stream(s, indent + "  ", v.imu_data_rate);
00239     s << indent << "imu_status: ";
00240     Printer<uint16_t>::stream(s, indent + "  ", v.imu_status);
00241   }
00242 };
00243 
00244 
00245 } // namespace message_operations
00246 } // namespace ros
00247 
00248 #endif // APPLANIX_MSGS_MESSAGE_IMUDATA_H
00249 


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