6#ifndef YARP_DEV_IBATTERY_H
7#define YARP_DEV_IBATTERY_H
30 BATTERY_OK_STANDBY = 0,
31 BATTERY_OK_IN_CHARGE = 1,
32 BATTERY_OK_IN_USE = 2,
33 BATTERY_GENERAL_ERROR = 3,
35 BATTERY_LOW_WARNING = 5,
36 BATTERY_CRITICAL_WARNING = 6
A generic battery interface.
virtual yarp::dev::ReturnValue getBatteryTemperature(double &temperature)=0
get the battery temperature
virtual yarp::dev::ReturnValue getBatteryInfo(std::string &battery_info)=0
get the battery hardware characteristics (e.g.
virtual yarp::dev::ReturnValue getBatteryCharge(double &charge)=0
get the battery status of charge
virtual yarp::dev::ReturnValue getBatteryStatus(Battery_status &status)=0
get the battery status
virtual yarp::dev::ReturnValue getBatteryCurrent(double ¤t)=0
Get the instantaneous current measurement.
virtual yarp::dev::ReturnValue getBatteryVoltage(double &voltage)=0
Get the instantaneous voltage measurement.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.