|
SMACC2
|
#include <cb_rgb_client_behavior_base.hpp>


Public Member Functions | |
| CbRgbClientBehaviorBase (const std::string &cameraName) | |
| ~CbRgbClientBehaviorBase () override | |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| void | setTimeout (std::chrono::milliseconds timeout) |
| void | update () override |
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 | onEntry () |
| virtual void | onExit () |
Public Member Functions inherited from smacc2::ISmaccUpdatable | |
| ISmaccUpdatable () | |
| ISmaccUpdatable (rclcpp::Duration duration) | |
| virtual | ~ISmaccUpdatable ()=default |
| ISmaccUpdatable (const ISmaccUpdatable &)=delete | |
| ISmaccUpdatable & | operator= (const ISmaccUpdatable &)=delete |
| ISmaccUpdatable (ISmaccUpdatable &&)=delete | |
| ISmaccUpdatable & | operator= (ISmaccUpdatable &&)=delete |
| void | executeUpdate (rclcpp::Node::SharedPtr node) |
| void | setUpdatePeriod (rclcpp::Duration duration) |
Protected Member Functions | |
| virtual void | wireCompletionSignals () |
| void | postRgbSuccess () |
| void | postRgbFailure () |
| bool | completed () const |
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 |
Protected Member Functions inherited from smacc2::ISmaccUpdatable | |
Protected Attributes | |
| std::string | cameraName_ |
| CpCamera * | camera_ = nullptr |
| CpTablePlane * | table_ = nullptr |
| CpTableSegmenter * | segmenter_ = nullptr |
| CpSceneSurvey * | survey_ = nullptr |
Private Attributes | |
| std::atomic< bool > | completed_ {false} |
| std::atomic< int64_t > | timeoutMs_ {0} |
| std::optional< std::chrono::steady_clock::time_point > | watchdogStart_ |
Definition at line 40 of file cb_rgb_client_behavior_base.hpp.
|
inlineexplicit |
Definition at line 44 of file cb_rgb_client_behavior_base.hpp.
|
inlineoverride |
Definition at line 46 of file cb_rgb_client_behavior_base.hpp.
|
inlineprotected |
Definition at line 105 of file cb_rgb_client_behavior_base.hpp.
References completed_.
|
inline |
Definition at line 49 of file cb_rgb_client_behavior_base.hpp.
References camera_, cameraName_, smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation(), smacc2::ISmaccClientBehavior::requiresComponent(), segmenter_, smacc2::SOFT, survey_, table_, and wireCompletionSignals().

|
inlineprotected |
Definition at line 97 of file cb_rgb_client_behavior_base.hpp.
References completed_, and smacc2::SmaccAsyncClientBehavior::postFailureEvent().
Referenced by cl_rgb::CbSurveyTable::onEntry(), cl_rgb::CbWaitForFrame::onEntry(), and update().


|
inlineprotected |
Definition at line 89 of file cb_rgb_client_behavior_base.hpp.
References completed_, and smacc2::SmaccAsyncClientBehavior::postSuccessEvent().
Referenced by cl_rgb::CbSurveyTable::onEntry(), and cl_rgb::CbWaitForFrame::onFrame().


|
inline |
Definition at line 62 of file cb_rgb_client_behavior_base.hpp.
References timeoutMs_.
|
inlineoverridevirtual |
Implements smacc2::ISmaccUpdatable.
Definition at line 64 of file cb_rgb_client_behavior_base.hpp.
References completed_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), postRgbFailure(), timeoutMs_, and watchdogStart_.

|
inlineprotectedvirtual |
Reimplemented in cl_rgb::CbWaitForFrame.
Definition at line 87 of file cb_rgb_client_behavior_base.hpp.
Referenced by onStateOrthogonalAllocation().

|
protected |
Definition at line 108 of file cb_rgb_client_behavior_base.hpp.
Referenced by cl_rgb::CbSurveyTable::onEntry(), cl_rgb::CbWaitForFrame::onEntry(), onStateOrthogonalAllocation(), and cl_rgb::CbWaitForFrame::wireCompletionSignals().
|
protected |
Definition at line 107 of file cb_rgb_client_behavior_base.hpp.
Referenced by onStateOrthogonalAllocation().
|
private |
Definition at line 114 of file cb_rgb_client_behavior_base.hpp.
Referenced by completed(), postRgbFailure(), postRgbSuccess(), and update().
|
protected |
Definition at line 110 of file cb_rgb_client_behavior_base.hpp.
Referenced by cl_rgb::CbSurveyTable::onEntry(), and onStateOrthogonalAllocation().
|
protected |
Definition at line 111 of file cb_rgb_client_behavior_base.hpp.
Referenced by cl_rgb::CbSurveyTable::onEntry(), and onStateOrthogonalAllocation().
|
protected |
Definition at line 109 of file cb_rgb_client_behavior_base.hpp.
Referenced by cl_rgb::CbSurveyTable::onEntry(), and onStateOrthogonalAllocation().
|
private |
Definition at line 115 of file cb_rgb_client_behavior_base.hpp.
Referenced by setTimeout(), and update().
|
private |
Definition at line 116 of file cb_rgb_client_behavior_base.hpp.
Referenced by update().