SMACC2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cl_nav2z::CbStopNavigation Class Reference

#include <cb_stop_navigation.hpp>

Inheritance diagram for cl_nav2z::CbStopNavigation:
Inheritance graph
Collaboration diagram for cl_nav2z::CbStopNavigation:
Collaboration graph

Public Member Functions

 CbStopNavigation ()
 
void onEntry () override
 
void onExit () override
 
- Public Member Functions inherited from cl_nav2z::CbNavigateGlobalPosition
 CbNavigateGlobalPosition ()
 
 CbNavigateGlobalPosition (float x, float y, float yaw, std::optional< CbNavigateGlobalPositionOptions > options=std::nullopt)
 
void setGoal (const geometry_msgs::msg::Pose &pose)
 
void execute ()
 
- Public Member Functions inherited from cl_nav2z::CbNav2ZClientBehaviorBase
virtual ~CbNav2ZClientBehaviorBase ()
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
- Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
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)
 
- Public Member Functions inherited from smacc2::ISmaccClientBehavior
 ISmaccClientBehavior ()
 
virtual ~ISmaccClientBehavior ()
 
ISmaccStateMachinegetStateMachine ()
 
std::string getName () const
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
template<typename SmaccComponentType >
void requiresComponent (SmaccComponentType *&storage, bool throwExceptionIfNotExist=false)
 

Additional Inherited Members

- Public Attributes inherited from cl_nav2z::CbNavigateGlobalPosition
float goalYaw
 
CbNavigateGlobalPositionOptions options
 
geometry_msgs::msg::Point goalPosition
 
- Protected Member Functions inherited from cl_nav2z::CbNav2ZClientBehaviorBase
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 ()
 
ISmaccStategetCurrentState ()
 
virtual rclcpp::Node::SharedPtr getNode () const
 
virtual rclcpp::Logger getLogger () const
 
- Protected Attributes inherited from cl_nav2z::CbNav2ZClientBehaviorBase
cl_nav2z::ClNav2Znav2zClient_
 
cl_nav2z::ClNav2Z::SmaccNavigateResultSignal::SharedPtr navigationCallback_
 
rclcpp_action::ResultCode navigationResult_
 
std::shared_future< std::shared_ptr< rclcpp_action::ClientGoalHandle< nav2_msgs::action::NavigateToPose > > > goalHandleFuture_
 

Detailed Description

Definition at line 30 of file cb_stop_navigation.hpp.

Constructor & Destructor Documentation

◆ CbStopNavigation()

cl_nav2z::CbStopNavigation::CbStopNavigation ( )

Definition at line 32 of file cb_stop_navigation.cpp.

32{}

Member Function Documentation

◆ onEntry()

void cl_nav2z::CbStopNavigation::onEntry ( )
overridevirtual

Reimplemented from cl_nav2z::CbNavigateGlobalPosition.

Definition at line 34 of file cb_stop_navigation.cpp.

35{
36 // this->sendGoal(goal);
37
38 // this->cancelGoal();
39
40 cl_nav2z::Pose * poseComponent;
41 this->requiresComponent(poseComponent);
42
43 this->setGoal(poseComponent->toPoseMsg());
44
46
47 // this->sendGoal(goal);
48}
void setGoal(const geometry_msgs::msg::Pose &pose)
geometry_msgs::msg::Pose toPoseMsg()
Definition cp_pose.hpp:57
void requiresComponent(SmaccComponentType *&storage, bool throwExceptionIfNotExist=false)

References cl_nav2z::CbNavigateGlobalPosition::onEntry(), smacc2::ISmaccClientBehavior::requiresComponent(), cl_nav2z::CbNavigateGlobalPosition::setGoal(), and cl_nav2z::Pose::toPoseMsg().

Here is the call graph for this function:

◆ onExit()

void cl_nav2z::CbStopNavigation::onExit ( )
overridevirtual

Reimplemented from cl_nav2z::CbNavigateGlobalPosition.

Definition at line 50 of file cb_stop_navigation.cpp.

50{}

The documentation for this class was generated from the following files: