The ADAS Sensor Configuration Editor (for both vehicle-attached sensors and map sensors) is compatible with BeamNGpy. If you create a vehicle or map sensor configuration in the editor, it can be loaded from BeamNGpy and used in scenarios there.
All the relevant sensor parameters are saved within the configuration file, and when BeamNGpy opens the file, it recreates the sensors as described in the file, including their attachment and coordinate information.
To see an example of this operating, find the BeamNGpy example script
vehicle_sensor_configuration.py
. The saved configuration file should be placed at a location accessible from BeamNGpy and that filepath supplied to VehicleSensorConfig.
To see an example of this operating, find the BeamNGpy example script
map_sensor_configuration.py
. The saved configuration file should be placed at a location accessible from BeamNGpy and that filepath supplied to MapSensorConfig.
You can export vehicle configurations using Export Python code... in the Attached Sensors Window
, or map configurations using Export Map Python code... in the Main Tool Window
.
Sensors spawned by BeamNGpy are automatically loaded into the Sensor Configuration Editor:
Was this article helpful?