Skip to main content
Definition: autonomy/simulation/simulation_completion_checker/simulation_completion_checker.h (line 36) Checks for the completion status of a simulation. The SimulationCompletionChecker class implements the ISimulationCompletionChecker interface to determine whether a simulation has finished. It uses a clock interface only as duration depends on actual run and shutdown triggers. The class leverages the clock interface for time-based operations. See also: ISimulationCompletionChecker, core::time::IClock Inherits from:

Members

Public functions

Function SimulationCompletionChecker

Constructs a SimulationCompletionChecker instance. Initializes the checker with a clock interface. Parameters:
  • clock_ptr: A shared pointer to the clock interface for time management during the simulation.
Parameters: Return type:

Function IsSimulationFinished

Checks if the simulation has completed. Returns: false always for interface completion purpose, actual completion depends on the run and shutdown triggers. Return type: bool Reimplements: IsSimulationFinished

Function GetSimulationDuration

Retrieves the total duration of the simulation. Returns the default value of -1 as scenario duration depends on the actual run. Returns: The total simulation duration in milliseconds. Return type: std::chrono::milliseconds Reimplements: GetSimulationDuration