30 #ifndef REALTIME_TOOLS__REALTIME_SERVER_GOAL_HANDLE_H
31 #define REALTIME_TOOLS__REALTIME_SERVER_GOAL_HANDLE_H
42 template <
class Action>
63 RealtimeServerGoalHandle(
GoalHandle &gh,
const ResultPtr &preallocated_result = ResultPtr((Result*)NULL),
const FeedbackPtr &preallocated_feedback = FeedbackPtr((Feedback*)NULL))
77 void setAborted(ResultConstPtr result = ResultConstPtr((Result*)NULL))
86 void setCanceled(ResultConstPtr result = ResultConstPtr((Result*)NULL))
95 void setSucceeded(ResultConstPtr result = ResultConstPtr((Result*)NULL))
104 void setFeedback(FeedbackConstPtr feedback = FeedbackConstPtr((Feedback*)NULL))
116 using namespace actionlib_msgs;
120 if (
req_abort_ && (gs.status == GoalStatus::ACTIVE ||
121 gs.status == GoalStatus::PREEMPTING))
128 else if (
req_cancel_ && gs.status == GoalStatus::PREEMPTING)
135 else if (
req_succeed_ && (gs.status == GoalStatus::ACTIVE ||
136 gs.status == GoalStatus::PREEMPTING))
153 #endif // header guard