world_simulator::IWorldSimulator Class Reference
Last update: 19.09.2025This serves as the interface for a world/groundtruth simulator implementation in simulation framework. It ensures that any third party ground truth generator lib could follow this API definition and thus could be easily used in simulation framework. Interface of scenario should follow ASAM OSI3 standard (https://opensimulationinterface.github.io/osi-antora-generator/asamosi/latest/specification/index.html) More...
#include <i_world_simulator.h>
Public Member Functions | |
| virtual void | InitSimulator ()=0 |
| virtual void | Tick ()=0 |
| virtual bool | IsSimulationFinished () const =0 |
| virtual void | Shutdown ()=0 |
| virtual const osi3::SensorView & | GetSensorView () const =0 |
| virtual const std::vector< osi3::TrafficCommand > & | GetTrafficCommands () const =0 |
| virtual std::chrono::milliseconds | GetCurrentTime () const =0 |
| virtual void | SetTrafficUpdate (const osi3::TrafficUpdate &traffic_update)=0 |
Detailed Description
This serves as the interface for a world/groundtruth simulator implementation in simulation framework. It ensures that any third party ground truth generator lib could follow this API definition and thus could be easily used in simulation framework. Interface of scenario should follow ASAM OSI3 standard (https://opensimulationinterface.github.io/osi-antora-generator/asamosi/latest/specification/index.html)
Definition at line 29 of file i_world_simulator.h.
Member Function Documentation
◆ GetCurrentTime()
|
pure virtual |
Return current simulation time
- Returns
- std::chrono::milliseconds type
◆ GetSensorView()
|
pure virtual |
Return sensor view in osi3 format
- Returns
- osi3::SensorView type
◆ GetTrafficCommands()
|
pure virtual |
Return traffic commands in osi3 format
- Returns
- an vector of osi3::TrafficCommand type
◆ InitSimulator()
|
pure virtual |
Initialization of the simulator
◆ IsSimulationFinished()
|
pure virtual |
Return the state if simulation is finished
- Returns
- true if the simulation ends
◆ SetTrafficUpdate()
|
pure virtual |
set new traffic update into simulator
- Parameters
-
traffic_update traffic update data in osi3::TrafficUpdate format
◆ Shutdown()
|
pure virtual |
Any logic needs to be called in the termination
◆ Tick()
|
pure virtual |
Main step function which drive the simulator's calculation for one minimum cycle time
The documentation for this class was generated from the following file: