compass3axis.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-all-iri-ros.pub/doc_stacks/2013-12-06_19-37-16.229269/iri_common_drivers/iri_common_drivers_msgs/msg/compass3axis.msg */
00002 #ifndef IRI_COMMON_DRIVERS_MSGS_MESSAGE_COMPASS3AXIS_H
00003 #define IRI_COMMON_DRIVERS_MSGS_MESSAGE_COMPASS3AXIS_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 iri_common_drivers_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct compass3axis_ {
00023   typedef compass3axis_<ContainerAllocator> Type;
00024 
00025   compass3axis_()
00026   : header()
00027   , angles()
00028   , covariances()
00029   , alarms()
00030   {
00031     angles.assign(0.0);
00032     covariances.assign(0.0);
00033     alarms.assign(false);
00034   }
00035 
00036   compass3axis_(const ContainerAllocator& _alloc)
00037   : header(_alloc)
00038   , angles()
00039   , covariances()
00040   , alarms()
00041   {
00042     angles.assign(0.0);
00043     covariances.assign(0.0);
00044     alarms.assign(false);
00045   }
00046 
00047   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00048    ::std_msgs::Header_<ContainerAllocator>  header;
00049 
00050   typedef boost::array<double, 3>  _angles_type;
00051   boost::array<double, 3>  angles;
00052 
00053   typedef boost::array<double, 9>  _covariances_type;
00054   boost::array<double, 9>  covariances;
00055 
00056   typedef boost::array<uint8_t, 3>  _alarms_type;
00057   boost::array<uint8_t, 3>  alarms;
00058 
00059 
00060   typedef boost::shared_ptr< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> > Ptr;
00061   typedef boost::shared_ptr< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator>  const> ConstPtr;
00062   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00063 }; // struct compass3axis
00064 typedef  ::iri_common_drivers_msgs::compass3axis_<std::allocator<void> > compass3axis;
00065 
00066 typedef boost::shared_ptr< ::iri_common_drivers_msgs::compass3axis> compass3axisPtr;
00067 typedef boost::shared_ptr< ::iri_common_drivers_msgs::compass3axis const> compass3axisConstPtr;
00068 
00069 
00070 template<typename ContainerAllocator>
00071 std::ostream& operator<<(std::ostream& s, const  ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> & v)
00072 {
00073   ros::message_operations::Printer< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> >::stream(s, "", v);
00074   return s;}
00075 
00076 } // namespace iri_common_drivers_msgs
00077 
00078 namespace ros
00079 {
00080 namespace message_traits
00081 {
00082 template<class ContainerAllocator> struct IsMessage< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> > : public TrueType {};
00083 template<class ContainerAllocator> struct IsMessage< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator>  const> : public TrueType {};
00084 template<class ContainerAllocator>
00085 struct MD5Sum< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "a78a36c0da6797b6cab1e7e993c489c3";
00089   }
00090 
00091   static const char* value(const  ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> &) { return value(); } 
00092   static const uint64_t static_value1 = 0xa78a36c0da6797b6ULL;
00093   static const uint64_t static_value2 = 0xcab1e7e993c489c3ULL;
00094 };
00095 
00096 template<class ContainerAllocator>
00097 struct DataType< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> > {
00098   static const char* value() 
00099   {
00100     return "iri_common_drivers_msgs/compass3axis";
00101   }
00102 
00103   static const char* value(const  ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> &) { return value(); } 
00104 };
00105 
00106 template<class ContainerAllocator>
00107 struct Definition< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> > {
00108   static const char* value() 
00109   {
00110     return "# timestamp, frame id\n\
00111 Header header\n\
00112 \n\
00113 # Heading, Pitch, Roll\n\
00114 # [rad/s]\n\
00115 float64[3] angles\n\
00116 \n\
00117 # Heading, Pitch, Roll\n\
00118 float64[9] covariances\n\
00119 \n\
00120 # magnetic for heading, out of range for pitch & roll\n\
00121 bool[3] alarms\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: std_msgs/Header\n\
00125 # Standard metadata for higher-level stamped data types.\n\
00126 # This is generally used to communicate timestamped data \n\
00127 # in a particular coordinate frame.\n\
00128 # \n\
00129 # sequence ID: consecutively increasing ID \n\
00130 uint32 seq\n\
00131 #Two-integer timestamp that is expressed as:\n\
00132 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00133 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00134 # time-handling sugar is provided by the client library\n\
00135 time stamp\n\
00136 #Frame this data is associated with\n\
00137 # 0: no frame\n\
00138 # 1: global frame\n\
00139 string frame_id\n\
00140 \n\
00141 ";
00142   }
00143 
00144   static const char* value(const  ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> &) { return value(); } 
00145 };
00146 
00147 template<class ContainerAllocator> struct HasHeader< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> > : public TrueType {};
00148 template<class ContainerAllocator> struct HasHeader< const ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> > : public TrueType {};
00149 } // namespace message_traits
00150 } // namespace ros
00151 
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156 
00157 template<class ContainerAllocator> struct Serializer< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> >
00158 {
00159   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160   {
00161     stream.next(m.header);
00162     stream.next(m.angles);
00163     stream.next(m.covariances);
00164     stream.next(m.alarms);
00165   }
00166 
00167   ROS_DECLARE_ALLINONE_SERIALIZER;
00168 }; // struct compass3axis_
00169 } // namespace serialization
00170 } // namespace ros
00171 
00172 namespace ros
00173 {
00174 namespace message_operations
00175 {
00176 
00177 template<class ContainerAllocator>
00178 struct Printer< ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> >
00179 {
00180   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::iri_common_drivers_msgs::compass3axis_<ContainerAllocator> & v) 
00181   {
00182     s << indent << "header: ";
00183 s << std::endl;
00184     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00185     s << indent << "angles[]" << std::endl;
00186     for (size_t i = 0; i < v.angles.size(); ++i)
00187     {
00188       s << indent << "  angles[" << i << "]: ";
00189       Printer<double>::stream(s, indent + "  ", v.angles[i]);
00190     }
00191     s << indent << "covariances[]" << std::endl;
00192     for (size_t i = 0; i < v.covariances.size(); ++i)
00193     {
00194       s << indent << "  covariances[" << i << "]: ";
00195       Printer<double>::stream(s, indent + "  ", v.covariances[i]);
00196     }
00197     s << indent << "alarms[]" << std::endl;
00198     for (size_t i = 0; i < v.alarms.size(); ++i)
00199     {
00200       s << indent << "  alarms[" << i << "]: ";
00201       Printer<uint8_t>::stream(s, indent + "  ", v.alarms[i]);
00202     }
00203   }
00204 };
00205 
00206 
00207 } // namespace message_operations
00208 } // namespace ros
00209 
00210 #endif // IRI_COMMON_DRIVERS_MSGS_MESSAGE_COMPASS3AXIS_H
00211 


iri_common_drivers_msgs
Author(s): Marti Morta, mmorta at iri.upc.ed
autogenerated on Fri Dec 6 2013 19:59:38