SMACC2
|
#include <cb_nitrosz_client_behavior_base.hpp>
Protected Member Functions | |
void | sendGoal (ClNitrosZ::Goal &goal) |
void | cancelGoal () |
bool | isOwnActionResponse (const ClNitrosZ::WrappedResult &) |
virtual void | onNavigationResult (const ClNitrosZ::WrappedResult &) |
virtual void | onNavigationActionSuccess (const ClNitrosZ::WrappedResult &) |
virtual void | onNavigationActionAbort (const ClNitrosZ::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_nitrosz::ClNitrosZ * | nitroszClient_ |
cl_nitrosz::ClNitrosZ::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_nitrosz_client_behavior_base.hpp.
|
virtual |
Definition at line 24 of file cb_nitrosz_client_behavior_base.cpp.
|
protected |
Definition at line 43 of file cb_nitrosz_client_behavior_base.cpp.
References smacc2::client_bases::SmaccActionClientBase< ActionType >::cancelGoal(), and nitroszClient_.
|
protected |
Definition at line 45 of file cb_nitrosz_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_nitrosz_client_behavior_base.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), navigationResult_, and smacc2::SmaccAsyncClientBehavior::postFailureEvent().
Referenced by onNavigationResult().
|
protectedvirtual |
Reimplemented in cl_nitrosz::CbNavigateNextWaypointUntilReached.
Definition at line 96 of file cb_nitrosz_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_nitrosz_client_behavior_base.cpp.
References smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), onNavigationActionAbort(), and onNavigationActionSuccess().
Referenced by cl_nitrosz::CbNavigateNextWaypoint::onEntry(), and sendGoal().
|
inline |
Definition at line 34 of file cb_nitrosz_client_behavior_base.hpp.
References nitroszClient_, and smacc2::ISmaccClientBehavior::requiresClient().
|
protected |
Definition at line 26 of file cb_nitrosz_client_behavior_base.cpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccClientBehavior::getStateMachine(), goalHandleFuture_, navigationCallback_, nitroszClient_, onNavigationResult(), and smacc2::client_bases::SmaccActionClientBase< ActionType >::sendGoal().
Referenced by cl_nitrosz::CbNavigateGlobalPosition::execute(), cl_nitrosz::CbAbsoluteRotate::onEntry(), cl_nitrosz::CbNavigateBackwards::onEntry(), cl_nitrosz::CbNavigateForward::onEntry(), cl_nitrosz::CbRotate::onEntry(), and cl_nitrosz::CbUndoPathBackwards::onEntry().
|
protected |
Definition at line 58 of file cb_nitrosz_client_behavior_base.hpp.
Referenced by isOwnActionResponse(), and sendGoal().
|
protected |
Definition at line 52 of file cb_nitrosz_client_behavior_base.hpp.
Referenced by sendGoal().
|
protected |
Definition at line 55 of file cb_nitrosz_client_behavior_base.hpp.
Referenced by cl_nitrosz::CbUndoPathBackwards::onExit(), onNavigationActionAbort(), onNavigationActionSuccess(), and cl_nitrosz::CbNavigateNextWaypointUntilReached::onNavigationActionSuccess().
|
protected |
Definition at line 51 of file cb_nitrosz_client_behavior_base.hpp.
Referenced by cancelGoal(), cl_nitrosz::CbNavigateGlobalPosition::execute(), cl_nitrosz::CbAbsoluteRotate::onEntry(), cl_nitrosz::CbNavigateBackwards::onEntry(), cl_nitrosz::CbNavigateForward::onEntry(), cl_nitrosz::CbNavigateGlobalPosition::onEntry(), cl_nitrosz::CbNavigateNamedWaypoint::onEntry(), cl_nitrosz::CbNavigateNextWaypoint::onEntry(), cl_nitrosz::CbRotate::onEntry(), cl_nitrosz::CbUndoPathBackwards::onEntry(), cl_nitrosz::CbUndoPathBackwards::onExit(), cl_nitrosz::CbNavigateNextWaypointUntilReached::onNavigationActionSuccess(), cl_nitrosz::CbNavigateNextWaypointUntilReached::onOrthogonalAllocation(), onOrthogonalAllocation(), and sendGoal().