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

#include <cb_stop_navigation.hpp>

Inheritance diagram for cl_nitrosz::CbStopNavigation:
Inheritance graph
Collaboration diagram for cl_nitrosz::CbStopNavigation:
Collaboration graph

Public Member Functions

 CbStopNavigation ()
 
void onEntry () override
 
void onExit () override
 
- Public Member Functions inherited from cl_nitrosz::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_nitrosz::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_nitrosz::CbNavigateGlobalPosition
float goalYaw
 
CbNavigateGlobalPositionOptions options
 
geometry_msgs::msg::Point goalPosition
 
- Protected Member Functions inherited from cl_nitrosz::CbNav2ZClientBehaviorBase
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 ()
 
ISmaccStategetCurrentState ()
 
virtual rclcpp::Node::SharedPtr getNode () const
 
virtual rclcpp::Logger getLogger () const
 
- Protected Attributes inherited from cl_nitrosz::CbNav2ZClientBehaviorBase
cl_nitrosz::ClNitrosZnitroszClient_
 
cl_nitrosz::ClNitrosZ::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_nitrosz::CbStopNavigation::CbStopNavigation ( )

Definition at line 32 of file cb_stop_navigation.cpp.

32{}

Member Function Documentation

◆ onEntry()

void cl_nitrosz::CbStopNavigation::onEntry ( )
overridevirtual

Reimplemented from cl_nitrosz::CbNavigateGlobalPosition.

Definition at line 34 of file cb_stop_navigation.cpp.

35{
36 // this->sendGoal(goal);
37
38 // this->cancelGoal();
39
40 cl_nitrosz::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_nitrosz::CbNavigateGlobalPosition::onEntry(), smacc2::ISmaccClientBehavior::requiresComponent(), cl_nitrosz::CbNavigateGlobalPosition::setGoal(), and cl_nitrosz::Pose::toPoseMsg().

Here is the call graph for this function:

◆ onExit()

void cl_nitrosz::CbStopNavigation::onExit ( )
overridevirtual

Reimplemented from cl_nitrosz::CbNavigateGlobalPosition.

Definition at line 50 of file cb_stop_navigation.cpp.

50{}

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