Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
cone_evaluator_test.cpp File Reference
#include <gtest/gtest.h>
#include <cone_evaluator/cone_evaluator.hpp>
#include <memory>
#include <sensor_msgs/msg/point_cloud2.hpp>
#include <test_utils/pointcloud2_helper.hpp>
#include <utils/cluster.hpp>
#include <utils/evaluator_parameters.hpp>
#include <utils/ground_grid.hpp>
Include dependency graph for cone_evaluator_test.cpp:

Go to the source code of this file.

Functions

EvaluatorParameters make_default_evaluator_params ()
 
 TEST (ConeEvaluatorTest, CloseToGroundTrue)
 Should return true when cluster is close to ground.
 
 TEST (ConeEvaluatorTest, CloseToGroundFalse)
 Should return false when cluster is far from ground.
 
 TEST (ConeEvaluatorTest, CylinderFitsConeTrue)
 Should return true when cluster fits cone cylinder dimensions.
 
 TEST (ConeEvaluatorTest, CylinderFitsConeFalse)
 Should return false when cluster does not fit cone cylinder dimensions.
 
 TEST (ConeEvaluatorTest, NPointsValidTrue)
 Should return true when cluster has a valid number of points.
 
 TEST (ConeEvaluatorTest, NPointsValidFalse)
 Should return false when cluster does not have a valid number of points.
 

Function Documentation

◆ make_default_evaluator_params()

EvaluatorParameters make_default_evaluator_params ( )

Definition at line 11 of file cone_evaluator_test.cpp.

Here is the caller graph for this function:

◆ TEST() [1/6]

TEST ( ConeEvaluatorTest  ,
CloseToGroundFalse   
)

Should return false when cluster is far from ground.

Definition at line 47 of file cone_evaluator_test.cpp.

Here is the call graph for this function:

◆ TEST() [2/6]

TEST ( ConeEvaluatorTest  ,
CloseToGroundTrue   
)

Should return true when cluster is close to ground.

Definition at line 30 of file cone_evaluator_test.cpp.

Here is the call graph for this function:

◆ TEST() [3/6]

TEST ( ConeEvaluatorTest  ,
CylinderFitsConeFalse   
)

Should return false when cluster does not fit cone cylinder dimensions.

Definition at line 78 of file cone_evaluator_test.cpp.

Here is the call graph for this function:

◆ TEST() [4/6]

TEST ( ConeEvaluatorTest  ,
CylinderFitsConeTrue   
)

Should return true when cluster fits cone cylinder dimensions.

Definition at line 64 of file cone_evaluator_test.cpp.

Here is the call graph for this function:

◆ TEST() [5/6]

TEST ( ConeEvaluatorTest  ,
NPointsValidFalse   
)

Should return false when cluster does not have a valid number of points.

Definition at line 108 of file cone_evaluator_test.cpp.

Here is the call graph for this function:

◆ TEST() [6/6]

TEST ( ConeEvaluatorTest  ,
NPointsValidTrue   
)

Should return true when cluster has a valid number of points.

Definition at line 92 of file cone_evaluator_test.cpp.

Here is the call graph for this function: