scenario_simulator_v2 C++ API
Functions
test_simulation_clock.cpp File Reference
#include <gtest/gtest.h>
#include <traffic_simulator/simulation_clock/simulation_clock.hpp>
Include dependency graph for test_simulation_clock.cpp:

Functions

 TEST (SimulationClock, Initialize)
 
 TEST (SimulationClock, getCurrentRosTime)
 
 TEST (SimulationClock, getCurrentScenarioTime)
 
 TEST (SimulationClock, Update)
 

Function Documentation

◆ TEST() [1/4]

TEST ( SimulationClock  ,
getCurrentRosTime   
)
Note
Test basic functionality used in API. Test time obtaining correctness with initialized object and not using raw clock - the goal is to test whether the time has increased according to the times of update function calls.

◆ TEST() [2/4]

TEST ( SimulationClock  ,
getCurrentScenarioTime   
)
Note
Test basic functionality used in API. Test scenario time calculation correctness with initialized object, npc logic started after several update() calls and additional update() calls after starting npc logic.

◆ TEST() [3/4]

TEST ( SimulationClock  ,
Initialize   
)
Note
Test basic functionality used in API. Test initialization logic by calling update without initialized clock
  • the goal is to verify that mandatory initialization works.

◆ TEST() [4/4]

TEST ( SimulationClock  ,
Update   
)
Note
Test basic functionality used in API. Test updating correctness with initialized object by calling update several times expecting the current time to increase accordingly.