Start a simulation
Last update: 16.07.2025The simfwk_cli is the main entrypoint to the user for execution of the simulation framework with given inputs and output. It provides ground truth generator, traffic participant model, kpi evaluator and kpi logger as default components. After simulation is executed, a detailed trace of scenario and the kpi value, min ttc (time-to-collision) will be outputed.
You can pass different args as option to config the simulation:
where -s <scenario.xosc> , -d, --scheduling <sim_config.json> and -o, --output <output_folder> are mandatory args.
Simple usage
simfwk cli could be executed by using command:
e.g. if you want to execute the scenario and simply have the output, you can run
Advanced usage
additionally, you can trigger the cli controller mode by option -c true
this enables the user control of simulation framework, instead of just running through of your scenario. With the cli controller , the user can send commands like run , pause , resume , restart , step or kill , to interact with simulation.
Interact with simulation using cli_controller
When the -c true is applied, a server will be created for listening to the user command. To control the simulation, following command are available:
supported commands:
Example
- First start your simultion and enable user control
- Then you will see following message in console, if default controller port is not changed
- Open a new terminal, and try trigger the simulation
- After succeed execution, the console prints
Cli Controller Executation Status OK!. Then you can see the simulation has been started.
Note: In this control mode, the simulation process simfwk_cli will not terminate unless you send kill from the cli_controller or manually send ctrl+c