SMACC
|
#include <smacc_asynchronous_client_behavior.h>
Public Member Functions | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual | ~SmaccAsyncClientBehavior () |
template<typename TCallback , typename T > | |
boost::signals2::connection | onSuccess (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFinished (TCallback callback, T *object) |
template<typename TCallback , typename T > | |
boost::signals2::connection | onFailure (TCallback callback, T *object) |
Public Member Functions inherited from smacc::ISmaccClientBehavior | |
ISmaccClientBehavior () | |
virtual | ~ISmaccClientBehavior () |
ISmaccStateMachine * | getStateMachine () |
std::string | getName () const |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage) |
ros::NodeHandle | getNode () |
Protected Member Functions | |
virtual void | executeOnEntry () override |
virtual void | executeOnExit () override |
void | postSuccessEvent () |
void | postFailureEvent () |
virtual void | dispose () override |
Protected Member Functions inherited from smacc::ISmaccClientBehavior | |
virtual void | runtimeConfigure () |
virtual void | onEntry () |
virtual void | onExit () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual void | executeOnEntry () |
virtual void | executeOnExit () |
virtual void | dispose () |
Private Attributes | |
std::future< int > | onEntryThread_ |
std::future< int > | onExitThread_ |
std::function< void()> | postFinishEventFn_ |
std::function< void()> | postSuccessEventFn_ |
std::function< void()> | postFailureEventFn_ |
SmaccSignal< void()> | onFinished_ |
SmaccSignal< void()> | onSuccess_ |
SmaccSignal< void()> | onFailure_ |
Definition at line 42 of file smacc_asynchronous_client_behavior.h.
|
virtual |
Definition at line 69 of file smacc_client_async_behavior.cpp.
|
overrideprotectedvirtual |
Reimplemented from smacc::ISmaccClientBehavior.
Definition at line 54 of file smacc_client_async_behavior.cpp.
References smacc::ISmaccClientBehavior::getName(), and onExitThread_.
|
overrideprotectedvirtual |
Reimplemented from smacc::ISmaccClientBehavior.
Definition at line 5 of file smacc_client_async_behavior.cpp.
References smacc::ISmaccClientBehavior::getName(), smacc::ISmaccClientBehavior::onEntry(), onEntryThread_, and postFinishEventFn_.
|
overrideprotectedvirtual |
Reimplemented from smacc::ISmaccClientBehavior.
Definition at line 16 of file smacc_client_async_behavior.cpp.
References smacc::ISmaccClientBehavior::getName(), onEntryThread_, smacc::ISmaccClientBehavior::onExit(), and onExitThread_.
boost::signals2::connection smacc::SmaccAsyncClientBehavior::onFailure | ( | TCallback | callback, |
T * | object | ||
) |
Definition at line 46 of file smacc_asynchronous_client_behavior_impl.h.
References smacc::ISmaccStateMachine::createSignalConnection(), smacc::ISmaccClientBehavior::getStateMachine(), and onFailure_.
boost::signals2::connection smacc::SmaccAsyncClientBehavior::onFinished | ( | TCallback | callback, |
T * | object | ||
) |
Definition at line 40 of file smacc_asynchronous_client_behavior_impl.h.
References smacc::ISmaccStateMachine::createSignalConnection(), smacc::ISmaccClientBehavior::getStateMachine(), and onFinished_.
void smacc::SmaccAsyncClientBehavior::onOrthogonalAllocation |
Definition at line 15 of file smacc_asynchronous_client_behavior_impl.h.
References onFailure_, onFinished_, onSuccess_, postFailureEventFn_, postFinishEventFn_, and postSuccessEventFn_.
boost::signals2::connection smacc::SmaccAsyncClientBehavior::onSuccess | ( | TCallback | callback, |
T * | object | ||
) |
Definition at line 34 of file smacc_asynchronous_client_behavior_impl.h.
References smacc::ISmaccStateMachine::createSignalConnection(), smacc::ISmaccClientBehavior::getStateMachine(), and onSuccess_.
|
protected |
Definition at line 78 of file smacc_client_async_behavior.cpp.
References postFailureEventFn_.
Referenced by cl_move_group_interface::CbMoveEndEffectorTrajectory::executeJointSpaceTrajectory(), cl_move_group_interface::CbMoveJoints::moveJoints(), cl_move_group_interface::CbMoveEndEffectorRelative::moveRelative(), cl_move_group_interface::CbMoveCartesianRelative::moveRelativeCartesian(), cl_move_group_interface::CbMoveEndEffector::moveToAbsolutePose(), cl_move_group_interface::CbMoveEndEffectorTrajectory::onEntry(), and cl_move_base_z::CbMoveBaseClientBehaviorBase::propagateFailureEvent().
|
protected |
Definition at line 73 of file smacc_client_async_behavior.cpp.
References postSuccessEventFn_.
Referenced by cl_move_group_interface::CbMoveEndEffectorTrajectory::executeJointSpaceTrajectory(), cl_move_group_interface::CbMoveJoints::moveJoints(), cl_move_group_interface::CbMoveEndEffectorRelative::moveRelative(), cl_move_group_interface::CbMoveCartesianRelative::moveRelativeCartesian(), cl_move_group_interface::CbMoveEndEffector::moveToAbsolutePose(), and cl_move_base_z::CbMoveBaseClientBehaviorBase::propagateSuccessEvent().
|
private |
Definition at line 69 of file smacc_asynchronous_client_behavior.h.
Referenced by executeOnEntry(), and executeOnExit().
|
private |
Definition at line 70 of file smacc_asynchronous_client_behavior.h.
Referenced by dispose(), and executeOnExit().
|
private |
Definition at line 78 of file smacc_asynchronous_client_behavior.h.
Referenced by onFailure(), and onOrthogonalAllocation().
|
private |
Definition at line 76 of file smacc_asynchronous_client_behavior.h.
Referenced by onFinished(), and onOrthogonalAllocation().
|
private |
Definition at line 77 of file smacc_asynchronous_client_behavior.h.
Referenced by onOrthogonalAllocation(), and onSuccess().
|
private |
Definition at line 74 of file smacc_asynchronous_client_behavior.h.
Referenced by onOrthogonalAllocation(), and postFailureEvent().
|
private |
Definition at line 72 of file smacc_asynchronous_client_behavior.h.
Referenced by executeOnEntry(), and onOrthogonalAllocation().
|
private |
Definition at line 73 of file smacc_asynchronous_client_behavior.h.
Referenced by onOrthogonalAllocation(), and postSuccessEvent().