RawImu.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-hector_quadrotor/doc_stacks/2014-10-06_00-25-40.723049/hector_quadrotor/hector_uav_msgs/msg/RawImu.msg */
00002 #ifndef HECTOR_UAV_MSGS_MESSAGE_RAWIMU_H
00003 #define HECTOR_UAV_MSGS_MESSAGE_RAWIMU_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 "std_msgs/Header.h"
00018 
00019 namespace hector_uav_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct RawImu_ {
00023   typedef RawImu_<ContainerAllocator> Type;
00024 
00025   RawImu_()
00026   : header()
00027   , angular_velocity()
00028   , linear_acceleration()
00029   {
00030     angular_velocity.assign(0);
00031     linear_acceleration.assign(0);
00032   }
00033 
00034   RawImu_(const ContainerAllocator& _alloc)
00035   : header(_alloc)
00036   , angular_velocity()
00037   , linear_acceleration()
00038   {
00039     angular_velocity.assign(0);
00040     linear_acceleration.assign(0);
00041   }
00042 
00043   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00044    ::std_msgs::Header_<ContainerAllocator>  header;
00045 
00046   typedef boost::array<uint16_t, 3>  _angular_velocity_type;
00047   boost::array<uint16_t, 3>  angular_velocity;
00048 
00049   typedef boost::array<uint16_t, 3>  _linear_acceleration_type;
00050   boost::array<uint16_t, 3>  linear_acceleration;
00051 
00052 
00053   typedef boost::shared_ptr< ::hector_uav_msgs::RawImu_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::hector_uav_msgs::RawImu_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct RawImu
00057 typedef  ::hector_uav_msgs::RawImu_<std::allocator<void> > RawImu;
00058 
00059 typedef boost::shared_ptr< ::hector_uav_msgs::RawImu> RawImuPtr;
00060 typedef boost::shared_ptr< ::hector_uav_msgs::RawImu const> RawImuConstPtr;
00061 
00062 
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const  ::hector_uav_msgs::RawImu_<ContainerAllocator> & v)
00065 {
00066   ros::message_operations::Printer< ::hector_uav_msgs::RawImu_<ContainerAllocator> >::stream(s, "", v);
00067   return s;}
00068 
00069 } // namespace hector_uav_msgs
00070 
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawImu_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RawImu_<ContainerAllocator>  const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::hector_uav_msgs::RawImu_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "0879a838e899792bcf72ccfe7b5595ef";
00082   }
00083 
00084   static const char* value(const  ::hector_uav_msgs::RawImu_<ContainerAllocator> &) { return value(); } 
00085   static const uint64_t static_value1 = 0x0879a838e899792bULL;
00086   static const uint64_t static_value2 = 0xcf72ccfe7b5595efULL;
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct DataType< ::hector_uav_msgs::RawImu_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "hector_uav_msgs/RawImu";
00094   }
00095 
00096   static const char* value(const  ::hector_uav_msgs::RawImu_<ContainerAllocator> &) { return value(); } 
00097 };
00098 
00099 template<class ContainerAllocator>
00100 struct Definition< ::hector_uav_msgs::RawImu_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "Header header\n\
00104 uint16[3] angular_velocity\n\
00105 uint16[3] linear_acceleration\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: std_msgs/Header\n\
00109 # Standard metadata for higher-level stamped data types.\n\
00110 # This is generally used to communicate timestamped data \n\
00111 # in a particular coordinate frame.\n\
00112 # \n\
00113 # sequence ID: consecutively increasing ID \n\
00114 uint32 seq\n\
00115 #Two-integer timestamp that is expressed as:\n\
00116 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00117 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00118 # time-handling sugar is provided by the client library\n\
00119 time stamp\n\
00120 #Frame this data is associated with\n\
00121 # 0: no frame\n\
00122 # 1: global frame\n\
00123 string frame_id\n\
00124 \n\
00125 ";
00126   }
00127 
00128   static const char* value(const  ::hector_uav_msgs::RawImu_<ContainerAllocator> &) { return value(); } 
00129 };
00130 
00131 template<class ContainerAllocator> struct HasHeader< ::hector_uav_msgs::RawImu_<ContainerAllocator> > : public TrueType {};
00132 template<class ContainerAllocator> struct HasHeader< const ::hector_uav_msgs::RawImu_<ContainerAllocator> > : public TrueType {};
00133 } // namespace message_traits
00134 } // namespace ros
00135 
00136 namespace ros
00137 {
00138 namespace serialization
00139 {
00140 
00141 template<class ContainerAllocator> struct Serializer< ::hector_uav_msgs::RawImu_<ContainerAllocator> >
00142 {
00143   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00144   {
00145     stream.next(m.header);
00146     stream.next(m.angular_velocity);
00147     stream.next(m.linear_acceleration);
00148   }
00149 
00150   ROS_DECLARE_ALLINONE_SERIALIZER;
00151 }; // struct RawImu_
00152 } // namespace serialization
00153 } // namespace ros
00154 
00155 namespace ros
00156 {
00157 namespace message_operations
00158 {
00159 
00160 template<class ContainerAllocator>
00161 struct Printer< ::hector_uav_msgs::RawImu_<ContainerAllocator> >
00162 {
00163   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::hector_uav_msgs::RawImu_<ContainerAllocator> & v) 
00164   {
00165     s << indent << "header: ";
00166 s << std::endl;
00167     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00168     s << indent << "angular_velocity[]" << std::endl;
00169     for (size_t i = 0; i < v.angular_velocity.size(); ++i)
00170     {
00171       s << indent << "  angular_velocity[" << i << "]: ";
00172       Printer<uint16_t>::stream(s, indent + "  ", v.angular_velocity[i]);
00173     }
00174     s << indent << "linear_acceleration[]" << std::endl;
00175     for (size_t i = 0; i < v.linear_acceleration.size(); ++i)
00176     {
00177       s << indent << "  linear_acceleration[" << i << "]: ";
00178       Printer<uint16_t>::stream(s, indent + "  ", v.linear_acceleration[i]);
00179     }
00180   }
00181 };
00182 
00183 
00184 } // namespace message_operations
00185 } // namespace ros
00186 
00187 #endif // HECTOR_UAV_MSGS_MESSAGE_RAWIMU_H
00188 


hector_uav_msgs
Author(s): Johannes Meyer
autogenerated on Mon Oct 6 2014 00:29:22