Main MRPT website > C++ reference
MRPT logo
obs/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-2015, 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>
15 
16 namespace mrpt
17 {
18 namespace obs
19 {
20  DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE( CObservation6DFeatures, CObservation, OBS_IMPEXP )
21 
22  /** An observation of one or more "features" or "objects", possibly identified with a unique ID, whose relative SE(3) pose is observed with respect to the sensor.
23  * The list of features is stored in \a sensedFeatures
24  * \sa CObservation
25  * \ingroup mrpt_obs_grp
26  */
28  {
29  // This must be added to any CSerializable derived class:
31  public:
32  CObservation6DFeatures( ); //!< Default ctor
33 
34  float minSensorDistance, maxSensorDistance; //!< Information about the sensor
35 
36  /** Each one of the measurements */
38  {
39  mrpt::poses::CPose3D pose; //!< The observed feature SE(3) pose with respect to the sensor
40  int32_t id; //!< The feature ID, or INVALID_LANDMARK_ID if unidentified (default)
41  mrpt::math::CMatrixDouble66 inf_matrix; //!< The inverse of the observation covariance matrix (default:all zeros)
42 
43  TMeasurement(); //!< Ctor with default values
44 
45  MRPT_MAKE_ALIGNED_OPERATOR_NEW // Required because we contain Eigen matrices
46  };
47  std::deque<TMeasurement> sensedFeatures; //!< The list of observed features
48 
49  mrpt::poses::CPose3D sensorPose; //!< The pose of the sensor on the robot/vehicle
50 
51  // See base class docs.
52  void getSensorPose( mrpt::poses::CPose3D &out_sensorPose ) const;
53  // See base class docs.
54  void setSensorPose( const mrpt::poses::CPose3D &newSensorPose );
55  // See base class docs
56  virtual void getDescriptionAsText(std::ostream &o) const;
57 
58  }; // End of class def.
60 
61  } // End of namespace
62 } // End of namespace
63 
64 #endif
#define MRPT_MAKE_ALIGNED_OPERATOR_NEW
Definition: memory.h:112
mrpt::poses::CPose3D sensorPose
The pose of the sensor on the robot/vehicle.
A numeric matrix of compile-time fixed size.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
mrpt::poses::CPose3D pose
The observed feature SE(3) pose with respect to the sensor.
std::deque< TMeasurement > sensedFeatures
The list of observed features.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#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:69
Declares a class that represents any robot's observation.
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)
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)



Page generated by Doxygen 1.8.9.1 for MRPT 1.3.0 SVN: at Sun Sep 13 03:55:12 UTC 2015