27 : voltageMainRobotBattery(0),
28 voltageMainRobotComputer(0),
29 voltageMainRobotBatteryIsValid(false),
30 voltageMainRobotComputerIsValid(false),
31 voltageOtherBatteries(),
32 voltageOtherBatteriesValid()
48 out << voltageMainRobotBattery << voltageMainRobotComputer
49 << voltageMainRobotBatteryIsValid << voltageMainRobotComputerIsValid
50 << voltageOtherBatteries << voltageOtherBatteriesValid
51 << sensorLabel << timestamp;
68 in >> voltageMainRobotBattery >> voltageMainRobotComputer >>
69 voltageMainRobotBatteryIsValid >>
70 voltageMainRobotComputerIsValid >> voltageOtherBatteries >>
71 voltageOtherBatteriesValid;
91 out_sensorPose =
CPose3D(0, 0, 0);
105 "Measured VoltageMainRobotBattery: %.02fV isValid= %s \n",
106 voltageMainRobotBattery,
107 (voltageMainRobotBatteryIsValid ==
true) ?
"True" :
"False");
110 "Measured VoltageMainRobotComputer: %.02fV isValid= %s \n",
111 voltageMainRobotComputer,
112 (voltageMainRobotComputerIsValid ==
true) ?
"True" :
"False");
114 o <<
"VoltageOtherBatteries: \n";
115 for (CVectorDouble::Index i = 0; i < voltageOtherBatteries.size(); i++)
118 "Index: %d --> %.02fV isValid= %s \n",
int(i),
119 voltageOtherBatteries[i],
120 (voltageOtherBatteriesValid[i] ==
true) ?
"True" :
"False");
This represents a measurement of the batteries on the robot.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
This base provides a set of functions for maths stuff.
#define MRPT_UNUSED_PARAM(a)
Can be used to avoid "not used parameters" warnings from the compiler.
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
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.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
#define INVALID_TIMESTAMP
Represents an invalid timestamp, where applicable.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Declares a class that represents any robot's observation.
void readFromStream(mrpt::utils::CStream &in, int version) override
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const override
Introduces a pure virtual method responsible for writing to a CStream.
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...