#include <observation.h>
Public Member Functions | |
BatteryObservation (const ros::Time &stamp, bool ac_present, float voltage, float current, unsigned int relative_state_of_charge, float remaining_capacity, const ros::Duration &time_to_empty, const ros::Duration &time_to_full) | |
float | getCurrent () const |
float | getPower () const |
unsigned int | getRelativeStateOfCharge () const |
float | getRemainingCapacity () const |
const ros::Time & | getStamp () const |
const ros::Duration & | getTimeToEmpty () const |
const ros::Duration & | getTimeToFull () const |
float | getVoltage () const |
bool | isAcPresent () const |
Private Attributes | |
bool | ac_present_ |
float | current_ |
unsigned int | relative_state_of_charge_ |
float | remaining_capacity_ |
ros::Time | stamp_ |
ros::Duration | time_to_empty_ |
ros::Duration | time_to_full_ |
float | voltage_ |
Stores information reported by a single battery.
Definition at line 78 of file observation.h.
BatteryObservation::BatteryObservation | ( | const ros::Time & | stamp, |
bool | ac_present, | ||
float | voltage, | ||
float | current, | ||
unsigned int | relative_state_of_charge, | ||
float | remaining_capacity, | ||
const ros::Duration & | time_to_empty, | ||
const ros::Duration & | time_to_full | ||
) |
Definition at line 176 of file observation.cpp.
float BatteryObservation::getCurrent | ( | ) | const |
Definition at line 188 of file observation.cpp.
float BatteryObservation::getPower | ( | ) | const |
Definition at line 194 of file observation.cpp.
unsigned int BatteryObservation::getRelativeStateOfCharge | ( | ) | const |
Definition at line 189 of file observation.cpp.
float BatteryObservation::getRemainingCapacity | ( | ) | const |
Definition at line 190 of file observation.cpp.
const ros::Time & BatteryObservation::getStamp | ( | ) | const |
Definition at line 184 of file observation.cpp.
const ros::Duration & BatteryObservation::getTimeToEmpty | ( | ) | const |
Definition at line 191 of file observation.cpp.
const ros::Duration & BatteryObservation::getTimeToFull | ( | ) | const |
Definition at line 192 of file observation.cpp.
float BatteryObservation::getVoltage | ( | ) | const |
Definition at line 187 of file observation.cpp.
bool BatteryObservation::isAcPresent | ( | ) | const |
Definition at line 186 of file observation.cpp.
bool power_monitor::BatteryObservation::ac_present_ [private] |
Definition at line 98 of file observation.h.
float power_monitor::BatteryObservation::current_ [private] |
Definition at line 100 of file observation.h.
unsigned int power_monitor::BatteryObservation::relative_state_of_charge_ [private] |
Definition at line 101 of file observation.h.
float power_monitor::BatteryObservation::remaining_capacity_ [private] |
Definition at line 102 of file observation.h.
Definition at line 97 of file observation.h.
Definition at line 103 of file observation.h.
Definition at line 104 of file observation.h.
float power_monitor::BatteryObservation::voltage_ [private] |
Definition at line 99 of file observation.h.