Simulator API

class sdc_scissor.simulator_api.abstract_simulator.AbstractSimulator
__init__()
abstract open()

Start the simulator in a separate process and enable interprocess communication by opening a socket.

abstract close()

Quit the simulator process and close the socket.

abstract create_new_instance()

Restart the simulator process.

abstract stop_scenario()

Stop the execution of an ongoing scenario in simulation.

abstract start_scenario()

Start the execution of a scenario in simulation.

abstract load_scenario(test, scenario, obstacles: list)

Prepare the simulator for a specific test scenario.

Parameters:
  • test – An object defining the test scenario, i.e. vehicle setup, road, etc.

  • scenario – Scenario object.

  • obstacles – A list with obstacles to place in the virtual environment.

abstract update_car()

Retrieve the current sensor data of the vehicle in a running test that is executing in simulation within another process.

abstract get_car_position()
abstract get_sensor_data()