SMACC2
|
#include <cb_navigate_global_position.hpp>
Public Attributes | |
float | goalYaw |
CbNavigateGlobalPositionOptions | options |
geometry_msgs::msg::Point | goalPosition |
Private Member Functions | |
void | readStartPoseFromParameterServer (ClNav2Z::Goal &goal) |
Additional Inherited Members | |
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 () |
ISmaccState * | getCurrentState () |
virtual rclcpp::Node::SharedPtr | getNode () const |
virtual rclcpp::Logger | getLogger () const |
Protected Attributes inherited from cl_nav2z::CbNav2ZClientBehaviorBase | |
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 40 of file cb_navigate_global_position.hpp.
cl_nav2z::CbNavigateGlobalPosition::CbNavigateGlobalPosition | ( | ) |
Definition at line 32 of file cb_navigate_global_position.cpp.
cl_nav2z::CbNavigateGlobalPosition::CbNavigateGlobalPosition | ( | float | x, |
float | y, | ||
float | yaw, | ||
std::optional< CbNavigateGlobalPositionOptions > | options = std::nullopt |
||
) |
Definition at line 34 of file cb_navigate_global_position.cpp.
References goalPosition, goalYaw, and options.
void cl_nav2z::CbNavigateGlobalPosition::execute | ( | ) |
Definition at line 83 of file cb_navigate_global_position.cpp.
References smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClientBehavior::getLogger(), cl_nav2z::Pose::getReferenceFrame(), goalPosition, goalYaw, cl_nav2z::CbNav2ZClientBehaviorBase::nav2zClient_, and cl_nav2z::CbNav2ZClientBehaviorBase::sendGoal().
Referenced by onEntry().
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Reimplemented in cl_nav2z::CbStopNavigation.
Definition at line 52 of file cb_navigate_global_position.cpp.
References cl_nav2z::CbNavigateGlobalPositionOptions::controllerName_, execute(), smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClientBehavior::getCurrentState(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccState::getName(), cl_nav2z::CbNav2ZClientBehaviorBase::nav2zClient_, options, and cl_nav2z::CpGoalCheckerSwitcher::setGoalCheckerId().
Referenced by cl_nav2z::CbStopNavigation::onEntry().
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Reimplemented in cl_nav2z::CbStopNavigation.
Definition at line 104 of file cb_navigate_global_position.cpp.
References smacc2::ISmaccClientBehavior::getLogger().
|
private |
void cl_nav2z::CbNavigateGlobalPosition::setGoal | ( | const geometry_msgs::msg::Pose & | pose | ) |
Definition at line 46 of file cb_navigate_global_position.cpp.
References goalPosition, and goalYaw.
Referenced by cl_nav2z::CbStopNavigation::onEntry().
geometry_msgs::msg::Point cl_nav2z::CbNavigateGlobalPosition::goalPosition |
Definition at line 46 of file cb_navigate_global_position.hpp.
Referenced by CbNavigateGlobalPosition(), execute(), and setGoal().
float cl_nav2z::CbNavigateGlobalPosition::goalYaw |
Definition at line 43 of file cb_navigate_global_position.hpp.
Referenced by CbNavigateGlobalPosition(), execute(), and setGoal().
CbNavigateGlobalPositionOptions cl_nav2z::CbNavigateGlobalPosition::options |
Definition at line 45 of file cb_navigate_global_position.hpp.
Referenced by CbNavigateGlobalPosition(), and onEntry().