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

Go to the source code of this file.

Classes

class  GridClusteringTest
 Test fixture for the GridClustering class. More...
 

Functions

 TEST_F (GridClusteringTest, TestZeroGrid)
 Minimum values for cluster size and distance threshold.
 
 TEST_F (GridClusteringTest, TestLargeGrid)
 Large distance threshold (Expecting two clusters).
 
 TEST_F (GridClusteringTest, TestMinClusterSize)
 Minimum cluster size requirement with one outlier (Expecting one large cluster).
 
 TEST_F (GridClusteringTest, TestVeryLargeGrid)
 Large distance threshold (Expecting one large cluster)
 
 TEST_F (GridClusteringTest, TestSmallGrid)
 Smaller distance threshold (Expecting multiple clusters)
 
 TEST_F (GridClusteringTest, TestMinClusterSize2)
 Minimum cluster size requirement with small distance threshold.
 
 TEST_F (GridClusteringTest, TestTinyGrid)
 Small distance threshold (Expecting all points as separate clusters)
 
 TEST_F (GridClusteringTest, TestAggregate2Points)
 Distance for aggregate the two nearest points (Expecting one less cluster).
 
 TEST_F (GridClusteringTest, TestMorePointsThanThreshold)
 Large minimum cluster size requirement (Expecting no clusters).
 
 TEST_F (GridClusteringTest, TestMinClusterWithSmallGrid)
 Small minimum cluster size requirement with very small distance.
 

Function Documentation

◆ TEST_F() [1/10]

TEST_F ( GridClusteringTest  ,
TestAggregate2Points   
)

Distance for aggregate the two nearest points (Expecting one less cluster).

Definition at line 111 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [2/10]

TEST_F ( GridClusteringTest  ,
TestLargeGrid   
)

Large distance threshold (Expecting two clusters).

Definition at line 39 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [3/10]

TEST_F ( GridClusteringTest  ,
TestMinClusterSize   
)

Minimum cluster size requirement with one outlier (Expecting one large cluster).

Definition at line 51 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [4/10]

TEST_F ( GridClusteringTest  ,
TestMinClusterSize2   
)

Minimum cluster size requirement with small distance threshold.

Definition at line 87 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [5/10]

TEST_F ( GridClusteringTest  ,
TestMinClusterWithSmallGrid   
)

Small minimum cluster size requirement with very small distance.

Definition at line 135 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [6/10]

TEST_F ( GridClusteringTest  ,
TestMorePointsThanThreshold   
)

Large minimum cluster size requirement (Expecting no clusters).

Definition at line 123 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [7/10]

TEST_F ( GridClusteringTest  ,
TestSmallGrid   
)

Smaller distance threshold (Expecting multiple clusters)

Definition at line 75 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [8/10]

TEST_F ( GridClusteringTest  ,
TestTinyGrid   
)

Small distance threshold (Expecting all points as separate clusters)

Definition at line 99 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [9/10]

TEST_F ( GridClusteringTest  ,
TestVeryLargeGrid   
)

Large distance threshold (Expecting one large cluster)

Definition at line 63 of file grid_test.cpp.

Here is the call graph for this function:

◆ TEST_F() [10/10]

TEST_F ( GridClusteringTest  ,
TestZeroGrid   
)

Minimum values for cluster size and distance threshold.

Definition at line 27 of file grid_test.cpp.

Here is the call graph for this function: