Go to the documentation of this file.
7 #include "pr2_power_board/PowerBoardCommand.h"
8 #include "pr2_power_board/PowerBoardCommand2.h"
9 #include "pr2_msgs/BatteryServer2.h"
10 #include "boost/thread/mutex.hpp"
21 int Init(
const std::string &address_str);
49 TransitionMessage
tmsg;
60 pr2_power_board::PowerBoardCommand::Response &
res_);
62 pr2_power_board::PowerBoardCommand2::Response &
res_);
90 void batteryCB(
const pr2_msgs::BatteryServer2::ConstPtr &msgPtr);
92 pr2_power_board::PowerBoardCommand::Request
req_;
93 pr2_power_board::PowerBoardCommand::Response
res_;
ros::NodeHandle node_handle
const char * cb_state_to_str(char state)
bool commandCallback(pr2_power_board::PowerBoardCommand::Request &req_, pr2_power_board::PowerBoardCommand::Response &res_)
boost::mutex library_lock_
pr2_power_board::PowerBoardCommand::Response res_
PowerBoard(const ros::NodeHandle node_handle, unsigned int serial_number=0)
int requestMessage(const unsigned int message)
int Init(sockaddr_in *port_address, sockaddr_in *broadcast_address)
ros::ServiceServer service2
ros::Subscriber battery_sub_
int process_transition_message(const TransitionMessage *msg, int len)
int process_message(const PowerMessage *msg, int len)
void AddToReadSet(fd_set &set, int &max_sock) const
const char * master_state_to_str(char state)
const PowerMessage & getPowerMessage()
bool IsReadSet(fd_set set) const
void setPowerMessage(const PowerMessage &newpmsg)
const TransitionMessage & getTransitionMessage()
bool commandCallback2(pr2_power_board::PowerBoardCommand2::Request &req_, pr2_power_board::PowerBoardCommand2::Response &res_)
pr2_power_board::PowerBoardCommand::Request req_
void batteryCB(const pr2_msgs::BatteryServer2::ConstPtr &msgPtr)
int send_command(unsigned int serial_number, int circuit_breaker, const std::string &command, unsigned flags)
ros::ServiceServer service
void setTransitionMessage(const TransitionMessage &newtmsg)
std::map< int, float > battery_temps_
pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Tue Mar 7 2023 03:19:35