SMACC2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
cl_nav2z::ClNav2Z Class Reference

#include <nav2z_client.hpp>

Inheritance diagram for cl_nav2z::ClNav2Z:
Inheritance graph
Collaboration diagram for cl_nav2z::ClNav2Z:
Collaboration graph

Public Types

typedef smacc2::SmaccSignal< void(const WrappedResult &)> SmaccNavigateResultSignal
 
- Public Types inherited from smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >
typedef rclcpp_action::Client< nav2_msgs::action::NavigateToPose > ActionClient
 
using Goal = typename ActionClient::Goal
 
using Feedback = typename ActionClient::Feedback
 
using GoalHandle = rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose >
 
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)>
 
typedef smacc2::SmaccSignal< void(const WrappedResult &)> SmaccActionResultSignal
 

Public Member Functions

 ClNav2Z (std::string navigateToPoseAction="/navigate_to_pose")
 
virtual ~ClNav2Z ()
 
- Public Member Functions inherited from smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >
 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, typename SmaccActionResultSignal::WeakPtr resultCallback=typename SmaccActionResultSignal::WeakPtr())
 
- 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)
 
const std::vector< std::shared_ptr< ISmaccComponent > > & iterateComponents () const
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 

Additional Inherited Members

- Static Public Member Functions inherited from smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >
static std::string getEventLabel ()
 
- Public Attributes inherited from smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >
std::string action_endpoint_
 
std::optional< std::shared_future< typename GoalHandle::SharedPtr > > lastRequest_
 
SmaccActionResultSignal onSucceeded_
 
SmaccActionResultSignal onAborted_
 
SmaccActionResultSignal onCancelled_
 
std::function< void(WrappedResult)> postSuccessEvent
 
std::function< void(WrappedResult)> postAbortedEvent
 
std::function< void(WrappedResult)> postCancelledEvent
 
std::function< void(const Feedback &)> postFeedbackEvent
 
FeedbackCallback feedback_cb
 
- Protected Member Functions inherited from smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose >
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< nav2_msgs::action::NavigateToPose >
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 30 of file nav2z_client.hpp.

Member Typedef Documentation

◆ SmaccNavigateResultSignal

Definition at line 38 of file nav2z_client.hpp.

Constructor & Destructor Documentation

◆ ClNav2Z()

cl_nav2z::ClNav2Z::ClNav2Z ( std::string  navigateToPoseAction = "/navigate_to_pose")

Definition at line 31 of file nav2z_client.cpp.

31 : Base(moveBaseName)
32{
33 // RCLCPP_INFO(getLogger(),"Smacc Move Base Action Client");
34}
smacc2::client_bases::SmaccActionClientBase< nav2_msgs::action::NavigateToPose > Base

◆ ~ClNav2Z()

cl_nav2z::ClNav2Z::~ClNav2Z ( )
virtual

Definition at line 36 of file nav2z_client.cpp.

36{}

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