|
SMACC2
|
#include <cb_action_client_behavior_base.hpp>


Public Types | |
| using | Goal = typename TAction::Goal |
| using | GoalHandle = rclcpp_action::ClientGoalHandle<TAction> |
| using | WrappedResult = typename GoalHandle::WrappedResult |
| using | Feedback = typename TAction::Feedback |
| using | ActionClientComponent = smacc2::client_core_components::CpActionClient<TAction> |
Public Member Functions | |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| virtual | ~CbActionClientBehaviorBase () |
| void | onExit () override |
Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| virtual | ~SmaccAsyncClientBehavior () |
| 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 () |
| 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 (std::string name, SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| virtual void | onEntry () |
Protected Member Functions | |
| bool | sendGoal (Goal &goal) |
| void | cancelGoal () |
| virtual void | onActionSuccess (const WrappedResult &result) |
| virtual void | onActionAbort (const WrappedResult &result) |
| virtual void | onActionFeedback (const Feedback &) |
| void | setActionClientName (std::string name) |
Protected Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
| void | postSuccessEvent () |
| void | postFailureEvent () |
| virtual 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 () |
| virtual rclcpp::Node::SharedPtr | getNode () const |
| virtual rclcpp::Logger | getLogger () const |
Protected Attributes | |
| ActionClientComponent * | actionClient_ = nullptr |
| std::string | actionClientName_ |
| rclcpp_action::ResultCode | actionResult_ = rclcpp_action::ResultCode::UNKNOWN |
| std::chrono::milliseconds | goalResponseTimeout_ = std::chrono::milliseconds(10000) |
Private Member Functions | |
| void | dispatchActionSuccess (const WrappedResult &result) |
| void | dispatchActionAbort (const WrappedResult &result) |
| void | dispatchActionFeedback (const Feedback &feedback) |
Private Attributes | |
| bool | resultConnectionsInitialized_ = false |
| std::atomic< bool > | goalInFlight_ {false} |
| std::atomic< bool > | goalActivitySeen_ {false} |
Definition at line 51 of file cb_action_client_behavior_base.hpp.
| using smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::ActionClientComponent = smacc2::client_core_components::CpActionClient<TAction> |
Definition at line 58 of file cb_action_client_behavior_base.hpp.
| using smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::Feedback = typename TAction::Feedback |
Definition at line 57 of file cb_action_client_behavior_base.hpp.
| using smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::Goal = typename TAction::Goal |
Definition at line 54 of file cb_action_client_behavior_base.hpp.
| using smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::GoalHandle = rclcpp_action::ClientGoalHandle<TAction> |
Definition at line 55 of file cb_action_client_behavior_base.hpp.
| using smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::WrappedResult = typename GoalHandle::WrappedResult |
Definition at line 56 of file cb_action_client_behavior_base.hpp.
|
inlinevirtual |
Definition at line 86 of file cb_action_client_behavior_base.hpp.
|
inlineprotected |
Definition at line 173 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::actionClient_, and smacc2::client_core_components::CpActionClient< ActionType >::cancelGoal().
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onExit().


|
inlineprivate |
Definition at line 226 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalActivitySeen_, smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalInFlight_, and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onActionAbort().
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onStateOrthogonalAllocation().


|
inlineprivate |
Definition at line 233 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalActivitySeen_, and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onActionFeedback().
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onStateOrthogonalAllocation().


|
inlineprivate |
Definition at line 219 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalActivitySeen_, smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalInFlight_, and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onActionSuccess().
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onStateOrthogonalAllocation().


|
inlineprotectedvirtual |
Definition at line 191 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::actionResult_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), and smacc2::SmaccAsyncClientBehavior::postFailureEvent().
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionAbort().


|
inlineprotectedvirtual |
Definition at line 199 of file cb_action_client_behavior_base.hpp.
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionFeedback().

|
inlineprotectedvirtual |
Definition at line 184 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::actionResult_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), and smacc2::SmaccAsyncClientBehavior::postSuccessEvent().
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionSuccess().


|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Reimplemented in cl_nav2z::CbNavigateBackwards, cl_nav2z::CbNavigateForward, cl_nav2z::CbNavigateGlobalPosition, cl_nav2z::CbNavigateNamedWaypoint, cl_nav2z::CbNavigateNextWaypoint, cl_nav2z::CbNavigateNextWaypointUntilReached, cl_nav2z::CbStopNavigation, and cl_nav2z::CbUndoPathBackwards.
Definition at line 93 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::cancelGoal(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalInFlight_.

|
inline |
Definition at line 61 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::actionClient_, smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::actionClientName_, smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionAbort(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionFeedback(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionSuccess(), smacc2::HARD, smacc2::client_core_components::CpActionClient< ActionType >::onAborted(), smacc2::client_core_components::CpActionClient< ActionType >::onCancelled(), smacc2::client_core_components::CpActionClient< ActionType >::onFeedback(), smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation(), smacc2::client_core_components::CpActionClient< ActionType >::onSucceeded(), smacc2::ISmaccClientBehavior::requiresComponent(), and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::resultConnectionsInitialized_.

|
inlineprotected |
Definition at line 112 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::actionClient_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalActivitySeen_, smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalInFlight_, smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::goalResponseTimeout_, smacc2::client_core_components::CpActionClient< ActionType >::isServerReady(), smacc2::SmaccAsyncClientBehavior::isShutdownRequested(), smacc2::SmaccAsyncClientBehavior::postFailureEvent(), and smacc2::client_core_components::CpActionClient< ActionType >::sendGoal().

|
inlineprotected |
Definition at line 205 of file cb_action_client_behavior_base.hpp.
References smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::actionClientName_.
|
protected |
Definition at line 207 of file cb_action_client_behavior_base.hpp.
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::cancelGoal(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onStateOrthogonalAllocation(), and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::sendGoal().
|
protected |
|
protected |
|
private |
Definition at line 241 of file cb_action_client_behavior_base.hpp.
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionAbort(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionFeedback(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionSuccess(), and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::sendGoal().
|
private |
Definition at line 240 of file cb_action_client_behavior_base.hpp.
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionAbort(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::dispatchActionSuccess(), smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onExit(), and smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::sendGoal().
|
protected |
Definition at line 213 of file cb_action_client_behavior_base.hpp.
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::sendGoal().
|
private |
Definition at line 239 of file cb_action_client_behavior_base.hpp.
Referenced by smacc2::client_behavior_bases::CbActionClientBehaviorBase< TAction >::onStateOrthogonalAllocation().