SMACC2
|
#include <cb_navigate_forward.hpp>
Public Attributes | |
CbNavigateForwardOptions | options |
Protected Attributes | |
odom_tracker::CpOdomTracker * | odomTracker_ |
std::optional< geometry_msgs::msg::PoseStamped > | goalPose_ |
std::optional< float > | forwardDistance_ |
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_ |
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 |
Definition at line 48 of file cb_navigate_forward.hpp.
cl_nav2z::CbNavigateForward::CbNavigateForward | ( | ) |
Definition at line 36 of file cb_navigate_forward.cpp.
cl_nav2z::CbNavigateForward::CbNavigateForward | ( | float | forwardDistance | ) |
Definition at line 35 of file cb_navigate_forward.cpp.
cl_nav2z::CbNavigateForward::CbNavigateForward | ( | geometry_msgs::msg::PoseStamped | goalPosition | ) |
Definition at line 38 of file cb_navigate_forward.cpp.
|
virtual |
Definition at line 40 of file cb_navigate_forward.cpp.
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 57 of file cb_navigate_forward.cpp.
References cl_nav2z::CbNavigateForwardOptions::forceInitialOrientation, forwardDistance_, smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClientBehavior::getCurrentState(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccState::getName(), smacc2::ISmaccClientBehavior::getNode(), cl_nav2z::Pose::getReferenceFrame(), goalPose_, cl_nav2z::CbNav2ZClientBehaviorBase::nav2zClient_, odomTracker_, options, cl_nav2z::odom_tracker::CpOdomTracker::pushPath(), cl_nav2z::CbNav2ZClientBehaviorBase::sendGoal(), cl_nav2z::odom_tracker::CpOdomTracker::setCurrentMotionGoal(), setForwardDistance(), cl_nav2z::CpPlannerSwitcher::setForwardPlanner(), cl_nav2z::CpGoalCheckerSwitcher::setGoalCheckerId(), cl_nav2z::odom_tracker::CpOdomTracker::setStartPoint(), and cl_nav2z::odom_tracker::CpOdomTracker::setWorkingMode().
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 150 of file cb_navigate_forward.cpp.
References odomTracker_, and cl_nav2z::odom_tracker::CpOdomTracker::setWorkingMode().
void cl_nav2z::CbNavigateForward::setForwardDistance | ( | float | distance_meters | ) |
Definition at line 42 of file cb_navigate_forward.cpp.
References forwardDistance_, smacc2::ISmaccClientBehavior::getLogger(), and smacc2::ISmaccClientBehavior::getName().
Referenced by onEntry().
|
protected |
Definition at line 77 of file cb_navigate_forward.hpp.
Referenced by onEntry(), and setForwardDistance().
|
protected |
Definition at line 75 of file cb_navigate_forward.hpp.
Referenced by onEntry().
|
protected |
Definition at line 73 of file cb_navigate_forward.hpp.
CbNavigateForwardOptions cl_nav2z::CbNavigateForward::options |
Definition at line 51 of file cb_navigate_forward.hpp.
Referenced by onEntry().