AutoAPMS
Resilient Robot Mission Management
Loading...
Searching...
No Matches
ActionContext< ActionT > Class Template Reference

#include <auto_apms_core/action_context.hpp>

Public Types

using Type = ActionT
 
using Goal = typename ActionT::Goal
 
using Feedback = typename ActionT::Feedback
 
using Result = typename ActionT::Result
 
using GoalHandle = rclcpp_action::ServerGoalHandle<ActionT>
 

Public Member Functions

 ActionContext (const rclcpp::Logger &logger)
 
void setUp (std::shared_ptr< GoalHandle > goal_handle_ptr)
 
void publishFeedback ()
 
void succeed ()
 
void cancel ()
 
void abort ()
 
void invalidate ()
 
bool isValid ()
 
std::shared_ptr< GoalHandlegetGoalHandlePtr ()
 
std::shared_ptr< FeedbackgetFeedbackPtr ()
 
std::shared_ptr< ResultgetResultPtr ()
 

Detailed Description

template<typename ActionT>
class auto_apms_core::ActionContext< ActionT >

Definition at line 23 of file action_context.hpp.

Member Typedef Documentation

◆ Type

template<typename ActionT >
using Type = ActionT

Definition at line 26 of file action_context.hpp.

◆ Goal

template<typename ActionT >
using Goal = typename ActionT::Goal

Definition at line 27 of file action_context.hpp.

◆ Feedback

template<typename ActionT >
using Feedback = typename ActionT::Feedback

Definition at line 28 of file action_context.hpp.

◆ Result

template<typename ActionT >
using Result = typename ActionT::Result

Definition at line 29 of file action_context.hpp.

◆ GoalHandle

template<typename ActionT >
using GoalHandle = rclcpp_action::ServerGoalHandle<ActionT>

Definition at line 30 of file action_context.hpp.

Constructor & Destructor Documentation

◆ ActionContext()

template<class ActionT >
ActionContext ( const rclcpp::Logger & logger)

---------------— DEFINITIONS ---------------—

Definition at line 66 of file action_context.hpp.

Member Function Documentation

◆ setUp()

template<class ActionT >
void setUp ( std::shared_ptr< GoalHandle > goal_handle_ptr)

Definition at line 71 of file action_context.hpp.

◆ publishFeedback()

template<class ActionT >
void publishFeedback ( )

Definition at line 79 of file action_context.hpp.

◆ succeed()

template<class ActionT >
void succeed ( )

Definition at line 98 of file action_context.hpp.

◆ cancel()

template<class ActionT >
void cancel ( )

Definition at line 110 of file action_context.hpp.

◆ abort()

template<class ActionT >
void abort ( )

Definition at line 122 of file action_context.hpp.

◆ invalidate()

template<typename ActionT >
void invalidate ( )
inline

Definition at line 134 of file action_context.hpp.

◆ isValid()

template<typename ActionT >
bool isValid ( )
inline

Definition at line 140 of file action_context.hpp.

◆ getGoalHandlePtr()

template<class ActionT >
std::shared_ptr< typename ActionContext< ActionT >::GoalHandle > getGoalHandlePtr ( )

Definition at line 146 of file action_context.hpp.

◆ getFeedbackPtr()

template<typename ActionT >
std::shared_ptr< typename ActionContext< ActionT >::Feedback > getFeedbackPtr ( )
inline

Definition at line 158 of file action_context.hpp.

◆ getResultPtr()

template<typename ActionT >
std::shared_ptr< typename ActionContext< ActionT >::Result > getResultPtr ( )
inline

Definition at line 164 of file action_context.hpp.


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