NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
ff_util::FreeFlyerActionServer< ActionSpec > Class Template Reference

#include <ff_action.h>

Public Types

typedef std::function< void(GoalConstPtr const &) > GoalCallbackType
 
typedef std::function< void(void) > PreemptCallbackType
 
typedef std::function< void(void) > CancelCallbackType
 

Public Member Functions

 ACTION_DEFINITION (ActionSpec)
 
 FreeFlyerActionServer ()
 
 ~FreeFlyerActionServer ()
 
void SetGoalCallback (GoalCallbackType cb_goal)
 
void SetPreemptCallback (PreemptCallbackType cb_preempt)
 
void SetCancelCallback (CancelCallbackType cb_cancel)
 
void Create (ros::NodeHandle *nh, std::string const &topic)
 
void SendFeedback (Feedback const &feedback)
 
void SendResult (FreeFlyerActionState::Enum result_code, Result const &result)
 

Protected Member Functions

void PreemptCallback ()
 
void GoalCallback ()
 

Protected Attributes

std::shared_ptr< actionlib::SimpleActionServer< ActionSpec > > sas_
 
GoalCallbackType cb_goal_
 
PreemptCallbackType cb_preempt_
 
CancelCallbackType cb_cancel_
 

Member Typedef Documentation

◆ CancelCallbackType

template<class ActionSpec >
typedef std::function< void (void) > ff_util::FreeFlyerActionServer< ActionSpec >::CancelCallbackType

◆ GoalCallbackType

template<class ActionSpec >
typedef std::function< void (GoalConstPtr const&) > ff_util::FreeFlyerActionServer< ActionSpec >::GoalCallbackType

◆ PreemptCallbackType

template<class ActionSpec >
typedef std::function< void (void) > ff_util::FreeFlyerActionServer< ActionSpec >::PreemptCallbackType

Constructor & Destructor Documentation

◆ FreeFlyerActionServer()

template<class ActionSpec >
ff_util::FreeFlyerActionServer< ActionSpec >::FreeFlyerActionServer ( )
inline

◆ ~FreeFlyerActionServer()

template<class ActionSpec >
ff_util::FreeFlyerActionServer< ActionSpec >::~FreeFlyerActionServer ( )
inline

Member Function Documentation

◆ ACTION_DEFINITION()

template<class ActionSpec >
ff_util::FreeFlyerActionServer< ActionSpec >::ACTION_DEFINITION ( ActionSpec  )

◆ Create()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::Create ( ros::NodeHandle *  nh,
std::string const &  topic 
)
inline

◆ GoalCallback()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::GoalCallback ( )
inlineprotected

◆ PreemptCallback()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::PreemptCallback ( )
inlineprotected

◆ SendFeedback()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::SendFeedback ( Feedback const &  feedback)
inline

◆ SendResult()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::SendResult ( FreeFlyerActionState::Enum  result_code,
Result const &  result 
)
inline

◆ SetCancelCallback()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::SetCancelCallback ( CancelCallbackType  cb_cancel)
inline

◆ SetGoalCallback()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::SetGoalCallback ( GoalCallbackType  cb_goal)
inline

◆ SetPreemptCallback()

template<class ActionSpec >
void ff_util::FreeFlyerActionServer< ActionSpec >::SetPreemptCallback ( PreemptCallbackType  cb_preempt)
inline

Member Data Documentation

◆ cb_cancel_

template<class ActionSpec >
CancelCallbackType ff_util::FreeFlyerActionServer< ActionSpec >::cb_cancel_
protected

◆ cb_goal_

template<class ActionSpec >
GoalCallbackType ff_util::FreeFlyerActionServer< ActionSpec >::cb_goal_
protected

◆ cb_preempt_

template<class ActionSpec >
PreemptCallbackType ff_util::FreeFlyerActionServer< ActionSpec >::cb_preempt_
protected

◆ sas_

template<class ActionSpec >
std::shared_ptr< actionlib::SimpleActionServer < ActionSpec > > ff_util::FreeFlyerActionServer< ActionSpec >::sas_
protected

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