SMACC2
Loading...
Searching...
No Matches
cl_nav2z::ClNav2Z Class Reference

#include <cl_nav2z.hpp>

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

Public Member Functions

 ClNav2Z (std::string actionServerName="/navigate_to_pose")
 
virtual ~ClNav2Z ()=default
 
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
- 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 ()
 

Private Attributes

std::string actionServerName_
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccClient
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
template<typename TOrthogonal , typename TSourceObject >
void onStateOrthogonalAllocation ()
 
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::ISmaccClient
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > components_
 

Detailed Description

Definition at line 27 of file cl_nav2z.hpp.

Constructor & Destructor Documentation

◆ ClNav2Z()

cl_nav2z::ClNav2Z::ClNav2Z ( std::string actionServerName = "/navigate_to_pose")
inline

Definition at line 31 of file cl_nav2z.hpp.

31 : actionServerName_(actionServerName)
32 {
33 }
std::string actionServerName_
Definition cl_nav2z.hpp:54

◆ ~ClNav2Z()

virtual cl_nav2z::ClNav2Z::~ClNav2Z ( )
virtualdefault

Member Function Documentation

◆ onComponentInitialization()

template<typename TOrthogonal , typename TClient >
void cl_nav2z::ClNav2Z::onComponentInitialization ( )
inline

Definition at line 39 of file cl_nav2z.hpp.

40 {
41 // Create core action client component
42 auto actionClient = this->createComponent<
44 TOrthogonal, ClNav2Z>(actionServerName_);
45
46 // Create nav2-specific interface component (requires actionClient)
48
49 RCLCPP_INFO_STREAM(
50 this->getLogger(), "[ClNav2Z] Components created for action server: " << actionServerName_);
51 }
rclcpp::Logger getLogger()
SmaccComponentType * createComponent(TArgs... targs)
namespace cl_nav2z class ClNav2Z

References actionServerName_, smacc2::ISmaccClient::createComponent(), and smacc2::ISmaccClient::getLogger().

Here is the call graph for this function:

Member Data Documentation

◆ actionServerName_

std::string cl_nav2z::ClNav2Z::actionServerName_
private

Definition at line 54 of file cl_nav2z.hpp.

Referenced by onComponentInitialization().


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