SMACC2
|
#include <cb_absolute_rotate.hpp>
Public Member Functions | |
CbAbsoluteRotate () | |
CbAbsoluteRotate (float absoluteGoalAngleDegree, float yawGoalTolerance=-1) | |
void | onEntry () override |
void | onExit () override |
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 | |
std::shared_ptr< tf2_ros::Buffer > | listener |
float | absoluteGoalAngleDegree |
std::optional< float > | yawGoalTolerance |
std::optional< float > | maxVelTheta |
std::optional< SpinningPlanner > | spinningPlanner |
Private Member Functions | |
void | updateTemporalBehaviorParameters (bool undo) |
Private Attributes | |
float | oldYawTolerance |
float | oldMaxVelTheta |
float | oldMinVelTheta |
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_absolute_rotate.hpp.
cl_nav2z::CbAbsoluteRotate::CbAbsoluteRotate | ( | ) |
Definition at line 32 of file cb_absolute_rotate.cpp.
cl_nav2z::CbAbsoluteRotate::CbAbsoluteRotate | ( | float | absoluteGoalAngleDegree, |
float | yawGoalTolerance = -1 |
||
) |
Definition at line 33 of file cb_absolute_rotate.cpp.
References absoluteGoalAngleDegree, and yawGoalTolerance.
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 43 of file cb_absolute_rotate.cpp.
References absoluteGoalAngleDegree, smacc2::ISmaccClient::getComponent(), smacc2::ISmaccClientBehavior::getCurrentState(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccState::getName(), smacc2::ISmaccClientBehavior::getNode(), cl_nav2z::Pose::getReferenceFrame(), listener, cl_nav2z::CbNav2ZClientBehaviorBase::moveBaseClient_, cl_nav2z::PureSpinning, cl_nav2z::odom_tracker::RECORD_PATH, smacc2::client_bases::SmaccActionClientBase< ActionType >::sendGoal(), cl_nav2z::GoalCheckerSwitcher::setGoalCheckerId(), cl_nav2z::PlannerSwitcher::setPureSpinningPlanner(), spinningPlanner, and updateTemporalBehaviorParameters().
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 264 of file cb_absolute_rotate.cpp.
References cl_nav2z::PureSpinning, spinningPlanner, and updateTemporalBehaviorParameters().
|
private |
Definition at line 99 of file cb_absolute_rotate.cpp.
References cl_nav2z::Default, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getNode(), maxVelTheta, oldMaxVelTheta, oldMinVelTheta, oldYawTolerance, cl_nav2z::PureSpinning, spinningPlanner, and yawGoalTolerance.
Referenced by onEntry(), and onExit().
float cl_nav2z::CbAbsoluteRotate::absoluteGoalAngleDegree |
Definition at line 34 of file cb_absolute_rotate.hpp.
Referenced by CbAbsoluteRotate(), and onEntry().
std::shared_ptr<tf2_ros::Buffer> cl_nav2z::CbAbsoluteRotate::listener |
Definition at line 32 of file cb_absolute_rotate.hpp.
Referenced by onEntry().
std::optional<float> cl_nav2z::CbAbsoluteRotate::maxVelTheta |
Definition at line 36 of file cb_absolute_rotate.hpp.
Referenced by updateTemporalBehaviorParameters().
|
private |
Definition at line 48 of file cb_absolute_rotate.hpp.
Referenced by updateTemporalBehaviorParameters().
|
private |
Definition at line 49 of file cb_absolute_rotate.hpp.
Referenced by updateTemporalBehaviorParameters().
|
private |
Definition at line 47 of file cb_absolute_rotate.hpp.
Referenced by updateTemporalBehaviorParameters().
std::optional<SpinningPlanner> cl_nav2z::CbAbsoluteRotate::spinningPlanner |
std::optional<float> cl_nav2z::CbAbsoluteRotate::yawGoalTolerance |
Definition at line 35 of file cb_absolute_rotate.hpp.
Referenced by CbAbsoluteRotate(), and updateTemporalBehaviorParameters().