$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/nav_msgs/msg/Odometry.msg */ 00002 #ifndef NAV_MSGS_MESSAGE_ODOMETRY_H 00003 #define NAV_MSGS_MESSAGE_ODOMETRY_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 #include "geometry_msgs/PoseWithCovariance.h" 00019 #include "geometry_msgs/TwistWithCovariance.h" 00020 00021 namespace nav_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct Odometry_ { 00025 typedef Odometry_<ContainerAllocator> Type; 00026 00027 Odometry_() 00028 : header() 00029 , child_frame_id() 00030 , pose() 00031 , twist() 00032 { 00033 } 00034 00035 Odometry_(const ContainerAllocator& _alloc) 00036 : header(_alloc) 00037 , child_frame_id(_alloc) 00038 , pose(_alloc) 00039 , twist(_alloc) 00040 { 00041 } 00042 00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00044 ::std_msgs::Header_<ContainerAllocator> header; 00045 00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _child_frame_id_type; 00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > child_frame_id; 00048 00049 typedef ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> _pose_type; 00050 ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> pose; 00051 00052 typedef ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> _twist_type; 00053 ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> twist; 00054 00055 00056 private: 00057 static const char* __s_getDataType_() { return "nav_msgs/Odometry"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00060 00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00062 00063 private: 00064 static const char* __s_getMD5Sum_() { return "cd5e73d190d741a2f92e81eda573aca7"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00067 00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00069 00070 private: 00071 static const char* __s_getMessageDefinition_() { return "# This represents an estimate of a position and velocity in free space. \n\ 00072 # The pose in this message should be specified in the coordinate frame given by header.frame_id.\n\ 00073 # The twist in this message should be specified in the coordinate frame given by the child_frame_id\n\ 00074 Header header\n\ 00075 string child_frame_id\n\ 00076 geometry_msgs/PoseWithCovariance pose\n\ 00077 geometry_msgs/TwistWithCovariance twist\n\ 00078 \n\ 00079 ================================================================================\n\ 00080 MSG: std_msgs/Header\n\ 00081 # Standard metadata for higher-level stamped data types.\n\ 00082 # This is generally used to communicate timestamped data \n\ 00083 # in a particular coordinate frame.\n\ 00084 # \n\ 00085 # sequence ID: consecutively increasing ID \n\ 00086 uint32 seq\n\ 00087 #Two-integer timestamp that is expressed as:\n\ 00088 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00089 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00090 # time-handling sugar is provided by the client library\n\ 00091 time stamp\n\ 00092 #Frame this data is associated with\n\ 00093 # 0: no frame\n\ 00094 # 1: global frame\n\ 00095 string frame_id\n\ 00096 \n\ 00097 ================================================================================\n\ 00098 MSG: geometry_msgs/PoseWithCovariance\n\ 00099 # This represents a pose in free space with uncertainty.\n\ 00100 \n\ 00101 Pose pose\n\ 00102 \n\ 00103 # Row-major representation of the 6x6 covariance matrix\n\ 00104 # The orientation parameters use a fixed-axis representation.\n\ 00105 # In order, the parameters are:\n\ 00106 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\ 00107 float64[36] covariance\n\ 00108 \n\ 00109 ================================================================================\n\ 00110 MSG: geometry_msgs/Pose\n\ 00111 # A representation of pose in free space, composed of postion and orientation. \n\ 00112 Point position\n\ 00113 Quaternion orientation\n\ 00114 \n\ 00115 ================================================================================\n\ 00116 MSG: geometry_msgs/Point\n\ 00117 # This contains the position of a point in free space\n\ 00118 float64 x\n\ 00119 float64 y\n\ 00120 float64 z\n\ 00121 \n\ 00122 ================================================================================\n\ 00123 MSG: geometry_msgs/Quaternion\n\ 00124 # This represents an orientation in free space in quaternion form.\n\ 00125 \n\ 00126 float64 x\n\ 00127 float64 y\n\ 00128 float64 z\n\ 00129 float64 w\n\ 00130 \n\ 00131 ================================================================================\n\ 00132 MSG: geometry_msgs/TwistWithCovariance\n\ 00133 # This expresses velocity in free space with uncertianty.\n\ 00134 \n\ 00135 Twist twist\n\ 00136 \n\ 00137 # Row-major representation of the 6x6 covariance matrix\n\ 00138 # The orientation parameters use a fixed-axis representation.\n\ 00139 # In order, the parameters are:\n\ 00140 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\ 00141 float64[36] covariance\n\ 00142 \n\ 00143 ================================================================================\n\ 00144 MSG: geometry_msgs/Twist\n\ 00145 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00146 Vector3 linear\n\ 00147 Vector3 angular\n\ 00148 \n\ 00149 ================================================================================\n\ 00150 MSG: geometry_msgs/Vector3\n\ 00151 # This represents a vector in free space. \n\ 00152 \n\ 00153 float64 x\n\ 00154 float64 y\n\ 00155 float64 z\n\ 00156 "; } 00157 public: 00158 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00159 00160 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00161 00162 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00163 { 00164 ros::serialization::OStream stream(write_ptr, 1000000000); 00165 ros::serialization::serialize(stream, header); 00166 ros::serialization::serialize(stream, child_frame_id); 00167 ros::serialization::serialize(stream, pose); 00168 ros::serialization::serialize(stream, twist); 00169 return stream.getData(); 00170 } 00171 00172 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00173 { 00174 ros::serialization::IStream stream(read_ptr, 1000000000); 00175 ros::serialization::deserialize(stream, header); 00176 ros::serialization::deserialize(stream, child_frame_id); 00177 ros::serialization::deserialize(stream, pose); 00178 ros::serialization::deserialize(stream, twist); 00179 return stream.getData(); 00180 } 00181 00182 ROS_DEPRECATED virtual uint32_t serializationLength() const 00183 { 00184 uint32_t size = 0; 00185 size += ros::serialization::serializationLength(header); 00186 size += ros::serialization::serializationLength(child_frame_id); 00187 size += ros::serialization::serializationLength(pose); 00188 size += ros::serialization::serializationLength(twist); 00189 return size; 00190 } 00191 00192 typedef boost::shared_ptr< ::nav_msgs::Odometry_<ContainerAllocator> > Ptr; 00193 typedef boost::shared_ptr< ::nav_msgs::Odometry_<ContainerAllocator> const> ConstPtr; 00194 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00195 }; // struct Odometry 00196 typedef ::nav_msgs::Odometry_<std::allocator<void> > Odometry; 00197 00198 typedef boost::shared_ptr< ::nav_msgs::Odometry> OdometryPtr; 00199 typedef boost::shared_ptr< ::nav_msgs::Odometry const> OdometryConstPtr; 00200 00201 00202 template<typename ContainerAllocator> 00203 std::ostream& operator<<(std::ostream& s, const ::nav_msgs::Odometry_<ContainerAllocator> & v) 00204 { 00205 ros::message_operations::Printer< ::nav_msgs::Odometry_<ContainerAllocator> >::stream(s, "", v); 00206 return s;} 00207 00208 } // namespace nav_msgs 00209 00210 namespace ros 00211 { 00212 namespace message_traits 00213 { 00214 template<class ContainerAllocator> struct IsMessage< ::nav_msgs::Odometry_<ContainerAllocator> > : public TrueType {}; 00215 template<class ContainerAllocator> struct IsMessage< ::nav_msgs::Odometry_<ContainerAllocator> const> : public TrueType {}; 00216 template<class ContainerAllocator> 00217 struct MD5Sum< ::nav_msgs::Odometry_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "cd5e73d190d741a2f92e81eda573aca7"; 00221 } 00222 00223 static const char* value(const ::nav_msgs::Odometry_<ContainerAllocator> &) { return value(); } 00224 static const uint64_t static_value1 = 0xcd5e73d190d741a2ULL; 00225 static const uint64_t static_value2 = 0xf92e81eda573aca7ULL; 00226 }; 00227 00228 template<class ContainerAllocator> 00229 struct DataType< ::nav_msgs::Odometry_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "nav_msgs/Odometry"; 00233 } 00234 00235 static const char* value(const ::nav_msgs::Odometry_<ContainerAllocator> &) { return value(); } 00236 }; 00237 00238 template<class ContainerAllocator> 00239 struct Definition< ::nav_msgs::Odometry_<ContainerAllocator> > { 00240 static const char* value() 00241 { 00242 return "# This represents an estimate of a position and velocity in free space. \n\ 00243 # The pose in this message should be specified in the coordinate frame given by header.frame_id.\n\ 00244 # The twist in this message should be specified in the coordinate frame given by the child_frame_id\n\ 00245 Header header\n\ 00246 string child_frame_id\n\ 00247 geometry_msgs/PoseWithCovariance pose\n\ 00248 geometry_msgs/TwistWithCovariance twist\n\ 00249 \n\ 00250 ================================================================================\n\ 00251 MSG: std_msgs/Header\n\ 00252 # Standard metadata for higher-level stamped data types.\n\ 00253 # This is generally used to communicate timestamped data \n\ 00254 # in a particular coordinate frame.\n\ 00255 # \n\ 00256 # sequence ID: consecutively increasing ID \n\ 00257 uint32 seq\n\ 00258 #Two-integer timestamp that is expressed as:\n\ 00259 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00260 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00261 # time-handling sugar is provided by the client library\n\ 00262 time stamp\n\ 00263 #Frame this data is associated with\n\ 00264 # 0: no frame\n\ 00265 # 1: global frame\n\ 00266 string frame_id\n\ 00267 \n\ 00268 ================================================================================\n\ 00269 MSG: geometry_msgs/PoseWithCovariance\n\ 00270 # This represents a pose in free space with uncertainty.\n\ 00271 \n\ 00272 Pose pose\n\ 00273 \n\ 00274 # Row-major representation of the 6x6 covariance matrix\n\ 00275 # The orientation parameters use a fixed-axis representation.\n\ 00276 # In order, the parameters are:\n\ 00277 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\ 00278 float64[36] covariance\n\ 00279 \n\ 00280 ================================================================================\n\ 00281 MSG: geometry_msgs/Pose\n\ 00282 # A representation of pose in free space, composed of postion and orientation. \n\ 00283 Point position\n\ 00284 Quaternion orientation\n\ 00285 \n\ 00286 ================================================================================\n\ 00287 MSG: geometry_msgs/Point\n\ 00288 # This contains the position of a point in free space\n\ 00289 float64 x\n\ 00290 float64 y\n\ 00291 float64 z\n\ 00292 \n\ 00293 ================================================================================\n\ 00294 MSG: geometry_msgs/Quaternion\n\ 00295 # This represents an orientation in free space in quaternion form.\n\ 00296 \n\ 00297 float64 x\n\ 00298 float64 y\n\ 00299 float64 z\n\ 00300 float64 w\n\ 00301 \n\ 00302 ================================================================================\n\ 00303 MSG: geometry_msgs/TwistWithCovariance\n\ 00304 # This expresses velocity in free space with uncertianty.\n\ 00305 \n\ 00306 Twist twist\n\ 00307 \n\ 00308 # Row-major representation of the 6x6 covariance matrix\n\ 00309 # The orientation parameters use a fixed-axis representation.\n\ 00310 # In order, the parameters are:\n\ 00311 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\ 00312 float64[36] covariance\n\ 00313 \n\ 00314 ================================================================================\n\ 00315 MSG: geometry_msgs/Twist\n\ 00316 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00317 Vector3 linear\n\ 00318 Vector3 angular\n\ 00319 \n\ 00320 ================================================================================\n\ 00321 MSG: geometry_msgs/Vector3\n\ 00322 # This represents a vector in free space. \n\ 00323 \n\ 00324 float64 x\n\ 00325 float64 y\n\ 00326 float64 z\n\ 00327 "; 00328 } 00329 00330 static const char* value(const ::nav_msgs::Odometry_<ContainerAllocator> &) { return value(); } 00331 }; 00332 00333 template<class ContainerAllocator> struct HasHeader< ::nav_msgs::Odometry_<ContainerAllocator> > : public TrueType {}; 00334 template<class ContainerAllocator> struct HasHeader< const ::nav_msgs::Odometry_<ContainerAllocator> > : public TrueType {}; 00335 } // namespace message_traits 00336 } // namespace ros 00337 00338 namespace ros 00339 { 00340 namespace serialization 00341 { 00342 00343 template<class ContainerAllocator> struct Serializer< ::nav_msgs::Odometry_<ContainerAllocator> > 00344 { 00345 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00346 { 00347 stream.next(m.header); 00348 stream.next(m.child_frame_id); 00349 stream.next(m.pose); 00350 stream.next(m.twist); 00351 } 00352 00353 ROS_DECLARE_ALLINONE_SERIALIZER; 00354 }; // struct Odometry_ 00355 } // namespace serialization 00356 } // namespace ros 00357 00358 namespace ros 00359 { 00360 namespace message_operations 00361 { 00362 00363 template<class ContainerAllocator> 00364 struct Printer< ::nav_msgs::Odometry_<ContainerAllocator> > 00365 { 00366 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nav_msgs::Odometry_<ContainerAllocator> & v) 00367 { 00368 s << indent << "header: "; 00369 s << std::endl; 00370 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00371 s << indent << "child_frame_id: "; 00372 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.child_frame_id); 00373 s << indent << "pose: "; 00374 s << std::endl; 00375 Printer< ::geometry_msgs::PoseWithCovariance_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00376 s << indent << "twist: "; 00377 s << std::endl; 00378 Printer< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >::stream(s, indent + " ", v.twist); 00379 } 00380 }; 00381 00382 00383 } // namespace message_operations 00384 } // namespace ros 00385 00386 #endif // NAV_MSGS_MESSAGE_ODOMETRY_H 00387