SMACC2
|
#include <cb_navigate_global_position.hpp>
Public Member Functions | |
CbNavigateGlobalPosition () | |
CbNavigateGlobalPosition (float x, float y, float yaw) | |
void | setGoal (const geometry_msgs::msg::Pose &pose) |
virtual void | onEntry () override |
void | onExit () override |
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) |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
ISmaccClientBehavior () | |
virtual | ~ISmaccClientBehavior () |
ISmaccStateMachine * | getStateMachine () |
std::string | getName () const |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage) |
Public Attributes | |
geometry_msgs::msg::Point | goalPosition |
float | goalYaw |
std::optional< float > | yawTolerance |
std::optional< float > | yawToleranceX |
std::optional< float > | yawToleranceY |
std::optional< std::string > | goalChecker_ |
Private Member Functions | |
void | readStartPoseFromParameterServer (ClNav2Z::Goal &goal) |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
void | postSuccessEvent () |
void | postFailureEvent () |
virtual void | dispose () override |
bool | isShutdownRequested () |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
virtual void | runtimeConfigure () |
virtual void | onEntry () |
virtual void | onExit () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual void | dispose () |
virtual rclcpp::Node::SharedPtr | getNode () |
virtual rclcpp::Logger | getLogger () |
Protected Attributes inherited from cl_nav2z::CbNav2ZClientBehaviorBase | |
cl_nav2z::ClNav2Z * | moveBaseClient_ |
rclcpp_action::ResultCode | navigationResult_ |
Definition at line 29 of file cb_navigate_global_position.hpp.
cl_nav2z::CbNavigateGlobalPosition::CbNavigateGlobalPosition | ( | ) |
cl_nav2z::CbNavigateGlobalPosition::CbNavigateGlobalPosition | ( | float | x, |
float | y, | ||
float | yaw | ||
) |
Definition at line 32 of file cb_navigate_global_position.cpp.
References goalPosition, and goalYaw.
void cl_nav2z::CbNavigateGlobalPosition::execute | ( | ) |
Definition at line 70 of file cb_navigate_global_position.cpp.
References smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getNode(), cl_nav2z::Pose::getReferenceFrame(), smacc2::ISmaccClientBehavior::getStateMachine(), goalPosition, goalYaw, cl_nav2z::CbNav2ZClientBehaviorBase::moveBaseClient_, smacc2::client_bases::SmaccActionClientBase< ActionType >::sendGoal(), and smacc2::ISmaccStateMachine::setGlobalSMData().
Referenced by onEntry().
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 47 of file cb_navigate_global_position.cpp.
References execute(), smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClientBehavior::getCurrentState(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccState::getName(), cl_nav2z::CbNav2ZClientBehaviorBase::moveBaseClient_, and cl_nav2z::GoalCheckerSwitcher::setGoalCheckerId().
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 94 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 41 of file cb_navigate_global_position.cpp.
References goalPosition, and goalYaw.
std::optional<std::string> cl_nav2z::CbNavigateGlobalPosition::goalChecker_ |
Definition at line 39 of file cb_navigate_global_position.hpp.
geometry_msgs::msg::Point cl_nav2z::CbNavigateGlobalPosition::goalPosition |
Definition at line 32 of file cb_navigate_global_position.hpp.
Referenced by CbNavigateGlobalPosition(), execute(), and setGoal().
float cl_nav2z::CbNavigateGlobalPosition::goalYaw |
Definition at line 33 of file cb_navigate_global_position.hpp.
Referenced by CbNavigateGlobalPosition(), execute(), and setGoal().
std::optional<float> cl_nav2z::CbNavigateGlobalPosition::yawTolerance |
Definition at line 35 of file cb_navigate_global_position.hpp.
std::optional<float> cl_nav2z::CbNavigateGlobalPosition::yawToleranceX |
Definition at line 36 of file cb_navigate_global_position.hpp.
std::optional<float> cl_nav2z::CbNavigateGlobalPosition::yawToleranceY |
Definition at line 37 of file cb_navigate_global_position.hpp.