17 #ifndef _GAZEBO_BATTERY_PRIVATE_HH_
18 #define _GAZEBO_BATTERY_PRIVATE_HH_
48 public: std::function<double (const BatteryPtr)>
updateFunc;
uint32_t powerLoadCounter
Counter used to produce unique consumer (powerload) ids.
Definition: BatteryPrivate.hh:44
std::string name
Name of the battery.
Definition: BatteryPrivate.hh:51
double initVoltage
Initial voltage in volts.
Definition: BatteryPrivate.hh:35
std::mutex powerLoadsMutex
Mutex that protects the powerLoads map.
Definition: BatteryPrivate.hh:54
double realVoltage
Real voltage in volts.
Definition: BatteryPrivate.hh:38
std::map< uint32_t, double > powerLoads
Map of unique consumer ID to power loads in watts.
Definition: BatteryPrivate.hh:41
std::function< double(const BatteryPtr)> updateFunc
The function used to to update the real voltage.
Definition: BatteryPrivate.hh:48
Definition: BatteryPrivate.hh:32