This directory contains example configuration files for AirSim simulation.
-
Copy the example settings:
cp configs/settings.example.json ~/Documents/AirSim/settings.json -
For Windows users:
copy configs\settings.example.json %USERPROFILE%\Documents\AirSim\settings.json
-
Restart AirSim to apply the new settings.
- Vehicle: PhysXCar (car simulation mode)
- Camera: Single front camera (
"0") - Resolution: 1280x720 pixels
- Field of View: 90 degrees
- Position: Centered front mount (-0.30m Z offset)
- Recording: Disabled by default (set
RecordOnMove: trueto enable) - Performance: ClockSpeed 1 (real-time simulation)
"SimMode": "Car"- Enables car physics and controls"ClockSpeed": 1- Real-time simulation (increase for faster, decrease for slower)"Cameras": { "0": ... }- Camera configuration (matches our robust wrapper)"CaptureSettings"- Image format, resolution, and quality settings"Recording"- Optional flight/drive recording configuration
The example uses camera "0" which matches our robust image wrapper in utils/robust_image.py. This ensures compatibility with the object detection pipeline.
X: 0.50- 50cm forward from vehicle centerY: 0.00- Centered laterallyZ: -0.30- 30cm below vehicle center (front bumper level)
- Settings not applied: Ensure AirSim is completely closed before copying settings
- Camera not found: Verify camera name matches (
"0"not"FrontCenter") - Performance issues: Reduce
ClockSpeedor image resolution - Recording issues: Check disk space and set
RecordOnMove: true
For advanced settings, see the official AirSim documentation.
Common modifications:
- Multiple cameras: Add
"1","2", etc. toCamerasobject - Weather: Add
Weathersection for wind, rain, fog - Physics: Modify
PhysicsEngineNameand related parameters - API: Configure
ApiServerPortandIsApiEnabled