$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/TorsoOdometry.msg */ 00002 #ifndef NAO_MSGS_MESSAGE_TORSOODOMETRY_H 00003 #define NAO_MSGS_MESSAGE_TORSOODOMETRY_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 TorsoOdometry_ { 00023 typedef TorsoOdometry_<ContainerAllocator> Type; 00024 00025 TorsoOdometry_() 00026 : header() 00027 , x(0.0) 00028 , y(0.0) 00029 , z(0.0) 00030 , wx(0.0) 00031 , wy(0.0) 00032 , wz(0.0) 00033 { 00034 } 00035 00036 TorsoOdometry_(const ContainerAllocator& _alloc) 00037 : header(_alloc) 00038 , x(0.0) 00039 , y(0.0) 00040 , z(0.0) 00041 , wx(0.0) 00042 , wy(0.0) 00043 , wz(0.0) 00044 { 00045 } 00046 00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00048 ::std_msgs::Header_<ContainerAllocator> header; 00049 00050 typedef float _x_type; 00051 float x; 00052 00053 typedef float _y_type; 00054 float y; 00055 00056 typedef float _z_type; 00057 float z; 00058 00059 typedef float _wx_type; 00060 float wx; 00061 00062 typedef float _wy_type; 00063 float wy; 00064 00065 typedef float _wz_type; 00066 float wz; 00067 00068 00069 private: 00070 static const char* __s_getDataType_() { return "nao_msgs/TorsoOdometry"; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00073 00074 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00075 00076 private: 00077 static const char* __s_getMD5Sum_() { return "1f66dc501c9b69278147e3b32257e58c"; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00080 00081 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00082 00083 private: 00084 static const char* __s_getMessageDefinition_() { return "# Data from Nao's torso odometry estimate based on joint kinematics\n\ 00085 #\n\ 00086 # x, y, z: position of torso in odometry frame\n\ 00087 # wx, wy, wz: attitude of torso around x, y, z axis\n\ 00088 \n\ 00089 Header header\n\ 00090 \n\ 00091 float32 x\n\ 00092 float32 y\n\ 00093 float32 z\n\ 00094 float32 wx\n\ 00095 float32 wy\n\ 00096 float32 wz\n\ 00097 ================================================================================\n\ 00098 MSG: std_msgs/Header\n\ 00099 # Standard metadata for higher-level stamped data types.\n\ 00100 # This is generally used to communicate timestamped data \n\ 00101 # in a particular coordinate frame.\n\ 00102 # \n\ 00103 # sequence ID: consecutively increasing ID \n\ 00104 uint32 seq\n\ 00105 #Two-integer timestamp that is expressed as:\n\ 00106 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00107 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00108 # time-handling sugar is provided by the client library\n\ 00109 time stamp\n\ 00110 #Frame this data is associated with\n\ 00111 # 0: no frame\n\ 00112 # 1: global frame\n\ 00113 string frame_id\n\ 00114 \n\ 00115 "; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00118 00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00122 { 00123 ros::serialization::OStream stream(write_ptr, 1000000000); 00124 ros::serialization::serialize(stream, header); 00125 ros::serialization::serialize(stream, x); 00126 ros::serialization::serialize(stream, y); 00127 ros::serialization::serialize(stream, z); 00128 ros::serialization::serialize(stream, wx); 00129 ros::serialization::serialize(stream, wy); 00130 ros::serialization::serialize(stream, wz); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00135 { 00136 ros::serialization::IStream stream(read_ptr, 1000000000); 00137 ros::serialization::deserialize(stream, header); 00138 ros::serialization::deserialize(stream, x); 00139 ros::serialization::deserialize(stream, y); 00140 ros::serialization::deserialize(stream, z); 00141 ros::serialization::deserialize(stream, wx); 00142 ros::serialization::deserialize(stream, wy); 00143 ros::serialization::deserialize(stream, wz); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint32_t serializationLength() const 00148 { 00149 uint32_t size = 0; 00150 size += ros::serialization::serializationLength(header); 00151 size += ros::serialization::serializationLength(x); 00152 size += ros::serialization::serializationLength(y); 00153 size += ros::serialization::serializationLength(z); 00154 size += ros::serialization::serializationLength(wx); 00155 size += ros::serialization::serializationLength(wy); 00156 size += ros::serialization::serializationLength(wz); 00157 return size; 00158 } 00159 00160 typedef boost::shared_ptr< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > Ptr; 00161 typedef boost::shared_ptr< ::nao_msgs::TorsoOdometry_<ContainerAllocator> const> ConstPtr; 00162 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00163 }; // struct TorsoOdometry 00164 typedef ::nao_msgs::TorsoOdometry_<std::allocator<void> > TorsoOdometry; 00165 00166 typedef boost::shared_ptr< ::nao_msgs::TorsoOdometry> TorsoOdometryPtr; 00167 typedef boost::shared_ptr< ::nao_msgs::TorsoOdometry const> TorsoOdometryConstPtr; 00168 00169 00170 template<typename ContainerAllocator> 00171 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::TorsoOdometry_<ContainerAllocator> & v) 00172 { 00173 ros::message_operations::Printer< ::nao_msgs::TorsoOdometry_<ContainerAllocator> >::stream(s, "", v); 00174 return s;} 00175 00176 } // namespace nao_msgs 00177 00178 namespace ros 00179 { 00180 namespace message_traits 00181 { 00182 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > : public TrueType {}; 00183 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TorsoOdometry_<ContainerAllocator> const> : public TrueType {}; 00184 template<class ContainerAllocator> 00185 struct MD5Sum< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "1f66dc501c9b69278147e3b32257e58c"; 00189 } 00190 00191 static const char* value(const ::nao_msgs::TorsoOdometry_<ContainerAllocator> &) { return value(); } 00192 static const uint64_t static_value1 = 0x1f66dc501c9b6927ULL; 00193 static const uint64_t static_value2 = 0x8147e3b32257e58cULL; 00194 }; 00195 00196 template<class ContainerAllocator> 00197 struct DataType< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > { 00198 static const char* value() 00199 { 00200 return "nao_msgs/TorsoOdometry"; 00201 } 00202 00203 static const char* value(const ::nao_msgs::TorsoOdometry_<ContainerAllocator> &) { return value(); } 00204 }; 00205 00206 template<class ContainerAllocator> 00207 struct Definition< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > { 00208 static const char* value() 00209 { 00210 return "# Data from Nao's torso odometry estimate based on joint kinematics\n\ 00211 #\n\ 00212 # x, y, z: position of torso in odometry frame\n\ 00213 # wx, wy, wz: attitude of torso around x, y, z axis\n\ 00214 \n\ 00215 Header header\n\ 00216 \n\ 00217 float32 x\n\ 00218 float32 y\n\ 00219 float32 z\n\ 00220 float32 wx\n\ 00221 float32 wy\n\ 00222 float32 wz\n\ 00223 ================================================================================\n\ 00224 MSG: std_msgs/Header\n\ 00225 # Standard metadata for higher-level stamped data types.\n\ 00226 # This is generally used to communicate timestamped data \n\ 00227 # in a particular coordinate frame.\n\ 00228 # \n\ 00229 # sequence ID: consecutively increasing ID \n\ 00230 uint32 seq\n\ 00231 #Two-integer timestamp that is expressed as:\n\ 00232 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00233 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00234 # time-handling sugar is provided by the client library\n\ 00235 time stamp\n\ 00236 #Frame this data is associated with\n\ 00237 # 0: no frame\n\ 00238 # 1: global frame\n\ 00239 string frame_id\n\ 00240 \n\ 00241 "; 00242 } 00243 00244 static const char* value(const ::nao_msgs::TorsoOdometry_<ContainerAllocator> &) { return value(); } 00245 }; 00246 00247 template<class ContainerAllocator> struct HasHeader< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > : public TrueType {}; 00248 template<class ContainerAllocator> struct HasHeader< const ::nao_msgs::TorsoOdometry_<ContainerAllocator> > : public TrueType {}; 00249 } // namespace message_traits 00250 } // namespace ros 00251 00252 namespace ros 00253 { 00254 namespace serialization 00255 { 00256 00257 template<class ContainerAllocator> struct Serializer< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > 00258 { 00259 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00260 { 00261 stream.next(m.header); 00262 stream.next(m.x); 00263 stream.next(m.y); 00264 stream.next(m.z); 00265 stream.next(m.wx); 00266 stream.next(m.wy); 00267 stream.next(m.wz); 00268 } 00269 00270 ROS_DECLARE_ALLINONE_SERIALIZER; 00271 }; // struct TorsoOdometry_ 00272 } // namespace serialization 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace message_operations 00278 { 00279 00280 template<class ContainerAllocator> 00281 struct Printer< ::nao_msgs::TorsoOdometry_<ContainerAllocator> > 00282 { 00283 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::TorsoOdometry_<ContainerAllocator> & v) 00284 { 00285 s << indent << "header: "; 00286 s << std::endl; 00287 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00288 s << indent << "x: "; 00289 Printer<float>::stream(s, indent + " ", v.x); 00290 s << indent << "y: "; 00291 Printer<float>::stream(s, indent + " ", v.y); 00292 s << indent << "z: "; 00293 Printer<float>::stream(s, indent + " ", v.z); 00294 s << indent << "wx: "; 00295 Printer<float>::stream(s, indent + " ", v.wx); 00296 s << indent << "wy: "; 00297 Printer<float>::stream(s, indent + " ", v.wy); 00298 s << indent << "wz: "; 00299 Printer<float>::stream(s, indent + " ", v.wz); 00300 } 00301 }; 00302 00303 00304 } // namespace message_operations 00305 } // namespace ros 00306 00307 #endif // NAO_MSGS_MESSAGE_TORSOODOMETRY_H 00308