2#include <gtest/gtest_prod.h>
6#include <rclcpp/rclcpp.hpp>
35 std::shared_ptr<EvaluatorParameters>
params_;
Represents a cluster of 3D points using PCL (Point Cloud Library).
class that evaluates the cluster as a cone or not
FRIEND_TEST(ConeEvaluatorTest, CloseToGroundTrue)
bool evaluateCluster(Cluster &cluster, const GroundGrid &ground_grid)
Perform the cluster evaluation, guaranteeing they pass all validators.
FRIEND_TEST(ConeEvaluatorTest, CloseToGroundFalse)
FRIEND_TEST(ConeEvaluatorTest, CylinderFitsConeFalse)
std::shared_ptr< EvaluatorParameters > params_
bool npoints_valid(Cluster &cluster) const
Check if the number of points in the cluster is valid, according to the distance.
bool close_to_ground(Cluster &cluster, const GroundGrid &ground_grid) const
Check if the cluster is close to the ground.
FRIEND_TEST(ConeEvaluatorTest, NPointsValidTrue)
bool cylinder_fits_cone(Cluster &cluster) const
Check if a cylinder fits the cone dimensions.
FRIEND_TEST(ConeEvaluatorTest, CylinderFitsConeTrue)
FRIEND_TEST(ConeEvaluatorTest, NPointsValidFalse)
Class to represent a ground height grid for ground proximity checks.