SMACC2
|
#include <cb_nav2z_client_behavior_base.hpp>
Public Member Functions | |
virtual | ~CbNav2ZClientBehaviorBase () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onStateOrthogonalAllocation () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual | ~CbNav2ZClientBehaviorBase () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onStateOrthogonalAllocation () |
![]() | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onStateOrthogonalAllocation () |
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) |
void | requestForceFinish () |
void | executeOnEntry () override |
void | executeOnExit () override |
void | waitOnEntryThread (bool requestFinish) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onSuccess (TCallbackMethod callback, T *object) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onFinished (TCallbackMethod callback, T *object) |
template<typename TCallbackMethod , typename T > | |
boost::signals2::connection | onFailure (TCallbackMethod callback, T *object) |
![]() | |
ISmaccClientBehavior () | |
virtual | ~ISmaccClientBehavior () |
ISmaccStateMachine * | getStateMachine () |
std::string | getName () const |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage, bool throwExceptionIfNotExist) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
virtual void | onEntry () |
virtual void | onExit () |
Protected Member Functions | |
void | sendGoal (nav2_msgs::action::NavigateToPose::Goal &goal) |
void | cancelGoal () |
template<typename T > | |
boost::signals2::connection | onNavigationSucceeded (void(T::*callback)(const components::CpNav2ActionInterface::WrappedResult &), T *object) |
template<typename T > | |
boost::signals2::connection | onNavigationAborted (void(T::*callback)(const components::CpNav2ActionInterface::WrappedResult &), T *object) |
template<typename T > | |
boost::signals2::connection | onNavigationCancelled (void(T::*callback)(const components::CpNav2ActionInterface::WrappedResult &), T *object) |
virtual void | onNavigationResult (const components::CpNav2ActionInterface::WrappedResult &) |
virtual void | onNavigationActionSuccess (const components::CpNav2ActionInterface::WrappedResult &) |
virtual void | onNavigationActionAbort (const components::CpNav2ActionInterface::WrappedResult &) |
void | sendGoal (ClNav2Z::Goal &goal) |
void | cancelGoal () |
bool | isOwnActionResponse (const ClNav2Z::WrappedResult &) |
virtual void | onNavigationResult (const ClNav2Z::WrappedResult &) |
virtual void | onNavigationActionSuccess (const ClNav2Z::WrappedResult &) |
virtual void | onNavigationActionAbort (const ClNav2Z::WrappedResult &) |
![]() | |
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. | |
![]() | |
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 | |
components::CpNav2ActionInterface * | nav2ActionInterface_ = nullptr |
smacc2::client_core_components::CpActionClient< nav2_msgs::action::NavigateToPose > * | actionClient_ = nullptr |
rclcpp_action::ResultCode | navigationResult_ |
cl_nav2z::ClNav2Z * | nav2zClient_ |
cl_nav2z::ClNav2Z::SmaccNavigateResultSignal::SharedPtr | navigationCallback_ |
std::shared_future< std::shared_ptr< rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose > > > | goalHandleFuture_ |
Definition at line 28 of file cb_nav2z_client_behavior_base.hpp.
|
virtual |
Definition at line 25 of file cb_nav2z_client_behavior_base.cpp.
|
virtual |
|
inlineprotected |
Definition at line 66 of file cb_nav2z_client_behavior_base.hpp.
References cl_nav2z::components::CpNav2ActionInterface::cancelNavigation(), and nav2ActionInterface_.
|
protected |
|
protected |
Definition at line 45 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::introspection::demangleType(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), goalHandleFuture_, and smacc2::SmaccAsyncClientBehavior::isShutdownRequested().
|
inlineprotected |
Definition at line 87 of file cb_nav2z_client_behavior_base.hpp.
References nav2ActionInterface_, and cl_nav2z::components::CpNav2ActionInterface::onNavigationAborted().
|
protectedvirtual |
Definition at line 112 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), navigationResult_, and smacc2::SmaccAsyncClientBehavior::postFailureEvent().
|
inlineprotectedvirtual |
Definition at line 127 of file cb_nav2z_client_behavior_base.hpp.
Referenced by onNavigationResult().
|
protectedvirtual |
Definition at line 96 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), navigationResult_, and smacc2::SmaccAsyncClientBehavior::postSuccessEvent().
|
inlineprotectedvirtual |
Reimplemented in cl_nav2z::CbNavigateNextWaypointUntilReached, and cl_nav2z::CbNavigateNextWaypointUntilReached.
Definition at line 124 of file cb_nav2z_client_behavior_base.hpp.
Referenced by onNavigationResult().
|
inlineprotected |
Definition at line 98 of file cb_nav2z_client_behavior_base.hpp.
References nav2ActionInterface_, and cl_nav2z::components::CpNav2ActionInterface::onNavigationCancelled().
|
protectedvirtual |
Definition at line 81 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), onNavigationActionAbort(), and onNavigationActionSuccess().
|
inlineprotectedvirtual |
Definition at line 123 of file cb_nav2z_client_behavior_base.hpp.
Referenced by sendGoal().
|
inlineprotected |
Definition at line 76 of file cb_nav2z_client_behavior_base.hpp.
References nav2ActionInterface_, and cl_nav2z::components::CpNav2ActionInterface::onNavigationSucceeded().
|
inline |
Definition at line 51 of file cb_nav2z_client_behavior_base.hpp.
References onStateOrthogonalAllocation().
|
inline |
Definition at line 40 of file cb_nav2z_client_behavior_base.hpp.
References onStateOrthogonalAllocation().
|
inline |
Definition at line 37 of file cb_nav2z_client_behavior_base.hpp.
References actionClient_, nav2ActionInterface_, smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation(), and smacc2::ISmaccClientBehavior::requiresComponent().
Referenced by onOrthogonalAllocation().
|
inline |
Definition at line 47 of file cb_nav2z_client_behavior_base.hpp.
References nav2zClient_, smacc2::SmaccAsyncClientBehavior::onStateOrthogonalAllocation(), and smacc2::ISmaccClientBehavior::requiresClient().
|
protected |
Definition at line 26 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccClientBehavior::getStateMachine(), goalHandleFuture_, nav2zClient_, navigationCallback_, onNavigationResult(), and smacc2::client_bases::SmaccActionClientBase< ActionType >::sendGoal().
|
inlineprotected |
Definition at line 58 of file cb_nav2z_client_behavior_base.hpp.
References nav2ActionInterface_, and cl_nav2z::components::CpNav2ActionInterface::sendGoal().
Referenced by cl_nav2z::CbNavigateGlobalPosition::execute(), cl_nav2z::CbAbsoluteRotate::onEntry(), cl_nav2z::CbNavigateBackwards::onEntry(), cl_nav2z::CbNavigateForward::onEntry(), cl_nav2z::CbRotate::onEntry(), and cl_nav2z::CbUndoPathBackwards::onEntry().
|
protected |
Definition at line 111 of file cb_nav2z_client_behavior_base.hpp.
Referenced by onStateOrthogonalAllocation().
|
protected |
Definition at line 71 of file cb_nav2z_client_behavior_base.hpp.
Referenced by isOwnActionResponse(), and sendGoal().
|
protected |
Definition at line 109 of file cb_nav2z_client_behavior_base.hpp.
Referenced by cancelGoal(), onNavigationAborted(), onNavigationCancelled(), onNavigationSucceeded(), onStateOrthogonalAllocation(), and sendGoal().
|
protected |
|
protected |
Definition at line 65 of file cb_nav2z_client_behavior_base.hpp.
Referenced by sendGoal().
|
protected |
Definition at line 114 of file cb_nav2z_client_behavior_base.hpp.
Referenced by cl_nav2z::CbUndoPathBackwards::onExit(), onNavigationActionAbort(), onNavigationActionSuccess(), cl_nav2z::CbNavigateNextWaypointUntilReached::onNavigationActionSuccess(), and cl_nav2z::CbNavigateNextWaypointUntilReached::onNavigationActionSuccess().