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