#include <plugs_client.h>
Public Member Functions | |
void | cancel () |
bool | plug_unplug (bool plug, bool wait=false) |
PlugsClient (ros::NodeHandle &nh, const ros::Duration &timeout) | |
Initialization. | |
~PlugsClient () | |
Private Attributes | |
ros::NodeHandle | nh_ |
The node handle we'll be using. | |
actionlib::SimpleActionClient < pr2_plugs_msgs::RechargeAction > | plugs_action_client_ |
A actionlib client to the move_base action server. | |
ros::Duration | timeout_ |
The timeout duration for the plug action. |
Definition at line 47 of file plugs_client.h.
pr2_wrappers::PlugsClient::PlugsClient | ( | ros::NodeHandle & | nh, |
const ros::Duration & | timeout | ||
) |
Initialization.
Definition at line 36 of file plugs_client.cpp.
Definition at line 42 of file plugs_client.cpp.
void pr2_wrappers::PlugsClient::cancel | ( | ) | [inline] |
Definition at line 72 of file plugs_client.h.
bool pr2_wrappers::PlugsClient::plug_unplug | ( | bool | plug, |
bool | wait = false |
||
) |
Calls the recharge action
plug | if true, plug in. If false, unplug |
wait | if true, blocks until the end of the action |
Definition at line 45 of file plugs_client.cpp.
The node handle we'll be using.
Definition at line 51 of file plugs_client.h.
actionlib::SimpleActionClient<pr2_plugs_msgs::RechargeAction> pr2_wrappers::PlugsClient::plugs_action_client_ [private] |
A actionlib client to the move_base action server.
Definition at line 57 of file plugs_client.h.
The timeout duration for the plug action.
Definition at line 54 of file plugs_client.h.