26 : voltageMainRobotBattery(0),
27 voltageMainRobotComputer(0),
28 voltageMainRobotBatteryIsValid(false),
29 voltageMainRobotComputerIsValid(false),
30 voltageOtherBatteries(),
31 voltageOtherBatteriesValid()
40 out << voltageMainRobotBattery << voltageMainRobotComputer
41 << voltageMainRobotBatteryIsValid << voltageMainRobotComputerIsValid
42 << voltageOtherBatteries << voltageOtherBatteriesValid << sensorLabel
55 in >> voltageMainRobotBattery >> voltageMainRobotComputer >>
56 voltageMainRobotBatteryIsValid >>
57 voltageMainRobotComputerIsValid >> voltageOtherBatteries >>
58 voltageOtherBatteriesValid;
78 out_sensorPose =
CPose3D(0, 0, 0);
92 "Measured VoltageMainRobotBattery: %.02fV isValid= %s \n",
93 voltageMainRobotBattery,
94 (voltageMainRobotBatteryIsValid ==
true) ?
"True" :
"False");
97 "Measured VoltageMainRobotComputer: %.02fV isValid= %s \n",
98 voltageMainRobotComputer,
99 (voltageMainRobotComputerIsValid ==
true) ?
"True" :
"False");
101 o <<
"VoltageOtherBatteries: \n";
102 for (CVectorDouble::Index i = 0; i < voltageOtherBatteries.size(); i++)
105 "Index: %d --> %.02fV isValid= %s \n",
int(i),
106 voltageOtherBatteries[i],
107 (voltageOtherBatteriesValid[i] ==
true) ?
"True" :
"False");
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
This represents a measurement of the batteries on the robot.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This base provides a set of functions for maths stuff.
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.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
Virtual base class for "archives": classes abstracting I/O streams.
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 serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
#define INVALID_TIMESTAMP
Represents an invalid timestamp, where applicable.
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
#define MRPT_UNUSED_PARAM(a)
Determines whether this is an X86 or AMD64 platform.