Public Attributes | List of all members
gazebo::common::BatteryPrivate Class Reference

#include <BatteryPrivate.hh>

Public Attributes

double initVoltage
 Initial voltage in volts. More...
 
std::string name
 Name of the battery. More...
 
uint32_t powerLoadCounter
 Counter used to produce unique consumer (powerload) ids. More...
 
std::map< uint32_t, double > powerLoads
 Map of unique consumer ID to power loads in watts. More...
 
std::mutex powerLoadsMutex
 Mutex that protects the powerLoads map. More...
 
double realVoltage
 Real voltage in volts. More...
 
std::function< double(const
BatteryPtr)> 
updateFunc
 The function used to to update the real voltage. More...
 

Member Data Documentation

double gazebo::common::BatteryPrivate::initVoltage

Initial voltage in volts.

std::string gazebo::common::BatteryPrivate::name

Name of the battery.

uint32_t gazebo::common::BatteryPrivate::powerLoadCounter

Counter used to produce unique consumer (powerload) ids.

std::map<uint32_t, double> gazebo::common::BatteryPrivate::powerLoads

Map of unique consumer ID to power loads in watts.

std::mutex gazebo::common::BatteryPrivate::powerLoadsMutex

Mutex that protects the powerLoads map.

double gazebo::common::BatteryPrivate::realVoltage

Real voltage in volts.

std::function<double (const BatteryPtr)> gazebo::common::BatteryPrivate::updateFunc

The function used to to update the real voltage.

It takes as inputs current voltage and list of power loads.


The documentation for this class was generated from the following file: