Attitude.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-socrob-ros-pkg/doc_stacks/2014-01-06_11-46-09.555949/socrob-ros-pkg/quads/quad_ros/quad_drivers/quad_can_driver/msg/Attitude.msg */
00002 #ifndef QUAD_CAN_DRIVER_MESSAGE_ATTITUDE_H
00003 #define QUAD_CAN_DRIVER_MESSAGE_ATTITUDE_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 
00018 namespace quad_can_driver
00019 {
00020 template <class ContainerAllocator>
00021 struct Attitude_ {
00022   typedef Attitude_<ContainerAllocator> Type;
00023 
00024   Attitude_()
00025   : yaw(0.0)
00026   , pitch(0.0)
00027   , roll(0.0)
00028   {
00029   }
00030 
00031   Attitude_(const ContainerAllocator& _alloc)
00032   : yaw(0.0)
00033   , pitch(0.0)
00034   , roll(0.0)
00035   {
00036   }
00037 
00038   typedef double _yaw_type;
00039   double yaw;
00040 
00041   typedef double _pitch_type;
00042   double pitch;
00043 
00044   typedef double _roll_type;
00045   double roll;
00046 
00047 
00048   typedef boost::shared_ptr< ::quad_can_driver::Attitude_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::quad_can_driver::Attitude_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct Attitude
00052 typedef  ::quad_can_driver::Attitude_<std::allocator<void> > Attitude;
00053 
00054 typedef boost::shared_ptr< ::quad_can_driver::Attitude> AttitudePtr;
00055 typedef boost::shared_ptr< ::quad_can_driver::Attitude const> AttitudeConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::quad_can_driver::Attitude_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::quad_can_driver::Attitude_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace quad_can_driver
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::quad_can_driver::Attitude_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::quad_can_driver::Attitude_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::quad_can_driver::Attitude_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "b6483fb20acb1cba981c486a35a1bdbd";
00077   }
00078 
00079   static const char* value(const  ::quad_can_driver::Attitude_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0xb6483fb20acb1cbaULL;
00081   static const uint64_t static_value2 = 0x981c486a35a1bdbdULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::quad_can_driver::Attitude_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "quad_can_driver/Attitude";
00089   }
00090 
00091   static const char* value(const  ::quad_can_driver::Attitude_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::quad_can_driver::Attitude_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "#Header header\n\
00099 # Yaw input: -pi .. pi (0 = neutral)\n\
00100 float64 yaw\n\
00101 # Pitch input: -pi/4 .. pi/4 (0 = neutral)\n\
00102 float64 pitch\n\
00103 # Roll input: -pi/4 .. pi/4 (0 = neutral)\n\
00104 float64 roll\n\
00105 \n\
00106 ";
00107   }
00108 
00109   static const char* value(const  ::quad_can_driver::Attitude_<ContainerAllocator> &) { return value(); } 
00110 };
00111 
00112 template<class ContainerAllocator> struct IsFixedSize< ::quad_can_driver::Attitude_<ContainerAllocator> > : public TrueType {};
00113 } // namespace message_traits
00114 } // namespace ros
00115 
00116 namespace ros
00117 {
00118 namespace serialization
00119 {
00120 
00121 template<class ContainerAllocator> struct Serializer< ::quad_can_driver::Attitude_<ContainerAllocator> >
00122 {
00123   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00124   {
00125     stream.next(m.yaw);
00126     stream.next(m.pitch);
00127     stream.next(m.roll);
00128   }
00129 
00130   ROS_DECLARE_ALLINONE_SERIALIZER;
00131 }; // struct Attitude_
00132 } // namespace serialization
00133 } // namespace ros
00134 
00135 namespace ros
00136 {
00137 namespace message_operations
00138 {
00139 
00140 template<class ContainerAllocator>
00141 struct Printer< ::quad_can_driver::Attitude_<ContainerAllocator> >
00142 {
00143   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::quad_can_driver::Attitude_<ContainerAllocator> & v) 
00144   {
00145     s << indent << "yaw: ";
00146     Printer<double>::stream(s, indent + "  ", v.yaw);
00147     s << indent << "pitch: ";
00148     Printer<double>::stream(s, indent + "  ", v.pitch);
00149     s << indent << "roll: ";
00150     Printer<double>::stream(s, indent + "  ", v.roll);
00151   }
00152 };
00153 
00154 
00155 } // namespace message_operations
00156 } // namespace ros
00157 
00158 #endif // QUAD_CAN_DRIVER_MESSAGE_ATTITUDE_H
00159 


quad_can_driver
Author(s): Henrique
autogenerated on Mon Jan 6 2014 11:48:02