SMACC2
Public Member Functions | List of all members
sm_dance_bot_strikes_back::cl_led::ClLED Class Reference

#include <cl_led.hpp>

Inheritance diagram for sm_dance_bot_strikes_back::cl_led::ClLED:
Inheritance graph
Collaboration diagram for sm_dance_bot_strikes_back::cl_led::ClLED:
Collaboration graph

Public Member Functions

 ClLED (std::string actionServerName)
 
virtual std::string getName () const override
 
virtual ~ClLED ()
 
- Public Member Functions inherited from smacc2::client_bases::SmaccActionClientBase< sm_dance_bot_strikes_back::action::LEDControl >
 SmaccActionClientBase (std::string actionServerName)
 
 SmaccActionClientBase ()
 
virtual ~SmaccActionClientBase ()
 
virtual std::shared_ptr< rclcpp_action::ClientBase > getClientBase () override
 
void onInitialize () override
 
void postResultEvent (WrappedResult &)
 
void onOrthogonalAllocation ()
 
boost::signals2::connection onSucceeded (void(T::*callback)(WrappedResult &), T *object)
 
boost::signals2::connection onSucceeded (std::function< void(WrappedResult &)> callback)
 
boost::signals2::connection onAborted (void(T::*callback)(WrappedResult &), T *object)
 
boost::signals2::connection onAborted (std::function< void(WrappedResult &)> callback)
 
boost::signals2::connection onCancelled (void(T::*callback)(WrappedResult &), T *object)
 
boost::signals2::connection onCancelled (std::function< void(WrappedResult &)> callback)
 
virtual bool cancelGoal () override
 
std::shared_future< typename GoalHandle::SharedPtr > sendGoal (Goal &goal)
 
- Public Member Functions inherited from smacc2::client_bases::ISmaccActionClient
 ISmaccActionClient ()
 
virtual ~ISmaccActionClient ()
 
std::string getNamespace () const
 
virtual bool cancelGoal ()=0
 
virtual std::shared_ptr< rclcpp_action::ClientBase > getClientBase ()=0
 
virtual std::string getName () const
 
- Public Member Functions inherited from smacc2::ISmaccClient
 ISmaccClient ()
 
virtual ~ISmaccClient ()
 
virtual void onInitialize ()
 
virtual std::string getName () const
 
template<typename TComponent >
TComponent * getComponent ()
 
template<typename TComponent >
TComponent * getComponent (std::string name)
 
template<typename TComponent >
TComponent * getComponent (int index)
 
virtual smacc2::introspection::TypeInfo::Ptr getType ()
 
ISmaccStateMachinegetStateMachine ()
 
template<typename TSmaccSignal , typename T >
void connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object)
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
void getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components)
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 

Additional Inherited Members

- Public Types inherited from smacc2::client_bases::SmaccActionClientBase< sm_dance_bot_strikes_back::action::LEDControl >
typedef rclcpp_action::Client< sm_dance_bot_strikes_back::action::LEDControl > ActionClient
 
using Goal = typename ActionClient::Goal
 
using Feedback = typename ActionClient::Feedback
 
using GoalHandle = rclcpp_action::ClientGoalHandle< sm_dance_bot_strikes_back::action::LEDControl >
 
typedef GoalHandle::WrappedResult WrappedResult
 
using SendGoalOptions = typename ActionClient::SendGoalOptions
 
using GoalResponseCallback = std::function< void(std::shared_future< typename GoalHandle::SharedPtr >)>
 
using FeedbackCallback = typename GoalHandle::FeedbackCallback
 
using ResultCallback = typename GoalHandle::ResultCallback
 
using CancelRequest = typename ActionType::Impl::CancelGoalService::Request
 
using CancelResponse = typename ActionType::Impl::CancelGoalService::Response
 
using CancelCallback = std::function< void(typename CancelResponse::SharedPtr)>
 
- Static Public Member Functions inherited from smacc2::client_bases::SmaccActionClientBase< sm_dance_bot_strikes_back::action::LEDControl >
static std::string getEventLabel ()
 
- Public Attributes inherited from smacc2::client_bases::SmaccActionClientBase< sm_dance_bot_strikes_back::action::LEDControl >
std::string action_endpoint_
 
std::optional< std::shared_future< typename GoalHandle::SharedPtr > > lastRequest_
 
GoalHandle::SharedPtr goalHandle_
 
smacc2::SmaccSignal< void(const WrappedResult &)> onSucceeded_
 
smacc2::SmaccSignal< void(const WrappedResult &)> onAborted_
 
smacc2::SmaccSignal< void(const WrappedResult &)> onCancelled_
 
std::function< void(WrappedResult)> postSuccessEvent
 
std::function< void(WrappedResult)> postAbortedEvent
 
std::function< void(WrappedResult)> postCancelledEvent
 
std::function< void(const Feedback &)> postFeedbackEvent
 
ResultCallback done_cb
 
FeedbackCallback feedback_cb
 
- Protected Member Functions inherited from smacc2::client_bases::SmaccActionClientBase< sm_dance_bot_strikes_back::action::LEDControl >
void onFeedback (typename GoalHandle::SharedPtr, const std::shared_ptr< const Feedback > feedback_msg)
 
void onResult (const WrappedResult &result_msg)
 
- Protected Member Functions inherited from smacc2::ISmaccClient
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createComponent (TArgs... targs)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createNamedComponent (std::string name, TArgs... targs)
 
rclcpp::Node::SharedPtr getNode ()
 
rclcpp::Logger getLogger ()
 
- Protected Attributes inherited from smacc2::client_bases::SmaccActionClientBase< sm_dance_bot_strikes_back::action::LEDControl >
ActionClient::SharedPtr client_
 
- Protected Attributes inherited from smacc2::client_bases::ISmaccActionClient
std::string name_
 
- Protected Attributes inherited from smacc2::ISmaccClient
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > components_
 

Detailed Description

Definition at line 25 of file cl_led.hpp.

Constructor & Destructor Documentation

◆ ClLED()

sm_dance_bot_strikes_back::cl_led::ClLED::ClLED ( std::string  actionServerName)

Definition at line 27 of file cl_led.cpp.

28: SmaccActionClientBase<sm_dance_bot_strikes_back::action::LEDControl>(actionServerName)
29
30{
31}

◆ ~ClLED()

sm_dance_bot_strikes_back::cl_led::ClLED::~ClLED ( )
virtual

Definition at line 35 of file cl_led.cpp.

35{}

Member Function Documentation

◆ getName()

std::string sm_dance_bot_strikes_back::cl_led::ClLED::getName ( ) const
overridevirtual

Reimplemented from smacc2::client_bases::ISmaccActionClient.

Definition at line 33 of file cl_led.cpp.

33{ return "TOOL ACTION CLIENT"; }

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