MRPT  1.9.9
CObservation6DFeatures.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 CObservation6DFeatures_H
10 #define CObservation6DFeatures_H
11 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/poses/CPose3D.h>
16 
17 namespace mrpt::obs
18 {
19 /** An observation of one or more "features" or "objects", possibly identified
20  * with a unique ID, whose relative SE(3) pose is observed with respect to the
21  * sensor.
22  * The list of features is stored in \a sensedFeatures
23  * \sa CObservation
24  * \ingroup mrpt_obs_grp
25  */
27 {
29  public:
30  /** Default ctor */
32 
33  /** Information about the sensor */
35 
36  /** Each one of the measurements */
37  struct TMeasurement
38  {
39  /** The observed feature SE(3) pose with respect to the sensor */
41  /** The feature ID, or INVALID_LANDMARK_ID if unidentified (default) */
43  /** The inverse of the observation covariance matrix (default:all zeros)
44  */
46 
47  /** Ctor with default values */
48  TMeasurement();
49 
50  MRPT_MAKE_ALIGNED_OPERATOR_NEW // Required because we contain Eigen
51  // matrices
52  };
53  /** The list of observed features */
55 
56  /** The pose of the sensor on the robot/vehicle */
58 
59  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose)
60  const override; // See base class docs.
61  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose)
62  override; // See base class docs.
64  std::ostream& o) const override; // See base class docs
65 
66 }; // End of class def.
67 
68 }
69 #endif
70 
71 
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
mrpt::poses::CPose3D sensorPose
The pose of the sensor on the robot/vehicle.
float minSensorDistance
Information about the sensor.
#define MRPT_MAKE_ALIGNED_OPERATOR_NEW
Put this macro inside any class with members that require {16,32,64}-byte memory alignment (e...
A numeric matrix of compile-time fixed size.
std::deque< T, mrpt::aligned_allocator_cpp11< T > > aligned_std_deque
mrpt::poses::CPose3D pose
The observed feature SE(3) pose with respect to the sensor.
This namespace contains representation of robot actions and observations.
__int32 int32_t
Definition: rptypes.h:46
#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
An observation of one or more "features" or "objects", possibly identified with a unique ID...
mrpt::math::CMatrixDouble66 inf_matrix
The inverse of the observation covariance matrix (default:all zeros)
int32_t id
The feature ID, or INVALID_LANDMARK_ID if unidentified (default)
mrpt::aligned_std_deque< TMeasurement > sensedFeatures
The list of observed features.
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.



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