#include <interruptable_action_server.h>
Public Types | |
typedef actionlib::ActionServer < ActionSpec >::GoalHandle | GoalHandle |
typedef boost::function< void(const GoalConstPtr &)> | NewGoalCallback |
typedef boost::function< void(const ResultConstPtr &, const actionlib::SimpleClientGoalState &, int)> | ResultCallback |
Public Member Functions | |
ACTION_DEFINITION (ActionSpec) | |
InterruptableActionServer (ros::NodeHandle n, std::string name, int max_attempts=1, NewGoalCallback new_goal_callback=0, ResultCallback result_callback=0) | |
void | spin () |
~InterruptableActionServer () | |
Protected Member Functions | |
void | cancelCallback (GoalHandle preempt) |
void | goalCallback (GoalHandle goal) |
bool | pause (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res) |
void | publishFeedback (const FeedbackConstPtr &feedback) |
bool | resume (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res) |
Protected Attributes | |
boost::shared_ptr < actionlib::SimpleActionClient < ActionSpec > > | ac_ |
boost::shared_ptr < actionlib::ActionServer < ActionSpec > > | as_ |
int | current_attempts_ |
GoalHandle | current_goal_ |
std::string | interruptable_server_name_ |
boost::recursive_mutex | lock_ |
int | max_attempts_ |
ros::NodeHandle | n_ |
NewGoalCallback | new_goal_callback_ |
GoalHandle | next_goal_ |
bool | next_goal_available_ |
GoalHandle | original_goal_ |
bool | original_goal_available_ |
ros::ServiceServer | pause_server_ |
bool | pursue_current_goal_ |
bool | pursuing_current_goal_ |
ResultCallback | result_callback_ |
ros::ServiceServer | resume_server_ |
bool | switch_to_original_goal_ |
Definition at line 47 of file interruptable_action_server.h.
typedef actionlib::ActionServer<ActionSpec>::GoalHandle bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::GoalHandle |
Definition at line 52 of file interruptable_action_server.h.
typedef boost::function<void(const GoalConstPtr&)> bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::NewGoalCallback |
Definition at line 54 of file interruptable_action_server.h.
typedef boost::function<void(const ResultConstPtr&, const actionlib::SimpleClientGoalState&, int)> bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::ResultCallback |
Definition at line 53 of file interruptable_action_server.h.
bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::InterruptableActionServer | ( | ros::NodeHandle | n, |
std::string | name, | ||
int | max_attempts = 1 , |
||
NewGoalCallback | new_goal_callback = 0 , |
||
ResultCallback | result_callback = 0 |
||
) |
Definition at line 41 of file interruptable_action_server_imp.h.
bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::~InterruptableActionServer | ( | ) |
Definition at line 78 of file interruptable_action_server_imp.h.
bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::ACTION_DEFINITION | ( | ActionSpec | ) |
void bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::cancelCallback | ( | GoalHandle | preempt | ) | [protected] |
Definition at line 148 of file interruptable_action_server_imp.h.
void bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::goalCallback | ( | GoalHandle | goal | ) | [protected] |
Definition at line 125 of file interruptable_action_server_imp.h.
bool bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::pause | ( | std_srvs::Empty::Request & | req, |
std_srvs::Empty::Response & | res | ||
) | [protected] |
Definition at line 93 of file interruptable_action_server_imp.h.
void bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::publishFeedback | ( | const FeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 264 of file interruptable_action_server_imp.h.
bool bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::resume | ( | std_srvs::Empty::Request & | req, |
std_srvs::Empty::Response & | res | ||
) | [protected] |
Definition at line 111 of file interruptable_action_server_imp.h.
void bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::spin | ( | ) |
Definition at line 169 of file interruptable_action_server_imp.h.
boost::shared_ptr<actionlib::SimpleActionClient<ActionSpec> > bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::ac_ [protected] |
Definition at line 80 of file interruptable_action_server.h.
boost::shared_ptr<actionlib::ActionServer<ActionSpec> > bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::as_ [protected] |
Definition at line 79 of file interruptable_action_server.h.
int bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::current_attempts_ [protected] |
Definition at line 95 of file interruptable_action_server.h.
GoalHandle bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::current_goal_ [protected] |
Definition at line 86 of file interruptable_action_server.h.
std::string bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::interruptable_server_name_ [protected] |
Definition at line 84 of file interruptable_action_server.h.
boost::recursive_mutex bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::lock_ [protected] |
Definition at line 82 of file interruptable_action_server.h.
int bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::max_attempts_ [protected] |
Definition at line 94 of file interruptable_action_server.h.
ros::NodeHandle bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::n_ [protected] |
Definition at line 74 of file interruptable_action_server.h.
NewGoalCallback bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::new_goal_callback_ [protected] |
Definition at line 98 of file interruptable_action_server.h.
GoalHandle bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::next_goal_ [protected] |
Definition at line 86 of file interruptable_action_server.h.
bool bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::next_goal_available_ [protected] |
Definition at line 90 of file interruptable_action_server.h.
GoalHandle bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::original_goal_ [protected] |
Definition at line 86 of file interruptable_action_server.h.
bool bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::original_goal_available_ [protected] |
Definition at line 88 of file interruptable_action_server.h.
ros::ServiceServer bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::pause_server_ [protected] |
Definition at line 76 of file interruptable_action_server.h.
bool bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::pursue_current_goal_ [protected] |
Definition at line 91 of file interruptable_action_server.h.
bool bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::pursuing_current_goal_ [protected] |
Definition at line 92 of file interruptable_action_server.h.
ResultCallback bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::result_callback_ [protected] |
Definition at line 96 of file interruptable_action_server.h.
ros::ServiceServer bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::resume_server_ [protected] |
Definition at line 77 of file interruptable_action_server.h.
bool bwi_interruptable_action_server::InterruptableActionServer< ActionSpec >::switch_to_original_goal_ [protected] |
Definition at line 89 of file interruptable_action_server.h.