scenario_simulator_v2 C++ API
Functions
test_primitive.cpp File Reference
#include "test_primitive.hpp"
#include <geometry_msgs/msg/point.hpp>
#include <limits>
#include <vector>
#include "../../utils/expect_eq_macros.hpp"
Include dependency graph for test_primitive.cpp:

Functions

 TEST_F (PrimitiveTest, addToScene_sample)
 
 TEST_F (PrimitiveTest, addToScene_zeros)
 
 TEST_F (PrimitiveTest, getTriangles)
 
 TEST_F (PrimitiveTest, getVertex)
 
 TEST_F (PrimitiveTest, get2DConvexHull_normal)
 
 TEST_F (PrimitiveTest, get2DConvexHull_withTransform)
 
 TEST_F (PrimitiveTest, getMin)
 
 TEST_F (PrimitiveTest, getMin_withTransform)
 
 TEST_F (PrimitiveTest, getMin_empty)
 
 TEST_F (PrimitiveTest, getMax)
 
 TEST_F (PrimitiveTest, getMax_withTransform)
 
 TEST_F (PrimitiveTest, getMax_empty)
 

Function Documentation

◆ TEST_F() [1/12]

TEST_F ( PrimitiveTest  ,
addToScene_sample   
)
Note
Test basic functionality. Test adding to scene correctness with a sample primitive.

◆ TEST_F() [2/12]

TEST_F ( PrimitiveTest  ,
addToScene_zeros   
)
Note
Test function behavior with vertices set to only zeros.

◆ TEST_F() [3/12]

TEST_F ( PrimitiveTest  ,
get2DConvexHull_normal   
)
Note
Test basic functionality. Test conversion to a convex hull of some concave primitive.

◆ TEST_F() [4/12]

TEST_F ( PrimitiveTest  ,
get2DConvexHull_withTransform   
)
Note
Test basic functionality. Test conversion to a convex hull of some concave primitive with an additional sensor pose transformation - the goal is to test the transformation of convex hull.

◆ TEST_F() [5/12]

TEST_F ( PrimitiveTest  ,
getMax   
)
Note
Test basic functionality. Test max value obtaining in a given axis with a sample primitive.

◆ TEST_F() [6/12]

TEST_F ( PrimitiveTest  ,
getMax_empty   
)
Note
Test function behavior when vertices is an empty vector - the goal is to get a nullopt.

◆ TEST_F() [7/12]

TEST_F ( PrimitiveTest  ,
getMax_withTransform   
)
Note
Test basic functionality. Test max value obtaining in a given axis with a transformation with a sample primitive and non trivial sensor pose.

◆ TEST_F() [8/12]

TEST_F ( PrimitiveTest  ,
getMin   
)
Note
Test basic functionality. Test min value obtaining in a given axis with a sample primitive.

◆ TEST_F() [9/12]

TEST_F ( PrimitiveTest  ,
getMin_empty   
)
Note
Test function behavior when vertices is an empty vector - the goal is to get a nullopt.

◆ TEST_F() [10/12]

TEST_F ( PrimitiveTest  ,
getMin_withTransform   
)
Note
Test basic functionality. Test min value obtaining in a given axis with a transformation with a sample primitive and non trivial sensor pose.

◆ TEST_F() [11/12]

TEST_F ( PrimitiveTest  ,
getTriangles   
)
Note
Test basic functionality. Test obtaining triangles correctness.

◆ TEST_F() [12/12]

TEST_F ( PrimitiveTest  ,
getVertex   
)
Note
Test basic functionality. Test obtaining vertexes correctness.