scenario_simulator_v2 C++ API
Classes | Typedefs | Functions
test_lanelet_pose.cpp File Reference
#include <gtest/gtest.h>
#include <traffic_simulator/data_type/lanelet_pose.hpp>
#include "../helper_functions.hpp"
Include dependency graph for test_lanelet_pose.cpp:

Classes

class  CanonicalizedLaneletPoseTest
 

Typedefs

using CanonicalizedLaneletPose = traffic_simulator::lanelet_pose::CanonicalizedLaneletPose
 

Functions

int main (int argc, char **argv)
 
 TEST_F (CanonicalizedLaneletPoseTest, CanonicalizedLaneletPose_withRoute_invalid)
 
 TEST_F (CanonicalizedLaneletPoseTest, CanonicalizedLaneletPose_withRoute)
 
 TEST_F (CanonicalizedLaneletPoseTest, CanonicalizedLaneletPose_withoutRoute_invalid)
 
 TEST_F (CanonicalizedLaneletPoseTest, CanonicalizedLaneletPose_withoutRoute)
 
 TEST_F (CanonicalizedLaneletPoseTest, CanonicalizedLaneletPose_copyConstructor)
 
 TEST_F (CanonicalizedLaneletPoseTest, CanonicalizedLaneletPose_moveConstructor)
 
 TEST_F (CanonicalizedLaneletPoseTest, copyAssignment)
 
 TEST_F (CanonicalizedLaneletPoseTest, conversionLaneletPose)
 
 TEST_F (CanonicalizedLaneletPoseTest, conversionPose)
 
 TEST_F (CanonicalizedLaneletPoseTest, hasAlternativeLaneletPose_true)
 
 TEST_F (CanonicalizedLaneletPoseTest, hasAlternativeLaneletPose_false)
 
 TEST_F (CanonicalizedLaneletPoseTest, getAlternativeLaneletPoseBaseOnShortestRouteFrom_empty)
 
 TEST_F (CanonicalizedLaneletPoseTest, getAlternativeLaneletPoseBaseOnShortestRouteFrom_single)
 
 TEST_F (CanonicalizedLaneletPoseTest, getAlternativeLaneletPoseBaseOnShortestRouteFrom_multiple)
 
 TEST (CanonicalizedLaneletPose, getConsiderPoseByRoadSlope)
 
 TEST (CanonicalizedLaneletPose, setConsiderPoseByRoadSlope)
 
 TEST_F (CanonicalizedLaneletPoseTest, operatorLessEqual)
 
 TEST_F (CanonicalizedLaneletPoseTest, operatorLess)
 
 TEST_F (CanonicalizedLaneletPoseTest, operatorGreaterEqual)
 
 TEST_F (CanonicalizedLaneletPoseTest, operatorGreater)
 
 TEST_F (CanonicalizedLaneletPoseTest, isSameLaneletId_withPose_same)
 
 TEST_F (CanonicalizedLaneletPoseTest, isSameLaneletId_withPose_different)
 
 TEST_F (CanonicalizedLaneletPoseTest, isSameLaneletId_withLanelet_same)
 
 TEST_F (CanonicalizedLaneletPoseTest, isSameLaneletId_withLanelet_different)
 

Typedef Documentation

◆ CanonicalizedLaneletPose

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ TEST() [1/2]

TEST ( CanonicalizedLaneletPose  ,
getConsiderPoseByRoadSlope   
)
Note
Test accessor function

◆ TEST() [2/2]

TEST ( CanonicalizedLaneletPose  ,
setConsiderPoseByRoadSlope   
)
Note
Test accessor function

◆ TEST_F() [1/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
CanonicalizedLaneletPose_copyConstructor   
)
Note
Test copy constructor behavior

◆ TEST_F() [2/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
CanonicalizedLaneletPose_moveConstructor   
)
Note
Test move constructor behavior

◆ TEST_F() [3/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
CanonicalizedLaneletPose_withoutRoute   
)
Note
Test constructor behavior with route_lanelets argument absent when canonicalization function succeeds

◆ TEST_F() [4/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
CanonicalizedLaneletPose_withoutRoute_invalid   
)
Note
Test constructor behavior with route_lanelets argument absent when canonicalization function fails

◆ TEST_F() [5/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
CanonicalizedLaneletPose_withRoute   
)
Note
Test constructor behavior with route_lanelets argument present when canonicalization function succeeds

◆ TEST_F() [6/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
CanonicalizedLaneletPose_withRoute_invalid   
)
Note
Test constructor behavior with route_lanelets argument present when canonicalization function fails.

◆ TEST_F() [7/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
conversionLaneletPose   
)
Note
Test conversion operator behavior using static_cast<LaneletPose>

◆ TEST_F() [8/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
conversionPose   
)
Note
Test conversion operator behavior using static_cast<Pose>

◆ TEST_F() [9/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
copyAssignment   
)
Note
Test copy assignment operator behavior

◆ TEST_F() [10/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
getAlternativeLaneletPoseBaseOnShortestRouteFrom_empty   
)
Note
Test function behavior when there are no lanelet_poses

◆ TEST_F() [11/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
getAlternativeLaneletPoseBaseOnShortestRouteFrom_multiple   
)
Note
Test function behavior when there are multiple lanelet_poses

◆ TEST_F() [12/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
getAlternativeLaneletPoseBaseOnShortestRouteFrom_single   
)
Note
Test function behavior when there is only one lanelet_pose

◆ TEST_F() [13/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
hasAlternativeLaneletPose_false   
)
Note
Test function behavior when alternative poses are absent

◆ TEST_F() [14/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
hasAlternativeLaneletPose_true   
)
Note
Test function behavior when alternative poses are present

◆ TEST_F() [15/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
isSameLaneletId_withLanelet_different   
)
Note
Test function behavior when provided with a pose having lanelet_id different to the lanelet_id argument

◆ TEST_F() [16/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
isSameLaneletId_withLanelet_same   
)
Note
Test function behavior when provided with a pose having lanelet_id equal to the lanelet_id argument

◆ TEST_F() [17/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
isSameLaneletId_withPose_different   
)
Note
Test function behavior when provided two poses occupying different lanelet_ids

◆ TEST_F() [18/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
isSameLaneletId_withPose_same   
)
Note
Test function behavior when provided two poses occupying the same lanelet_id

◆ TEST_F() [19/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
operatorGreater   
)
Note
Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id

◆ TEST_F() [20/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
operatorGreaterEqual   
)
Note
Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id

◆ TEST_F() [21/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
operatorLess   
)
Note
Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id

◆ TEST_F() [22/22]

TEST_F ( CanonicalizedLaneletPoseTest  ,
operatorLessEqual   
)
Note
Test operator calculation correctness with CanonicalizedLaneletPose of lesser, equal and greater lanelet_id