23 std::vector<std::array<float, 4>> waypoints,
float xyTol,
float zTol)
24: waypoints_(std::move(waypoints)), xyTol_(xyTol), zTol_(zTol)
38 RCLCPP_WARN(
getLogger(),
"CbFollowWaypoints: no waypoints provided - posting success");
60 getLogger(),
"CbFollowWaypoints: commanding waypoint %zu/%zu [%.2f, %.2f, %.2f] yaw=%.2f",
74 getLogger(),
"CbFollowWaypoints: all %zu waypoints reached - posting success",
CbFollowWaypoints(std::vector< std::array< float, 4 > > waypoints, float xyTol=0.5f, float zTol=0.3f)
void onGoalReachedCallback()
void commandCurrentWaypoint()
CpGoalChecker * goalChecker_
std::vector< std::array< float, 4 > > waypoints_
CpTrajectorySetpoint * trajectorySetpoint_
void setGoal(float x, float y, float z, float xy_tolerance=0.5f, float z_tolerance=0.3f)
smacc2::SmaccSignal< void()> onGoalReached_
void setPositionNED(float x, float y, float z, float yaw=std::numeric_limits< float >::quiet_NaN())
virtual rclcpp::Logger getLogger() const
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
ISmaccStateMachine * getStateMachine()
smacc2::SmaccSignalConnection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)