28 RCLCPP_INFO(
getLogger(),
"CpGoalChecker: initialized");
38 float xyDist = std::sqrt(dx * dx + dy * dy);
39 float zDist = std::abs(dz);
44 getLogger(),
"CpGoalChecker: GOAL REACHED (xy_dist=%.2f z_dist=%.2f)", xyDist, zDist);
59 getLogger(),
"CpGoalChecker: goal set [%.2f, %.2f, %.2f] tol(xy=%.2f z=%.2f)", x, y, z,
60 xy_tolerance, z_tolerance);
CpVehicleLocalPosition * localPosition_
void setGoal(float x, float y, float z, float xy_tolerance=0.5f, float z_tolerance=0.3f)
~CpGoalChecker() override
smacc2::SmaccSignal< void()> onGoalReached_
void onInitialize() override
bool isGoalActive() const
rclcpp::Logger getLogger() const
void requiresComponent(TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT)