SMACC
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
cl_move_group_interface::ClMoveGroup Class Reference

#include <cl_movegroup.h>

Inheritance diagram for cl_move_group_interface::ClMoveGroup:
Inheritance graph
Collaboration diagram for cl_move_group_interface::ClMoveGroup:
Collaboration graph

Public Member Functions

 ClMoveGroup (std::string groupName)
 
virtual ~ClMoveGroup ()
 
void postEventMotionExecutionSucceded ()
 
void postEventMotionExecutionFailed ()
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
template<typename TCallback , typename T >
boost::signals2::connection onMotionExecutionSuccedded (TCallback callback, T *object)
 
template<typename TCallback , typename T >
boost::signals2::connection onMotionExecutionFailed (TCallback callback, T *object)
 
- 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)
 

Public Attributes

moveit::planning_interface::MoveGroupInterface moveGroupClientInterface
 
moveit::planning_interface::PlanningSceneInterface planningSceneInterface
 

Private Attributes

std::function< void()> postEventMotionExecutionSucceded_
 
std::function< void()> postEventMotionExecutionFailed_
 
smacc::SmaccSignal< void()> onSucceded_
 
smacc::SmaccSignal< void()> onFailed_
 

Additional Inherited Members

- 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::ISmaccClient
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > components_
 

Detailed Description

Definition at line 61 of file cl_movegroup.h.

Constructor & Destructor Documentation

◆ ClMoveGroup()

cl_move_group_interface::ClMoveGroup::ClMoveGroup ( std::string  groupName)

Definition at line 11 of file cl_movegroup.cpp.

12 : moveGroupClientInterface(groupName)
13{
14 ros::WallDuration(10.0).sleep();
15}
moveit::planning_interface::MoveGroupInterface moveGroupClientInterface
Definition: cl_movegroup.h:74

◆ ~ClMoveGroup()

cl_move_group_interface::ClMoveGroup::~ClMoveGroup ( )
virtual

Definition at line 17 of file cl_movegroup.cpp.

18{
19}

Member Function Documentation

◆ onMotionExecutionFailed()

template<typename TCallback , typename T >
boost::signals2::connection cl_move_group_interface::ClMoveGroup::onMotionExecutionFailed ( TCallback  callback,
T *  object 
)
inline

Definition at line 106 of file cl_movegroup.h.

107 {
108 return this->getStateMachine()->createSignalConnection(onFailed_, callback, object);
109 }
smacc::SmaccSignal< void()> onFailed_
Definition: cl_movegroup.h:68
ISmaccStateMachine * getStateMachine()
boost::signals2::connection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)

References smacc::ISmaccStateMachine::createSignalConnection(), and smacc::ISmaccClient::getStateMachine().

Here is the call graph for this function:

◆ onMotionExecutionSuccedded()

template<typename TCallback , typename T >
boost::signals2::connection cl_move_group_interface::ClMoveGroup::onMotionExecutionSuccedded ( TCallback  callback,
T *  object 
)
inline

Definition at line 100 of file cl_movegroup.h.

101 {
102 return this->getStateMachine()->createSignalConnection(onSucceded_, callback, object);
103 }
smacc::SmaccSignal< void()> onSucceded_
Definition: cl_movegroup.h:67

References smacc::ISmaccStateMachine::createSignalConnection(), and smacc::ISmaccClient::getStateMachine().

Here is the call graph for this function:

◆ onOrthogonalAllocation()

template<typename TOrthogonal , typename TSourceObject >
void cl_move_group_interface::ClMoveGroup::onOrthogonalAllocation ( )
inline

Definition at line 86 of file cl_movegroup.h.

87 {
89 this->onSucceded_();
90 this->postEvent<EvMoveGroupMotionExecutionSucceded<TSourceObject, TOrthogonal>>();
91 };
92
94 this->onFailed_();
95 this->postEvent<EvMoveGroupMotionExecutionFailed<TSourceObject, TOrthogonal>>();
96 };
97 }
std::function< void()> postEventMotionExecutionSucceded_
Definition: cl_movegroup.h:64
std::function< void()> postEventMotionExecutionFailed_
Definition: cl_movegroup.h:65

References onFailed_, onSucceded_, postEventMotionExecutionFailed_, and postEventMotionExecutionSucceded_.

◆ postEventMotionExecutionFailed()

void cl_move_group_interface::ClMoveGroup::postEventMotionExecutionFailed ( )

◆ postEventMotionExecutionSucceded()

void cl_move_group_interface::ClMoveGroup::postEventMotionExecutionSucceded ( )

Member Data Documentation

◆ moveGroupClientInterface

moveit::planning_interface::MoveGroupInterface cl_move_group_interface::ClMoveGroup::moveGroupClientInterface

◆ onFailed_

smacc::SmaccSignal<void()> cl_move_group_interface::ClMoveGroup::onFailed_
private

Definition at line 68 of file cl_movegroup.h.

Referenced by onOrthogonalAllocation().

◆ onSucceded_

smacc::SmaccSignal<void()> cl_move_group_interface::ClMoveGroup::onSucceded_
private

Definition at line 67 of file cl_movegroup.h.

Referenced by onOrthogonalAllocation().

◆ planningSceneInterface

moveit::planning_interface::PlanningSceneInterface cl_move_group_interface::ClMoveGroup::planningSceneInterface

◆ postEventMotionExecutionFailed_

std::function<void()> cl_move_group_interface::ClMoveGroup::postEventMotionExecutionFailed_
private

Definition at line 65 of file cl_movegroup.h.

Referenced by onOrthogonalAllocation(), and postEventMotionExecutionFailed().

◆ postEventMotionExecutionSucceded_

std::function<void()> cl_move_group_interface::ClMoveGroup::postEventMotionExecutionSucceded_
private

Definition at line 64 of file cl_movegroup.h.

Referenced by onOrthogonalAllocation(), and postEventMotionExecutionSucceded().


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