$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-alufr-humanoid_stacks/doc_stacks/2013-03-05_11-28-06.315559/nao_robot/nao_msgs/msg/TorsoIMU.msg */ 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 private: 00075 static const char* __s_getDataType_() { return "nao_msgs/TorsoIMU"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00078 00079 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00080 00081 private: 00082 static const char* __s_getMD5Sum_() { return "404112cb51a476613d7a445b4586a894"; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00085 00086 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00087 00088 private: 00089 static const char* __s_getMessageDefinition_() { return "# Data from Nao's IMU, raw and filtered\n\ 00090 \n\ 00091 Header header\n\ 00092 \n\ 00093 # corrected / filtered angle to X axis (roll)\n\ 00094 float32 angleX\n\ 00095 \n\ 00096 # corrected / filtered angle to Y axis (pitch)\n\ 00097 float32 angleY\n\ 00098 \n\ 00099 # Raw data from gyroscopes\n\ 00100 float32 gyroX\n\ 00101 float32 gyroY\n\ 00102 \n\ 00103 # Raw data from accelerometers\n\ 00104 float32 accelX\n\ 00105 float32 accelY\n\ 00106 float32 accelZ\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 public: 00127 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00128 00129 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00130 00131 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00132 { 00133 ros::serialization::OStream stream(write_ptr, 1000000000); 00134 ros::serialization::serialize(stream, header); 00135 ros::serialization::serialize(stream, angleX); 00136 ros::serialization::serialize(stream, angleY); 00137 ros::serialization::serialize(stream, gyroX); 00138 ros::serialization::serialize(stream, gyroY); 00139 ros::serialization::serialize(stream, accelX); 00140 ros::serialization::serialize(stream, accelY); 00141 ros::serialization::serialize(stream, accelZ); 00142 return stream.getData(); 00143 } 00144 00145 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00146 { 00147 ros::serialization::IStream stream(read_ptr, 1000000000); 00148 ros::serialization::deserialize(stream, header); 00149 ros::serialization::deserialize(stream, angleX); 00150 ros::serialization::deserialize(stream, angleY); 00151 ros::serialization::deserialize(stream, gyroX); 00152 ros::serialization::deserialize(stream, gyroY); 00153 ros::serialization::deserialize(stream, accelX); 00154 ros::serialization::deserialize(stream, accelY); 00155 ros::serialization::deserialize(stream, accelZ); 00156 return stream.getData(); 00157 } 00158 00159 ROS_DEPRECATED virtual uint32_t serializationLength() const 00160 { 00161 uint32_t size = 0; 00162 size += ros::serialization::serializationLength(header); 00163 size += ros::serialization::serializationLength(angleX); 00164 size += ros::serialization::serializationLength(angleY); 00165 size += ros::serialization::serializationLength(gyroX); 00166 size += ros::serialization::serializationLength(gyroY); 00167 size += ros::serialization::serializationLength(accelX); 00168 size += ros::serialization::serializationLength(accelY); 00169 size += ros::serialization::serializationLength(accelZ); 00170 return size; 00171 } 00172 00173 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU_<ContainerAllocator> > Ptr; 00174 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU_<ContainerAllocator> const> ConstPtr; 00175 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00176 }; // struct TorsoIMU 00177 typedef ::nao_msgs::TorsoIMU_<std::allocator<void> > TorsoIMU; 00178 00179 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU> TorsoIMUPtr; 00180 typedef boost::shared_ptr< ::nao_msgs::TorsoIMU const> TorsoIMUConstPtr; 00181 00182 00183 template<typename ContainerAllocator> 00184 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::TorsoIMU_<ContainerAllocator> & v) 00185 { 00186 ros::message_operations::Printer< ::nao_msgs::TorsoIMU_<ContainerAllocator> >::stream(s, "", v); 00187 return s;} 00188 00189 } // namespace nao_msgs 00190 00191 namespace ros 00192 { 00193 namespace message_traits 00194 { 00195 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TorsoIMU_<ContainerAllocator> > : public TrueType {}; 00196 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TorsoIMU_<ContainerAllocator> const> : public TrueType {}; 00197 template<class ContainerAllocator> 00198 struct MD5Sum< ::nao_msgs::TorsoIMU_<ContainerAllocator> > { 00199 static const char* value() 00200 { 00201 return "404112cb51a476613d7a445b4586a894"; 00202 } 00203 00204 static const char* value(const ::nao_msgs::TorsoIMU_<ContainerAllocator> &) { return value(); } 00205 static const uint64_t static_value1 = 0x404112cb51a47661ULL; 00206 static const uint64_t static_value2 = 0x3d7a445b4586a894ULL; 00207 }; 00208 00209 template<class ContainerAllocator> 00210 struct DataType< ::nao_msgs::TorsoIMU_<ContainerAllocator> > { 00211 static const char* value() 00212 { 00213 return "nao_msgs/TorsoIMU"; 00214 } 00215 00216 static const char* value(const ::nao_msgs::TorsoIMU_<ContainerAllocator> &) { return value(); } 00217 }; 00218 00219 template<class ContainerAllocator> 00220 struct Definition< ::nao_msgs::TorsoIMU_<ContainerAllocator> > { 00221 static const char* value() 00222 { 00223 return "# Data from Nao's IMU, raw and filtered\n\ 00224 \n\ 00225 Header header\n\ 00226 \n\ 00227 # corrected / filtered angle to X axis (roll)\n\ 00228 float32 angleX\n\ 00229 \n\ 00230 # corrected / filtered angle to Y axis (pitch)\n\ 00231 float32 angleY\n\ 00232 \n\ 00233 # Raw data from gyroscopes\n\ 00234 float32 gyroX\n\ 00235 float32 gyroY\n\ 00236 \n\ 00237 # Raw data from accelerometers\n\ 00238 float32 accelX\n\ 00239 float32 accelY\n\ 00240 float32 accelZ\n\ 00241 ================================================================================\n\ 00242 MSG: std_msgs/Header\n\ 00243 # Standard metadata for higher-level stamped data types.\n\ 00244 # This is generally used to communicate timestamped data \n\ 00245 # in a particular coordinate frame.\n\ 00246 # \n\ 00247 # sequence ID: consecutively increasing ID \n\ 00248 uint32 seq\n\ 00249 #Two-integer timestamp that is expressed as:\n\ 00250 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00251 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00252 # time-handling sugar is provided by the client library\n\ 00253 time stamp\n\ 00254 #Frame this data is associated with\n\ 00255 # 0: no frame\n\ 00256 # 1: global frame\n\ 00257 string frame_id\n\ 00258 \n\ 00259 "; 00260 } 00261 00262 static const char* value(const ::nao_msgs::TorsoIMU_<ContainerAllocator> &) { return value(); } 00263 }; 00264 00265 template<class ContainerAllocator> struct HasHeader< ::nao_msgs::TorsoIMU_<ContainerAllocator> > : public TrueType {}; 00266 template<class ContainerAllocator> struct HasHeader< const ::nao_msgs::TorsoIMU_<ContainerAllocator> > : public TrueType {}; 00267 } // namespace message_traits 00268 } // namespace ros 00269 00270 namespace ros 00271 { 00272 namespace serialization 00273 { 00274 00275 template<class ContainerAllocator> struct Serializer< ::nao_msgs::TorsoIMU_<ContainerAllocator> > 00276 { 00277 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00278 { 00279 stream.next(m.header); 00280 stream.next(m.angleX); 00281 stream.next(m.angleY); 00282 stream.next(m.gyroX); 00283 stream.next(m.gyroY); 00284 stream.next(m.accelX); 00285 stream.next(m.accelY); 00286 stream.next(m.accelZ); 00287 } 00288 00289 ROS_DECLARE_ALLINONE_SERIALIZER; 00290 }; // struct TorsoIMU_ 00291 } // namespace serialization 00292 } // namespace ros 00293 00294 namespace ros 00295 { 00296 namespace message_operations 00297 { 00298 00299 template<class ContainerAllocator> 00300 struct Printer< ::nao_msgs::TorsoIMU_<ContainerAllocator> > 00301 { 00302 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::TorsoIMU_<ContainerAllocator> & v) 00303 { 00304 s << indent << "header: "; 00305 s << std::endl; 00306 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00307 s << indent << "angleX: "; 00308 Printer<float>::stream(s, indent + " ", v.angleX); 00309 s << indent << "angleY: "; 00310 Printer<float>::stream(s, indent + " ", v.angleY); 00311 s << indent << "gyroX: "; 00312 Printer<float>::stream(s, indent + " ", v.gyroX); 00313 s << indent << "gyroY: "; 00314 Printer<float>::stream(s, indent + " ", v.gyroY); 00315 s << indent << "accelX: "; 00316 Printer<float>::stream(s, indent + " ", v.accelX); 00317 s << indent << "accelY: "; 00318 Printer<float>::stream(s, indent + " ", v.accelY); 00319 s << indent << "accelZ: "; 00320 Printer<float>::stream(s, indent + " ", v.accelZ); 00321 } 00322 }; 00323 00324 00325 } // namespace message_operations 00326 } // namespace ros 00327 00328 #endif // NAO_MSGS_MESSAGE_TORSOIMU_H 00329