Public Member Functions | Private Member Functions | Private Attributes | List of all members
armadillo2_hw::BatteryPub Class Reference

#include <battery_pub.h>

Public Member Functions

 BatteryPub (ros::NodeHandle nh)
 

Private Member Functions

void pubBatTimerCB (const ros::TimerEvent &event)
 
void speakLowTimerCB (const ros::TimerEvent &event)
 
void speakMsg (std::string msg, int sleep_time)
 

Private Attributes

ros::Publisher bat_pub_
 
ros::Timer bat_pub_timer_
 
std::string batt_port_
 
bms::BMSInterface bms_
 
ros::Publisher espeak_pub_
 
bool load_battery_hw_ = true
 
int low_batt_val_ = -1
 
bool show_warnings_ = false
 
ros::Timer speak_low_batt_timer_
 

Detailed Description

Definition at line 20 of file battery_pub.h.

Constructor & Destructor Documentation

armadillo2_hw::BatteryPub::BatteryPub ( ros::NodeHandle  nh)

Definition at line 9 of file battery_pub.cpp.

Member Function Documentation

void armadillo2_hw::BatteryPub::pubBatTimerCB ( const ros::TimerEvent event)
private

Definition at line 58 of file battery_pub.cpp.

void armadillo2_hw::BatteryPub::speakLowTimerCB ( const ros::TimerEvent event)
private

Definition at line 53 of file battery_pub.cpp.

void armadillo2_hw::BatteryPub::speakMsg ( std::string  msg,
int  sleep_time 
)
inlineprivate

Definition at line 39 of file battery_pub.h.

Member Data Documentation

ros::Publisher armadillo2_hw::BatteryPub::bat_pub_
private

Definition at line 23 of file battery_pub.h.

ros::Timer armadillo2_hw::BatteryPub::bat_pub_timer_
private

Definition at line 24 of file battery_pub.h.

std::string armadillo2_hw::BatteryPub::batt_port_
private

Definition at line 28 of file battery_pub.h.

bms::BMSInterface armadillo2_hw::BatteryPub::bms_
private

Definition at line 26 of file battery_pub.h.

ros::Publisher armadillo2_hw::BatteryPub::espeak_pub_
private

Definition at line 33 of file battery_pub.h.

bool armadillo2_hw::BatteryPub::load_battery_hw_ = true
private

Definition at line 31 of file battery_pub.h.

int armadillo2_hw::BatteryPub::low_batt_val_ = -1
private

Definition at line 29 of file battery_pub.h.

bool armadillo2_hw::BatteryPub::show_warnings_ = false
private

Definition at line 30 of file battery_pub.h.

ros::Timer armadillo2_hw::BatteryPub::speak_low_batt_timer_
private

Definition at line 25 of file battery_pub.h.


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


armadillo2_hw
Author(s):
autogenerated on Wed Jan 3 2018 03:48:27