Open ugurkanates opened 3 years ago
we can get camera image relative to car or drone, just need to define custom camera from settings.json. We can also record from custom camera. file size related to camera resolution.
settings.json
{ "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs settings.md", "Vehicles": { "PhysXCar": { "VehicleType": "PhysXCar", "AutoCreate": true, "PawnPath": "", "EnableCollisionPassthrogh": false, "EnableCollisions": true, "AllowAPIAlways": true, "RC": { "RemoteControlID":-1, "AllowAPIWhenDisconnected": false }, "Cameras": { "DenemeCamera": { "CaptureSettings": [ { "ImageType": 0, "Width": 500, "Height": 500, "FOV_Degrees": 90, "AutoExposureSpeed": 100, "AutoExposureBias": 0, "AutoExposureMaxBrightness": 0.64, "AutoExposureMinBrightness": 0.03, "MotionBlurAmount": 0, "TargetGamma": 1.0, "ProjectionMode": "", "OrthoWidth": 5.12 } ], "NoiseSettings": [ { "Enabled": false, "ImageType": 0, "RandContrib": 0.2, "RandSpeed": 100000.0, "RandSize": 500.0, "RandDensity": 2, "HorzWaveContrib":0.03, "HorzWaveStrength": 0.08, "HorzWaveVertSize": 1.0, "HorzWaveScreenSize": 1.0, "HorzNoiseLinesContrib": 1.0, "HorzNoiseLinesDensityY": 0.01, "HorzNoiseLinesDensityXY": 0.5, "HorzDistortionContrib": 1.0, "HorzDistortionStrength": 0.002 } ], "Gimbal": { "Stabilization": 0, "Pitch": 0, "Roll": 0, "Yaw": 0 }, "X": 0, "Y": 5, "Z": -3, "Pitch": 0, "Roll": 0, "Yaw": 0 }, "DenemeCamera2": { "CaptureSettings": [ { "ImageType": 0, "Width": 750, "Height": 750, "FOV_Degrees": 90, "AutoExposureSpeed": 100, "AutoExposureBias": 0, "AutoExposureMaxBrightness": 0.64, "AutoExposureMinBrightness": 0.03, "MotionBlurAmount": 0, "TargetGamma": 1.0, "ProjectionMode": "", "OrthoWidth": 5.12 } ], "NoiseSettings": [ { "Enabled": false, "ImageType": 0, "RandContrib": 0.2, "RandSpeed": 100000.0, "RandSize": 500.0, "RandDensity": 2, "HorzWaveContrib":0.03, "HorzWaveStrength": 0.08, "HorzWaveVertSize": 1.0, "HorzWaveScreenSize": 1.0, "HorzNoiseLinesContrib": 1.0, "HorzNoiseLinesDensityY": 0.01, "HorzNoiseLinesDensityXY": 0.5, "HorzDistortionContrib": 1.0, "HorzDistortionStrength": 0.002 } ], "Gimbal": { "Stabilization": 0, "Pitch": 0, "Roll": 0, "Yaw": 0 }, "X": 0, "Y": 0, "Z": -5, "Pitch": 0, "Roll": 0, "Yaw": 0 } }, "X": 0, "Y": 0, "Z": 0, "Pitch": 0, "Roll": 0, "Yaw": 0 } } , "SubWindows": [ {"WindowID": 0, "CameraName": "DenemeCamera2", "ImageType": 0, "VehicleName": "", "Visible": false}, {"WindowID": 1, "CameraName": "DenemeCamera", "ImageType": 0, "VehicleName": "", "Visible": false} ], "Recording": { "RecordOnMove": false, "RecordInterval": 0.05, "Folder": "", "Enabled": false, "Cameras": [ { "CameraName": "DenemeCamera2", "ImageType": 0, "PixelsAsFloat": false, "VehicleName": "", "Compress": true } ] } }
we can get camera image relative to car or drone, just need to define custom camera from settings.json. We can also record from custom camera. file size related to camera resolution.
settings.json