MRPT  1.9.9
CObservationBatteryState.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 CObservationBatteryState_H
10 #define CObservationBatteryState_H
11 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/poses/CPose3D.h>
15 #include <mrpt/poses/CPose2D.h>
16 
17 namespace mrpt::obs
18 {
19 /** This represents a measurement of the batteries on the robot.
20  * The battery levels are in volts in the form of the public members:
21  * - voltageMainRobotBattery
22  * - voltageMainRobotComputer
23  * - voltageOtherBatteries
24  *
25  * There are boolean flags for signaling when the corresponding values have
26  *been filled out or not.
27  *
28  * \sa CObservation
29  * \ingroup mrpt_obs_grp
30  */
32 {
34 
35  public:
36  /** Constructor
37  */
39 
40  /** The data members
41  * \sa voltageMainRobotBatteryIsValid,voltageMainRobotComputerIsValid
42  */
44 
45  /** These values must be true if the corresponding fields contain valid
46  * values.
47  * \sa voltageMainRobotBattery,voltageMainRobotComputer
48  */
50 
51  /** The users can use this vector for any arbitrary number of batteries or
52  * any other analog measurements.
53  * \sa voltageOtherBatteriesValid
54  */
56 
57  /** These values must be true if the corresponding fields contain valid
58  * values (it MUST has the same size than voltageOtherBatteries)
59  */
60  std::vector<bool> voltageOtherBatteriesValid;
61 
62  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose)
63  const override; // See base class docs.
64  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose)
65  override; // See base class docs.
67  std::ostream& o) const override; // See base class docs
68 
69 }; // End of class def.
70 
71 }
72 #endif
73 
74 
This represents a measurement of the batteries on the robot.
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction...
Definition: eigen_frwds.h:44
double voltageMainRobotBattery
The data members.
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve 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...
This namespace contains representation of robot actions and observations.
#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
std::vector< bool > voltageOtherBatteriesValid
These values must be true if the corresponding fields contain valid values (it MUST has the same size...
bool voltageMainRobotBatteryIsValid
These values must be true if the corresponding fields contain valid values.
mrpt::math::CVectorDouble voltageOtherBatteries
The users can use this vector for any arbitrary number of batteries or any other analog measurements...



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