|
SMACC2
|
#include <cb_follow_waypoints.hpp>


Public Member Functions | |
| CbFollowWaypoints (std::vector< std::array< float, 4 > > waypoints, float xyTol=0.5f, float zTol=0.3f) | |
| void | onEntry () override |
| void | onExit () override |
Public Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| virtual | ~SmaccAsyncClientBehavior () |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onSuccess (TCallback callback, T *object) |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onFinished (TCallback callback, T *object) |
| template<typename TCallback , typename T > | |
| smacc2::SmaccSignalConnection | onFailure (TCallback callback, T *object) |
| void | requestForceFinish () |
| void | executeOnEntry () override |
| void | executeOnExit () override |
| void | waitOnEntryThread (bool requestFinish) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onSuccess (TCallbackMethod callback, T *object) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onFinished (TCallbackMethod callback, T *object) |
| template<typename TCallbackMethod , typename T > | |
| smacc2::SmaccSignalConnection | onFailure (TCallbackMethod 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, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
Private Member Functions | |
| void | onGoalReachedCallback () |
| void | commandCurrentWaypoint () |
Private Attributes | |
| std::vector< std::array< float, 4 > > | waypoints_ |
| float | xyTol_ |
| float | zTol_ |
| size_t | currentIndex_ = 0 |
| CpTrajectorySetpoint * | trajectorySetpoint_ = nullptr |
| CpGoalChecker * | goalChecker_ = nullptr |
Additional Inherited Members | |
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 28 of file cb_follow_waypoints.hpp.
| cl_px4_mr::CbFollowWaypoints::CbFollowWaypoints | ( | std::vector< std::array< float, 4 > > | waypoints, |
| float | xyTol = 0.5f, | ||
| float | zTol = 0.3f ) |
Definition at line 22 of file cb_follow_waypoints.cpp.
|
private |
Definition at line 51 of file cb_follow_waypoints.cpp.
References currentIndex_, smacc2::ISmaccClientBehavior::getLogger(), goalChecker_, cl_px4_mr::CpGoalChecker::setGoal(), cl_px4_mr::CpTrajectorySetpoint::setPositionNED(), trajectorySetpoint_, waypoints_, xyTol_, and zTol_.
Referenced by onEntry(), and onGoalReachedCallback().


|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 28 of file cb_follow_waypoints.cpp.
References commandCurrentWaypoint(), smacc2::ISmaccStateMachine::createSignalConnection(), currentIndex_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getStateMachine(), goalChecker_, cl_px4_mr::CpGoalChecker::onGoalReached_, onGoalReachedCallback(), smacc2::SmaccAsyncClientBehavior::postSuccessEvent(), smacc2::ISmaccClientBehavior::requiresComponent(), trajectorySetpoint_, and waypoints_.

|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 49 of file cb_follow_waypoints.cpp.
References cl_px4_mr::CpGoalChecker::clearGoal(), and goalChecker_.

|
private |
Definition at line 67 of file cb_follow_waypoints.cpp.
References commandCurrentWaypoint(), currentIndex_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::SmaccAsyncClientBehavior::postSuccessEvent(), and waypoints_.
Referenced by onEntry().


|
private |
Definition at line 44 of file cb_follow_waypoints.hpp.
Referenced by commandCurrentWaypoint(), onEntry(), and onGoalReachedCallback().
|
private |
Definition at line 47 of file cb_follow_waypoints.hpp.
Referenced by commandCurrentWaypoint(), onEntry(), and onExit().
|
private |
Definition at line 46 of file cb_follow_waypoints.hpp.
Referenced by commandCurrentWaypoint(), and onEntry().
|
private |
Definition at line 41 of file cb_follow_waypoints.hpp.
Referenced by commandCurrentWaypoint(), onEntry(), and onGoalReachedCallback().
|
private |
Definition at line 42 of file cb_follow_waypoints.hpp.
Referenced by commandCurrentWaypoint().
|
private |
Definition at line 43 of file cb_follow_waypoints.hpp.
Referenced by commandCurrentWaypoint().