MRPT  1.9.9
CObservationBeaconRanges.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 CObservationBeaconRanges_H
10 #define CObservationBeaconRanges_H
11 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/poses/CPoint3D.h>
15 #include <mrpt/poses/CPose2D.h>
16 #include <mrpt/poses/CPose3D.h>
17 
18 namespace mrpt::obs
19 {
20 /** Declares a class derived from "CObservation" that represents one (or more)
21  * range measurements to labeled beacons.
22  * \sa CObservation
23  * \ingroup mrpt_obs_grp
24  */
26 {
28 
29  public:
30  /** ctor */
32 
33  /** Info about sensor */
35  /** The "sigma" of the sensor, assuming a zero-mean Gaussian noise model. */
36  float stdError;
37 
38  /** Each one of the measurements */
39  struct TMeasurement
40  {
43  sensedDistance(0),
45  {
46  }
47 
48  /** Position of the sensor on the robot */
50  /** The sensed range itself (in meters). */
52  /** The ID of the sensed beacon (or INVALID_BEACON_ID if unknown) */
54  };
55 
56  /** The list of observed ranges */
57  std::deque<TMeasurement> sensedData;
58 
59  /** The (X,Y,PHI) pose estimated by the UWB software, for comparison
60  * purposes (Added in streamming version 1) */
62 
63  /** Prints out the contents of the object */
64  void debugPrintOut();
65 
66  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose)
67  const override; // See base class docs.
68  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose)
69  override; // See base class docs.
71  std::ostream& o) const override; // See base class docs
72 
73  /** Easy look-up into the vector sensedData, returns the range for a given
74  * beacon, or 0 if the beacon is not observed */
75  float getSensedRangeByBeaconID(int32_t beaconID);
76 
77 }; // End of class def.
78 
79 }
80 #endif
81 
82 
mrpt::poses::CPose2D auxEstimatePose
The (X,Y,PHI) pose estimated by the UWB software, for comparison purposes (Added in streamming versio...
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
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 represents one (or more) range measurements to labe...
int32_t beaconID
The ID of the sensed beacon (or INVALID_BEACON_ID if unknown)
float getSensedRangeByBeaconID(int32_t beaconID)
Easy look-up into the vector sensedData, returns the range for a given beacon, or 0 if the beacon is ...
std::deque< TMeasurement > sensedData
The list of observed ranges.
This namespace contains representation of robot actions and observations.
A class used to store a 3D point.
Definition: CPoint3D.h:31
float stdError
The "sigma" of the sensor, assuming a zero-mean Gaussian noise model.
float sensedDistance
The sensed range itself (in meters).
#define INVALID_BEACON_ID
Used for CObservationBeaconRange, CBeacon, etc.
Definition: CObservation.h:24
__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 2D pose, including the 2D coordinate point and a heading (phi) angle...
Definition: CPose2D.h:38
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::poses::CPoint3D sensorLocationOnRobot
Position of the sensor on the robot.
void debugPrintOut()
Prints out the contents of the object.
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