Public Member Functions | Private Attributes
power_monitor::PowerObservation Class Reference

#include <observation.h>

List of all members.

Public Member Functions

unsigned int getAcCount () const
const std::vector
< BatteryObservation > & 
getBatteries () const
int8_t getMasterState () const
ros::Duration getMaxTimeToFull (const ros::Time &t) const
unsigned int getMinRelativeStateOfCharge () const
ros::Duration getMinTimeToEmpty (const ros::Time &t) const
float getMinVoltage () const
const ros::TimegetStamp () const
float getTotalPower () const
float getTotalRemainingCapacity () const
 PowerObservation ()
 PowerObservation (const ros::Time &stamp, int8_t master_state, const std::vector< BatteryObservation > &batteries)

Private Attributes

std::vector< BatteryObservationbatteries_
int8_t master_state_
ros::Time stamp_

Detailed Description

Stores information reported by the power system used to estimate the power state.

Definition at line 51 of file observation.h.


Constructor & Destructor Documentation

Definition at line 48 of file observation.cpp.

power_monitor::PowerObservation::PowerObservation ( const ros::Time stamp,
int8_t  master_state,
const std::vector< BatteryObservation > &  batteries 
)

Member Function Documentation

unsigned int PowerObservation::getAcCount ( ) const

Definition at line 56 of file observation.cpp.

Definition at line 54 of file observation.cpp.

Definition at line 53 of file observation.cpp.

Returns ros::Duration(-1, 0) if no batteries are charging.

Definition at line 144 of file observation.cpp.

Returns 999 if no batteries observed.

Definition at line 90 of file observation.cpp.

Returns ros::Duration(-1, 0) if all batteries are charging.

Definition at line 111 of file observation.cpp.

Returns 9999.9 if no batteries observed.

Definition at line 78 of file observation.cpp.

Definition at line 52 of file observation.cpp.

Definition at line 66 of file observation.cpp.

Definition at line 99 of file observation.cpp.


Member Data Documentation

Definition at line 72 of file observation.h.

Definition at line 71 of file observation.h.

Definition at line 70 of file observation.h.


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


power_monitor
Author(s): Tim Field, Curt Meyers
autogenerated on Tue Apr 22 2014 19:35:04