|
SMACC2
|
#include <cb_activate.hpp>


Public Member Functions | |
| CbActivate () | |
| virtual | ~CbActivate () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| virtual void | onEntry () override |
| void | onTransitionSuccess () |
| void | onTransitionFailure () |
Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| SmaccAsyncClientBehavior ()=default | |
| ~SmaccAsyncClientBehavior () override | |
| SmaccAsyncClientBehavior (const SmaccAsyncClientBehavior &)=delete | |
| SmaccAsyncClientBehavior & | operator= (const SmaccAsyncClientBehavior &)=delete |
| SmaccAsyncClientBehavior (SmaccAsyncClientBehavior &&)=delete | |
| SmaccAsyncClientBehavior & | operator= (SmaccAsyncClientBehavior &&)=delete |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onSuccess (TCallback callback, T *object) |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onFinished (TCallback callback, T *object) |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onFailure (TCallback callback, T *object) |
| void | requestForceFinish () |
| void | executeOnEntry () override |
| void | executeOnExit () override |
| void | waitOnEntryThread (bool requestFinish) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onSuccess (TCallbackMethod callback, T *object) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onFinished (TCallbackMethod callback, T *object) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onFailure (TCallbackMethod callback, T *object) |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
| ISmaccClientBehavior () | |
| virtual | ~ISmaccClientBehavior () |
| ISmaccClientBehavior (const ISmaccClientBehavior &)=delete | |
| ISmaccClientBehavior & | operator= (const ISmaccClientBehavior &)=delete |
| ISmaccClientBehavior (ISmaccClientBehavior &&)=delete | |
| ISmaccClientBehavior & | operator= (ISmaccClientBehavior &&)=delete |
| ISmaccStateMachine * | getStateMachine () |
| std::string | getName () const |
| template<typename SmaccClientType > | |
| void | requiresClient (SmaccClientType *&storage) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (const std::string &name, SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| virtual void | onExit () |
Private Attributes | |
| ClLifecycleNode * | lifecycleNodeClient_ = nullptr |
| CpLifecycleEventMonitor * | eventMonitor_ = nullptr |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
| void | postSuccessEvent () |
| void | postFailureEvent () |
| void | dispose () override |
| bool | isShutdownRequested () |
| onEntry is executed in a new thread. However the current state cannot be left until the onEntry thread finishes. This flag can be checked from the onEntry thread to force finishing the thread. | |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
| virtual void | runtimeConfigure () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| ISmaccState * | getCurrentState () |
| void | postInitializationFailureEvent (const std::string &what) |
| virtual rclcpp::Node::SharedPtr | getNode () const |
| virtual rclcpp::Logger | getLogger () const |
| std::string | getTraceStateName () const |
| std::string | getTraceOrthogonalName () const |
Definition at line 29 of file cb_activate.hpp.
|
inline |
Definition at line 32 of file cb_activate.hpp.
|
inlinevirtual |
Definition at line 33 of file cb_activate.hpp.
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 51 of file cb_activate.hpp.
References cl_lifecycle_node::ClLifecycleNode::activate(), smacc2::SmaccAsyncClientBehavior::isShutdownRequested(), lifecycleNodeClient_, and smacc2::SmaccAsyncClientBehavior::postFailureEvent().

|
inline |
Definition at line 36 of file cb_activate.hpp.
References eventMonitor_, lifecycleNodeClient_, smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation(), onTransitionFailure(), cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateError(), cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateFailure(), cl_lifecycle_node::CpLifecycleEventMonitor::onTransitionOnActivateSuccess(), onTransitionSuccess(), smacc2::ISmaccClientBehavior::requiresClient(), and smacc2::ISmaccClientBehavior::requiresComponent().

|
inline |
Definition at line 72 of file cb_activate.hpp.
References smacc2::ISmaccClientBehavior::getLogger(), and smacc2::SmaccAsyncClientBehavior::postFailureEvent().
Referenced by onStateOrthogonalAllocation().


|
inline |
Definition at line 66 of file cb_activate.hpp.
References smacc2::ISmaccClientBehavior::getLogger(), and smacc2::SmaccAsyncClientBehavior::postSuccessEvent().
Referenced by onStateOrthogonalAllocation().


|
private |
Definition at line 80 of file cb_activate.hpp.
Referenced by onStateOrthogonalAllocation().
|
private |
Definition at line 79 of file cb_activate.hpp.
Referenced by onEntry(), and onStateOrthogonalAllocation().