6#ifndef YARP_DEV_IBATTERY_H
7#define YARP_DEV_IBATTERY_H
32 BATTERY_OK_STANDBY = 0,
33 BATTERY_OK_IN_CHARGE = 1,
34 BATTERY_OK_IN_USE = 2,
35 BATTERY_GENERAL_ERROR = 3,
37 BATTERY_LOW_WARNING = 5,
38 BATTERY_CRITICAL_WARNING = 6
constexpr yarp::conf::vocab32_t VOCAB_IBATTERY
constexpr yarp::conf::vocab32_t VOCAB_BATTERY_INFO
const int BATTERY_TIMEOUT
A generic battery interface.
virtual bool getBatteryCurrent(double ¤t)=0
Get the instantaneous current measurement.
virtual bool getBatteryVoltage(double &voltage)=0
Get the instantaneous voltage measurement.
virtual bool getBatteryInfo(std::string &battery_info)=0
get the battery hardware characteristics (e.g.
virtual bool getBatteryStatus(Battery_status &status)=0
get the battery status
virtual bool getBatteryCharge(double &charge)=0
get the battery status of charge
virtual bool getBatteryTemperature(double &temperature)=0
get the battery temperature
For streams capable of holding different kinds of content, check what they actually have.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
The main, catch-all namespace for YARP.