SMACC
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Types | List of all members
cl_move_base_z::ClMoveBaseZ Class Reference

#include <move_base_z_client_plugin.h>

Inheritance diagram for cl_move_base_z::ClMoveBaseZ:
Inheritance graph
Collaboration diagram for cl_move_base_z::ClMoveBaseZ:
Collaboration graph

Public Types

typedef SmaccActionClientBase< move_base_msgs::MoveBaseAction >::ResultConstPtr ResultConstPtr
 
- Public Types inherited from smacc::client_bases::SmaccActionClientBase< move_base_msgs::MoveBaseAction >
typedef actionlib::SimpleActionClient< move_base_msgs::MoveBaseAction > ActionClient
 
typedef actionlib::SimpleActionClient< move_base_msgs::MoveBaseAction > GoalHandle
 
typedef ActionClient::SimpleDoneCallback SimpleDoneCallback
 
typedef ActionClient::SimpleActiveCallback SimpleActiveCallback
 
typedef ActionClient::SimpleFeedbackCallback SimpleFeedbackCallback
 

Public Member Functions

 ClMoveBaseZ (std::string moveBaseName="/move_base")
 
virtual ~ClMoveBaseZ ()
 
virtual void initialize () override
 
virtual std::string getName () const override
 
- Public Member Functions inherited from smacc::client_bases::SmaccActionClientBase< move_base_msgs::MoveBaseAction >
 ACTION_DEFINITION (move_base_msgs::MoveBaseAction)
 
 SmaccActionClientBase (std::string actionServerName)
 
 SmaccActionClientBase ()
 
virtual ~SmaccActionClientBase ()
 
virtual void initialize () override
 
void postResultEvent (ResultConstPtr result)
 
void onOrthogonalAllocation ()
 
boost::signals2::connection onSucceeded (void(T::*callback)(ResultConstPtr &), T *object)
 
boost::signals2::connection onSucceeded (std::function< void(ResultConstPtr &)> callback)
 
boost::signals2::connection onAborted (void(T::*callback)(ResultConstPtr &), T *object)
 
boost::signals2::connection onAborted (std::function< void(ResultConstPtr &)> callback)
 
boost::signals2::connection onPreempted (void(T::*callback)(ResultConstPtr &), T *object)
 
boost::signals2::connection onPreempted (std::function< void(ResultConstPtr &)> callback)
 
boost::signals2::connection onRejected (void(T::*callback)(ResultConstPtr &), T *object)
 
boost::signals2::connection onRejected (std::function< void(ResultConstPtr &)> callback)
 
virtual void cancelGoal () override
 
virtual SimpleClientGoalState getState () override
 
void sendGoal (Goal &goal)
 
- Public Member Functions inherited from smacc::client_bases::ISmaccActionClient
 ISmaccActionClient ()
 
virtual ~ISmaccActionClient ()
 
std::string getNamespace () const
 
virtual void cancelGoal ()=0
 
virtual SimpleClientGoalState getState ()=0
 
- Public Member Functions inherited from smacc::ISmaccClient
 ISmaccClient ()
 
virtual ~ISmaccClient ()
 
virtual void initialize ()
 
virtual std::string getName () const
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
template<typename TComponent >
TComponent * getComponent ()
 
template<typename TComponent >
TComponent * getComponent (std::string name)
 
virtual smacc::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)
 

Private Types

typedef SmaccActionClientBase< move_base_msgs::MoveBaseAction > Base
 

Additional Inherited Members

- Static Public Member Functions inherited from smacc::client_bases::SmaccActionClientBase< move_base_msgs::MoveBaseAction >
static std::string getEventLabel ()
 
- Public Attributes inherited from smacc::client_bases::SmaccActionClientBase< move_base_msgs::MoveBaseAction >
std::string name_
 rosnamespace path More...
 
smacc::SmaccSignal< void(const ResultConstPtr &)> onSucceeded_
 
smacc::SmaccSignal< void(const ResultConstPtr &)> onAborted_
 
smacc::SmaccSignal< void(const ResultConstPtr &)> onPreempted_
 
smacc::SmaccSignal< void(const ResultConstPtr &)> onRejected_
 
std::function< void(ResultConstPtr)> postSuccessEvent
 
std::function< void(ResultConstPtr)> postAbortedEvent
 
std::function< void(ResultConstPtr)> postPreemptedEvent
 
std::function< void(ResultConstPtr)> postRejectedEvent
 
std::function< void(FeedbackConstPtr)> postFeedbackEvent
 
SimpleDoneCallback done_cb
 
SimpleActiveCallback active_cb
 
SimpleFeedbackCallback feedback_cb
 
- Protected Member Functions inherited from smacc::client_bases::SmaccActionClientBase< move_base_msgs::MoveBaseAction >
void onFeedback (const FeedbackConstPtr &feedback_msg)
 
void onResult (const SimpleClientGoalState &state, const ResultConstPtr &result_msg)
 
- Protected Member Functions inherited from smacc::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)
 
void setStateMachine (ISmaccStateMachine *stateMachine)
 
void setOrthogonal (ISmaccOrthogonal *orthogonal)
 
- Protected Attributes inherited from smacc::client_bases::SmaccActionClientBase< move_base_msgs::MoveBaseAction >
std::shared_ptr< ActionClientclient_
 
- Protected Attributes inherited from smacc::client_bases::ISmaccActionClient
std::string name_
 
- Protected Attributes inherited from smacc::ISmaccClient
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > components_
 

Detailed Description

Definition at line 18 of file move_base_z_client_plugin.h.

Member Typedef Documentation

◆ Base

typedef SmaccActionClientBase<move_base_msgs::MoveBaseAction> cl_move_base_z::ClMoveBaseZ::Base
private

Definition at line 20 of file move_base_z_client_plugin.h.

◆ ResultConstPtr

typedef SmaccActionClientBase<move_base_msgs::MoveBaseAction>::ResultConstPtr cl_move_base_z::ClMoveBaseZ::ResultConstPtr

Definition at line 23 of file move_base_z_client_plugin.h.

Constructor & Destructor Documentation

◆ ClMoveBaseZ()

cl_move_base_z::ClMoveBaseZ::ClMoveBaseZ ( std::string  moveBaseName = "/move_base")

Definition at line 12 of file move_base_z_client_plugin.cpp.

13 : Base(moveBaseName)
14{
15 //ROS_INFO("Smacc Move Base Action Client");
16}
SmaccActionClientBase< move_base_msgs::MoveBaseAction > Base

◆ ~ClMoveBaseZ()

cl_move_base_z::ClMoveBaseZ::~ClMoveBaseZ ( )
virtual

Definition at line 28 of file move_base_z_client_plugin.cpp.

29{
30}

Member Function Documentation

◆ getName()

std::string cl_move_base_z::ClMoveBaseZ::getName ( ) const
overridevirtual

Reimplemented from smacc::ISmaccClient.

Definition at line 18 of file move_base_z_client_plugin.cpp.

19{
20 return "MOVE BASE ACTION CLIENT";
21}

◆ initialize()

void cl_move_base_z::ClMoveBaseZ::initialize ( )
overridevirtual

Reimplemented from smacc::client_bases::SmaccActionClientBase< move_base_msgs::MoveBaseAction >.

Definition at line 23 of file move_base_z_client_plugin.cpp.

24{
25 SmaccActionClientBase<move_base_msgs::MoveBaseAction>::initialize();
26}

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