Go to the documentation of this file.00001
00002 #ifndef NAO_MSGS_MESSAGE_TORSOIMU_H
00003 #define NAO_MSGS_MESSAGE_TORSOIMU_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 nao_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct TorsoIMU_ {
00023 typedef TorsoIMU_<ContainerAllocator> Type;
00024
00025 TorsoIMU_()
00026 : header()
00027 , angleX(0.0)
00028 , angleY(0.0)
00029 , gyroX(0.0)
00030 , gyroY(0.0)
00031 , accelX(0.0)
00032 , accelY(0.0)
00033 , accelZ(0.0)
00034 {
00035 }
00036
00037 TorsoIMU_(const ContainerAllocator& _alloc)
00038 : header(_alloc)
00039 , angleX(0.0)
00040 , angleY(0.0)
00041 , gyroX(0.0)
00042 , gyroY(0.0)
00043 , accelX(0.0)
00044 , accelY(0.0)
00045 , accelZ(0.0)
00046 {
00047 }
00048
00049 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00050 ::std_msgs::Header_<ContainerAllocator> header;
00051
00052 typedef float _angleX_type;
00053 float angleX;
00054
00055 typedef float _angleY_type;
00056 float angleY;
00057
00058 typedef float _gyroX_type;
00059 float gyroX;
00060
00061 typedef float _gyroY_type;
00062 float gyroY;
00063
00064 typedef float _accelX_type;
00065 float accelX;
00066
00067 typedef float _accelY_type;
00068 float accelY;
00069
00070 typedef float _accelZ_type;
00071 float accelZ;
00072
00073
00074 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU_<ContainerAllocator> > Ptr;
00075 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU_<ContainerAllocator> const> ConstPtr;
00076 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00077 };
00078 typedef ::nao_msgs::TorsoIMU_<std::allocator<void> > TorsoIMU;
00079
00080 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU> TorsoIMUPtr;
00081 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU const> TorsoIMUConstPtr;
00082
00083
00084 template<typename ContainerAllocator>
00085 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::TorsoIMU_<ContainerAllocator> & v)
00086 {
00087 ros::message_operations::Printer< ::nao_msgs::TorsoIMU_<ContainerAllocator> >::stream(s, "", v);
00088 return s;}
00089
00090 }
00091
00092 namespace ros
00093 {
00094 namespace message_traits
00095 {
00096 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TorsoIMU_<ContainerAllocator> > : public TrueType {};
00097 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TorsoIMU_<ContainerAllocator> const> : public TrueType {};
00098 template<class ContainerAllocator>
00099 struct MD5Sum< ::nao_msgs::TorsoIMU_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "404112cb51a476613d7a445b4586a894";
00103 }
00104
00105 static const char* value(const ::nao_msgs::TorsoIMU_<ContainerAllocator> &) { return value(); }
00106 static const uint64_t static_value1 = 0x404112cb51a47661ULL;
00107 static const uint64_t static_value2 = 0x3d7a445b4586a894ULL;
00108 };
00109
00110 template<class ContainerAllocator>
00111 struct DataType< ::nao_msgs::TorsoIMU_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "nao_msgs/TorsoIMU";
00115 }
00116
00117 static const char* value(const ::nao_msgs::TorsoIMU_<ContainerAllocator> &) { return value(); }
00118 };
00119
00120 template<class ContainerAllocator>
00121 struct Definition< ::nao_msgs::TorsoIMU_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "# Data from Nao's IMU, raw and filtered\n\
00125 \n\
00126 Header header\n\
00127 \n\
00128 # corrected / filtered angle to X axis (roll)\n\
00129 float32 angleX\n\
00130 \n\
00131 # corrected / filtered angle to Y axis (pitch)\n\
00132 float32 angleY\n\
00133 \n\
00134 # Raw data from gyroscopes\n\
00135 float32 gyroX\n\
00136 float32 gyroY\n\
00137 \n\
00138 # Raw data from accelerometers\n\
00139 float32 accelX\n\
00140 float32 accelY\n\
00141 float32 accelZ\n\
00142 ================================================================================\n\
00143 MSG: std_msgs/Header\n\
00144 # Standard metadata for higher-level stamped data types.\n\
00145 # This is generally used to communicate timestamped data \n\
00146 # in a particular coordinate frame.\n\
00147 # \n\
00148 # sequence ID: consecutively increasing ID \n\
00149 uint32 seq\n\
00150 #Two-integer timestamp that is expressed as:\n\
00151 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00152 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00153 # time-handling sugar is provided by the client library\n\
00154 time stamp\n\
00155 #Frame this data is associated with\n\
00156 # 0: no frame\n\
00157 # 1: global frame\n\
00158 string frame_id\n\
00159 \n\
00160 ";
00161 }
00162
00163 static const char* value(const ::nao_msgs::TorsoIMU_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator> struct HasHeader< ::nao_msgs::TorsoIMU_<ContainerAllocator> > : public TrueType {};
00167 template<class ContainerAllocator> struct HasHeader< const ::nao_msgs::TorsoIMU_<ContainerAllocator> > : public TrueType {};
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace serialization
00174 {
00175
00176 template<class ContainerAllocator> struct Serializer< ::nao_msgs::TorsoIMU_<ContainerAllocator> >
00177 {
00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00179 {
00180 stream.next(m.header);
00181 stream.next(m.angleX);
00182 stream.next(m.angleY);
00183 stream.next(m.gyroX);
00184 stream.next(m.gyroY);
00185 stream.next(m.accelX);
00186 stream.next(m.accelY);
00187 stream.next(m.accelZ);
00188 }
00189
00190 ROS_DECLARE_ALLINONE_SERIALIZER;
00191 };
00192 }
00193 }
00194
00195 namespace ros
00196 {
00197 namespace message_operations
00198 {
00199
00200 template<class ContainerAllocator>
00201 struct Printer< ::nao_msgs::TorsoIMU_<ContainerAllocator> >
00202 {
00203 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::TorsoIMU_<ContainerAllocator> & v)
00204 {
00205 s << indent << "header: ";
00206 s << std::endl;
00207 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00208 s << indent << "angleX: ";
00209 Printer<float>::stream(s, indent + " ", v.angleX);
00210 s << indent << "angleY: ";
00211 Printer<float>::stream(s, indent + " ", v.angleY);
00212 s << indent << "gyroX: ";
00213 Printer<float>::stream(s, indent + " ", v.gyroX);
00214 s << indent << "gyroY: ";
00215 Printer<float>::stream(s, indent + " ", v.gyroY);
00216 s << indent << "accelX: ";
00217 Printer<float>::stream(s, indent + " ", v.accelX);
00218 s << indent << "accelY: ";
00219 Printer<float>::stream(s, indent + " ", v.accelY);
00220 s << indent << "accelZ: ";
00221 Printer<float>::stream(s, indent + " ", v.accelZ);
00222 }
00223 };
00224
00225
00226 }
00227 }
00228
00229 #endif // NAO_MSGS_MESSAGE_TORSOIMU_H
00230