|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_UPOWERBATTERY_H
10 #define YARP_UPOWERBATTERY_H
15 #include <QDBusInterface>
39 bool close()
override;
49 QDBusInterface *m_interface {
nullptr };
bool getBatteryCharge(double &charge) override
get the battery status of charge
UpowerBattery(UpowerBattery &&)=delete
A base class for nested structures that can be searched.
bool getBatteryInfo(std::string &info) override
get the battery hardware characteristics (e.g.
Interface implemented by all device drivers.
UpowerBattery & operator=(const UpowerBattery &)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
bool getBatteryVoltage(double &voltage) override
Get the instantaneous voltage measurement.
bool getBatteryCurrent(double ¤t) override
Get the instantaneous current measurement.
upowerBattery: A device to view the battery of a linux laptop in YARP using the yarp::dev::IBattery i...
UpowerBattery(const UpowerBattery &)=delete
A generic battery interface.
bool getBatteryTemperature(double &temperature) override
get the battery temperature
UpowerBattery & operator=(UpowerBattery &&)=delete
bool getBatteryStatus(Battery_status &status) override
get the battery status
~UpowerBattery() override=default