Public Member Functions | Private Member Functions | Private Attributes | List of all members
PowerBoard Class Reference

#include <power_node.h>

Public Member Functions

const char * cb_state_to_str (char state)
 
const char * cb_state_to_str (char state)
 
void checkFanSpeed ()
 
int collect_messages ()
 
int collect_messages ()
 
void collectMessages ()
 
void collectMessages ()
 
bool commandCallback (pr2_power_board::PowerBoardCommand::Request &req_, pr2_power_board::PowerBoardCommand::Response &res_)
 
bool commandCallback (pr2_power_board::PowerBoardCommand::Request &req_, pr2_power_board::PowerBoardCommand::Response &res_)
 
bool commandCallback2 (pr2_power_board::PowerBoardCommand2::Request &req_, pr2_power_board::PowerBoardCommand2::Response &res_)
 
void init ()
 
void init ()
 
int list_devices (void)
 
int list_devices (void)
 
const char * master_state_to_str (char state)
 
const char * master_state_to_str (char state)
 
 PowerBoard (const ros::NodeHandle node_handle, const std::string &address_str)
 
 PowerBoard (const ros::NodeHandle node_handle, unsigned int serial_number=0)
 
int process_message (const PowerMessage *msg, int len)
 
int process_message (const PowerMessage *msg, int len)
 
int process_transition_message (const TransitionMessage *msg, int len)
 
int process_transition_message (const TransitionMessage *msg, int len)
 
int requestMessage (const unsigned int message)
 
int send_command (int circuit_breaker, const std::string &command, unsigned flags)
 
int send_command (unsigned int serial_number, int circuit_breaker, const std::string &command, unsigned flags)
 
void sendMessages ()
 
void sendMessages ()
 

Private Member Functions

void batteryCB (const pr2_msgs::BatteryServer2::ConstPtr &msgPtr)
 
int getFanDuty ()
 

Private Attributes

ros::Subscriber battery_sub_
 
std::map< int, float > battery_temps_
 
ros::Publisher diags_pub
 
bool fan_high_
 
uint64_t ip_address
 
boost::mutex library_lock_
 
ros::NodeHandle node_handle
 
pr2_power_board::PowerBoardCommand::Request req_
 
pr2_power_board::PowerBoardCommand::Response res_
 
unsigned int serial_number
 
ros::ServiceServer service
 
ros::ServiceServer service2
 
ros::Publisher state_pub
 

Detailed Description

Definition at line 54 of file power_node.h.

Constructor & Destructor Documentation

◆ PowerBoard() [1/2]

PowerBoard::PowerBoard ( const ros::NodeHandle  node_handle,
unsigned int  serial_number = 0 
)

Definition at line 632 of file power_node.cpp.

◆ PowerBoard() [2/2]

PowerBoard::PowerBoard ( const ros::NodeHandle  node_handle,
const std::string &  address_str 
)

Definition at line 562 of file power_node2.cpp.

Member Function Documentation

◆ batteryCB()

void PowerBoard::batteryCB ( const pr2_msgs::BatteryServer2::ConstPtr &  msgPtr)
private

Definition at line 596 of file power_node2.cpp.

◆ cb_state_to_str() [1/2]

const char * PowerBoard::cb_state_to_str ( char  state)

Definition at line 399 of file power_node.cpp.

◆ cb_state_to_str() [2/2]

const char* PowerBoard::cb_state_to_str ( char  state)

◆ checkFanSpeed()

void PowerBoard::checkFanSpeed ( )

Definition at line 638 of file power_node2.cpp.

◆ collect_messages() [1/2]

int PowerBoard::collect_messages ( )

Definition at line 527 of file power_node.cpp.

◆ collect_messages() [2/2]

int PowerBoard::collect_messages ( )

◆ collectMessages() [1/2]

void PowerBoard::collectMessages ( )

Definition at line 671 of file power_node.cpp.

◆ collectMessages() [2/2]

void PowerBoard::collectMessages ( )

◆ commandCallback() [1/2]

bool PowerBoard::commandCallback ( pr2_power_board::PowerBoardCommand::Request &  req_,
pr2_power_board::PowerBoardCommand::Response &  res_ 
)

Definition at line 663 of file power_node.cpp.

◆ commandCallback() [2/2]

bool PowerBoard::commandCallback ( pr2_power_board::PowerBoardCommand::Request &  req_,
pr2_power_board::PowerBoardCommand::Response &  res_ 
)

◆ commandCallback2()

bool PowerBoard::commandCallback2 ( pr2_power_board::PowerBoardCommand2::Request &  req_,
pr2_power_board::PowerBoardCommand2::Response &  res_ 
)

Definition at line 653 of file power_node2.cpp.

◆ getFanDuty()

int PowerBoard::getFanDuty ( )
private

Definition at line 613 of file power_node2.cpp.

◆ init() [1/2]

void PowerBoard::init ( )

Definition at line 647 of file power_node.cpp.

◆ init() [2/2]

void PowerBoard::init ( )

◆ list_devices() [1/2]

int PowerBoard::list_devices ( void  )

◆ list_devices() [2/2]

int PowerBoard::list_devices ( void  )

◆ master_state_to_str() [1/2]

const char * PowerBoard::master_state_to_str ( char  state)

Definition at line 417 of file power_node.cpp.

◆ master_state_to_str() [2/2]

const char* PowerBoard::master_state_to_str ( char  state)

◆ process_message() [1/2]

int PowerBoard::process_message ( const PowerMessage *  msg,
int  len 
)

Definition at line 439 of file power_node.cpp.

◆ process_message() [2/2]

int PowerBoard::process_message ( const PowerMessage *  msg,
int  len 
)

◆ process_transition_message() [1/2]

int PowerBoard::process_transition_message ( const TransitionMessage *  msg,
int  len 
)

Definition at line 484 of file power_node.cpp.

◆ process_transition_message() [2/2]

int PowerBoard::process_transition_message ( const TransitionMessage *  msg,
int  len 
)

◆ requestMessage()

int PowerBoard::requestMessage ( const unsigned int  message)

Definition at line 885 of file power_node2.cpp.

◆ send_command() [1/2]

int PowerBoard::send_command ( int  circuit_breaker,
const std::string &  command,
unsigned  flags 
)

Definition at line 252 of file power_node2.cpp.

◆ send_command() [2/2]

int PowerBoard::send_command ( unsigned int  serial_number,
int  circuit_breaker,
const std::string &  command,
unsigned  flags 
)

Definition at line 285 of file power_node.cpp.

◆ sendMessages() [1/2]

void PowerBoard::sendMessages ( )

Definition at line 680 of file power_node.cpp.

◆ sendMessages() [2/2]

void PowerBoard::sendMessages ( )

Member Data Documentation

◆ battery_sub_

ros::Subscriber PowerBoard::battery_sub_
private

Definition at line 83 of file power_node2.h.

◆ battery_temps_

std::map<int, float> PowerBoard::battery_temps_
private

Definition at line 85 of file power_node2.h.

◆ diags_pub

ros::Publisher PowerBoard::diags_pub
private

Definition at line 74 of file power_node.h.

◆ fan_high_

bool PowerBoard::fan_high_
private

Definition at line 86 of file power_node2.h.

◆ ip_address

uint64_t PowerBoard::ip_address
private

Definition at line 95 of file power_node2.h.

◆ library_lock_

boost::mutex PowerBoard::library_lock_
private

Definition at line 79 of file power_node.h.

◆ node_handle

ros::NodeHandle PowerBoard::node_handle
private

Definition at line 72 of file power_node.h.

◆ req_

pr2_power_board::PowerBoardCommand::Request PowerBoard::req_
private

Definition at line 77 of file power_node.h.

◆ res_

pr2_power_board::PowerBoardCommand::Response PowerBoard::res_
private

Definition at line 78 of file power_node.h.

◆ serial_number

unsigned int PowerBoard::serial_number
private

Definition at line 80 of file power_node.h.

◆ service

ros::ServiceServer PowerBoard::service
private

Definition at line 73 of file power_node.h.

◆ service2

ros::ServiceServer PowerBoard::service2
private

Definition at line 80 of file power_node2.h.

◆ state_pub

ros::Publisher PowerBoard::state_pub
private

Definition at line 75 of file power_node.h.


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


pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Tue Mar 7 2023 03:19:35