SMACC2
|
#include <cb_nav2z_client_behavior_base.hpp>
Protected Member Functions | |
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 &) |
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 | |
cl_nav2z::ClNav2Z * | nav2zClient_ |
cl_nav2z::ClNav2Z::SmaccNavigateResultSignal::SharedPtr | navigationCallback_ |
rclcpp_action::ResultCode | navigationResult_ |
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 24 of file cb_nav2z_client_behavior_base.cpp.
|
protected |
Definition at line 43 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::client_bases::SmaccActionClientBase< ActionType >::cancelGoal(), and nav2zClient_.
|
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().
|
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().
Referenced by onNavigationResult().
|
protectedvirtual |
Reimplemented in cl_nav2z::CbNavigateNextWaypointUntilReached.
Definition at line 96 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), navigationResult_, and smacc2::SmaccAsyncClientBehavior::postSuccessEvent().
Referenced by onNavigationResult().
|
protectedvirtual |
Definition at line 81 of file cb_nav2z_client_behavior_base.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), onNavigationActionAbort(), and onNavigationActionSuccess().
Referenced by cl_nav2z::CbNavigateNextWaypoint::onEntry(), and sendGoal().
|
inline |
Definition at line 34 of file cb_nav2z_client_behavior_base.hpp.
References nav2zClient_, 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().
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 58 of file cb_nav2z_client_behavior_base.hpp.
Referenced by isOwnActionResponse(), and sendGoal().
|
protected |
Definition at line 51 of file cb_nav2z_client_behavior_base.hpp.
Referenced by cancelGoal(), cl_nav2z::CbNavigateGlobalPosition::execute(), cl_nav2z::CbAbsoluteRotate::onEntry(), cl_nav2z::CbNavigateBackwards::onEntry(), cl_nav2z::CbNavigateForward::onEntry(), cl_nav2z::CbNavigateGlobalPosition::onEntry(), cl_nav2z::CbNavigateNamedWaypoint::onEntry(), cl_nav2z::CbNavigateNextWaypoint::onEntry(), cl_nav2z::CbRotate::onEntry(), cl_nav2z::CbUndoPathBackwards::onEntry(), cl_nav2z::CbUndoPathBackwards::onExit(), cl_nav2z::CbNavigateNextWaypointUntilReached::onNavigationActionSuccess(), onOrthogonalAllocation(), cl_nav2z::CbNavigateNextWaypointUntilReached::onOrthogonalAllocation(), and sendGoal().
|
protected |
Definition at line 52 of file cb_nav2z_client_behavior_base.hpp.
Referenced by sendGoal().
|
protected |
Definition at line 55 of file cb_nav2z_client_behavior_base.hpp.
Referenced by cl_nav2z::CbUndoPathBackwards::onExit(), onNavigationActionAbort(), onNavigationActionSuccess(), and cl_nav2z::CbNavigateNextWaypointUntilReached::onNavigationActionSuccess().