MRPT  1.9.9
CObservationVisualLandmarks.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 #ifndef CObservationVisualLandmarks_H
10 #define CObservationVisualLandmarks_H
11 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/poses/CPose3D.h>
15 #include <mrpt/poses/CPose2D.h>
17 
18 namespace mrpt::obs
19 {
20 /** Declares a class derived from "CObservation" that stores a Landmarks Map as
21  * seen from a stereo camera at a given instant of time.
22  *
23  * \sa CLandmarksMap, CObservation
24  * \ingroup mrpt_vision_grp
25  */
27 {
29 
30  public:
31  /** Constructor */
33 
34  /** The 3D pose of the reference camera relative to robot coordinates. */
36  /** The landmarks, with coordinates origin in the camera reference system.
37  */
39 
40  /** Implements the virtual method in charge of finding the likelihood
41  *between this
42  * and another observation, probably only of the same derived class. The
43  *operator
44  * may be asymmetric.
45  *
46  * \param anotherObs The other observation to compute likelihood with.
47  * \param anotherObsPose If known, the belief about the robot pose when the
48  *other observation was taken can be supplied here, or nullptr if it is
49  *unknown.
50  *
51  * \return Returns a likelihood measurement, in the range [0,1].
52  * \exception std::exception On any error, as another observation being of
53  *an invalid class.
54  */
55  float likelihoodWith(
56  const mrpt::obs::CObservation* anotherObs,
57  const mrpt::poses::CPosePDF* anotherObsPose = nullptr) const;
58 
59  // See base class docs
60  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override
61  {
62  out_sensorPose = refCameraPose;
63  }
64  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override
65  {
66  refCameraPose = newSensorPose;
67  }
68  void getDescriptionAsText(std::ostream& o) const override;
69 
70 }; // End of class def.
71 
72 }
73 #endif
74 
75 
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
Declares a class derived from "CObservation" that stores a Landmarks Map as seen from a stereo camera...
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
float likelihoodWith(const mrpt::obs::CObservation *anotherObs, const mrpt::poses::CPosePDF *anotherObsPose=nullptr) const
Implements the virtual method in charge of finding the likelihood between this and another observatio...
A class for storing a map of 3D probabilistic landmarks.
Definition: CLandmarksMap.h:75
This namespace contains representation of robot actions and observations.
Declares a class that represents a probability density function (pdf) of a 2D pose (x...
Definition: CPosePDF.h:39
mrpt::poses::CPose3D refCameraPose
The 3D pose of the reference camera relative to robot coordinates.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:86
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:43
mrpt::maps::CLandmarksMap landmarks
The landmarks, with coordinates origin in the camera reference system.
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020