|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_IBATTERY_H
10 #define YARP_DEV_IBATTERY_H
37 BATTERY_OK_STANBY = 0,
38 BATTERY_OK_IN_CHARGE = 1,
39 BATTERY_OK_IN_USE = 2,
40 BATTERY_GENERAL_ERROR = 3,
42 BATTERY_LOW_WARNING = 5,
43 BATTERY_CRITICAL_WARNING = 6
91 #endif // YARP_DEV_IBATTERY_H
virtual bool getBatteryInfo(std::string &battery_info)=0
get the battery hardware characteristics (e.g.
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
virtual bool getBatteryStatus(Battery_status &status)=0
get the battery status
virtual bool getBatteryTemperature(double &temperature)=0
get the battery temperature
constexpr yarp::conf::vocab32_t VOCAB_BATTERY_INFO
const int BATTERY_TIMEOUT
constexpr yarp::conf::vocab32_t VOCAB_IBATTERY
virtual bool getBatteryCurrent(double ¤t)=0
Get the instantaneous current measurement.
virtual bool getBatteryVoltage(double &voltage)=0
Get the instantaneous voltage measurement.
A generic battery interface.
The main, catch-all namespace for YARP.
virtual bool getBatteryCharge(double &charge)=0
get the battery status of charge