scenario_simulator_v2 C++ API
Functions
test_bounding_box.cpp File Reference
#include <gtest/gtest.h>
#include <geometry/bounding_box.hpp>
#include <geometry/quaternion/euler_to_quaternion.hpp>
#include <scenario_simulator_exception/exception.hpp>
#include "expect_eq_macros.hpp"
#include "geometry/distance.hpp"
#include "test_utils.hpp"
Include dependency graph for test_bounding_box.cpp:

Functions

 TEST (BoundingBox, getPointsFromBboxDefault)
 
 TEST (BoundingBox, getPointsFromBboxCustom)
 
 TEST (BoundingBox, toPolygon2D_zeroPose)
 
 TEST (BoundingBox, toPolygon2D_onlyTranslation)
 
 TEST (BoundingBox, toPolygon2D_fullPose)
 
 TEST (BoundingBox, getPolygonDistanceWithCollision)
 
 TEST (BoundingBox, getPolygonDistanceTouch)
 
 TEST (BoundingBox, getPolygonDistanceWithoutCollision)
 
 TEST (BoundingBox, getClosestPoses)
 
 TEST (BoundingBox, getClosestPosesWithAlmostTouch)
 
 TEST (BoundingBox, getClosestPosesWithIntersection)
 
int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ TEST() [1/11]

TEST ( BoundingBox  ,
getClosestPoses   
)

◆ TEST() [2/11]

TEST ( BoundingBox  ,
getClosestPosesWithAlmostTouch   
)

◆ TEST() [3/11]

TEST ( BoundingBox  ,
getClosestPosesWithIntersection   
)

◆ TEST() [4/11]

TEST ( BoundingBox  ,
getPointsFromBboxCustom   
)

◆ TEST() [5/11]

TEST ( BoundingBox  ,
getPointsFromBboxDefault   
)

◆ TEST() [6/11]

TEST ( BoundingBox  ,
getPolygonDistanceTouch   
)

◆ TEST() [7/11]

TEST ( BoundingBox  ,
getPolygonDistanceWithCollision   
)

◆ TEST() [8/11]

TEST ( BoundingBox  ,
getPolygonDistanceWithoutCollision   
)

◆ TEST() [9/11]

TEST ( BoundingBox  ,
toPolygon2D_fullPose   
)
Note
Test obtaining polygon from bounding box with full transformation applied (translation + rotation).

◆ TEST() [10/11]

TEST ( BoundingBox  ,
toPolygon2D_onlyTranslation   
)
Note
Test obtaining polygon from bounding box with only translation applied.

◆ TEST() [11/11]

TEST ( BoundingBox  ,
toPolygon2D_zeroPose   
)
Note
Test obtaining polygon from bounding box with no transformation applied.