Main MRPT website > C++ reference for MRPT 1.9.9
CObservationOdometry.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #ifndef CObservationOdometry_H
11 #define CObservationOdometry_H
12 
14 #include <mrpt/obs/CObservation.h>
15 #include <mrpt/poses/CPose2D.h>
16 #include <mrpt/poses/CPose3D.h>
18 
19 namespace mrpt
20 {
21 namespace obs
22 {
23 /** An observation of the current (cumulative) odometry for a wheeled robot.
24  * This kind of observation will only occur in a "observation-only" rawlog
25  * file, otherwise
26  * odometry are modeled with actions. Refer to the <a
27  * href="http://www.mrpt.org/Rawlog_Format">page on rawlogs</a>.
28  *
29  * \sa CObservation, CActionRobotMovement2D
30  * \ingroup mrpt_obs_grp
31  */
33 {
35 
36  public:
37  /** Default ctor */
39 
40  /** The absolute odometry measurement (IT IS NOT INCREMENTAL) */
42 
43  /** "true" means that "encoderLeftTicks" and "encoderRightTicks" contain
44  * valid values. */
46  /** For differential-driven robots: The ticks count for each wheel in
47  * ABSOLUTE VALUE (IT IS NOT INCREMENTAL) (positive means FORWARD, for both
48  * wheels); \sa hasEncodersInfo */
50 
51  /** "true" means that `velocityLocal` contains valid values. */
53  /** Velocity, in the robot (local) frame of reference (+X=forward). */
55 
56  // See base class docs
57  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override
58  {
59  out_sensorPose = mrpt::poses::CPose3D(0, 0, 0);
60  }
61  void setSensorPose(const mrpt::poses::CPose3D&) override {}
62  void getDescriptionAsText(std::ostream& o) const override;
63 
64 }; // End of class def.
65 
66 } // End of namespace
67 } // End of namespace
68 
69 #endif
mrpt::obs::CObservationOdometry::odometry
mrpt::poses::CPose2D odometry
The absolute odometry measurement (IT IS NOT INCREMENTAL)
Definition: CObservationOdometry.h:41
mrpt::obs::CObservationOdometry::encoderRightTicks
int32_t encoderRightTicks
Definition: CObservationOdometry.h:49
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
CPose2D.h
lightweight_geom_data.h
mrpt::obs::CObservationOdometry
An observation of the current (cumulative) odometry for a wheeled robot.
Definition: CObservationOdometry.h:32
mrpt::obs::CObservationOdometry::getSensorPose
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
Definition: CObservationOdometry.h:57
mrpt::obs::CObservationOdometry::CObservationOdometry
CObservationOdometry()
Default ctor.
Definition: CObservationOdometry.cpp:24
mrpt::poses::CPose2D
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle.
Definition: CPose2D.h:40
mrpt::obs::CObservationOdometry::hasEncodersInfo
bool hasEncodersInfo
"true" means that "encoderLeftTicks" and "encoderRightTicks" contain valid values.
Definition: CObservationOdometry.h:45
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:88
mrpt::obs::CObservationOdometry::encoderLeftTicks
int32_t encoderLeftTicks
For differential-driven robots: The ticks count for each wheel in ABSOLUTE VALUE (IT IS NOT INCREMENT...
Definition: CObservationOdometry.h:49
mrpt::obs::CObservationOdometry::setSensorPose
void setSensorPose(const mrpt::poses::CPose3D &) override
A general method to change the sensor pose on the robot.
Definition: CObservationOdometry.h:61
CPose3D.h
int32_t
__int32 int32_t
Definition: rptypes.h:46
CObservation.h
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:102
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition: CObservation.h:43
CSerializable.h
mrpt::obs::CObservationOdometry::velocityLocal
mrpt::math::TTwist2D velocityLocal
Velocity, in the robot (local) frame of reference (+X=forward).
Definition: CObservationOdometry.h:54
mrpt::obs::CObservationOdometry::getDescriptionAsText
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
Definition: CObservationOdometry.cpp:91
mrpt::math::TTwist2D
2D twist: 2D velocity vector (vx,vy) + planar angular velocity (omega)
Definition: lightweight_geom_data.h:2145
mrpt::obs::CObservationOdometry::hasVelocities
bool hasVelocities
"true" means that velocityLocal contains valid values.
Definition: CObservationOdometry.h:52



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST