AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

how to get left and right images from car camera

Open padshahrohan opened this issue 7 years ago • 1 comments

using front_left and front_right we are not getting images from left and right sides.is there any way possible to get only left and right images not front_left or front_right using API

padshahrohan avatar Mar 01 '19 06:03 padshahrohan

@padshahrohan I have exactly the same problem. The followings is my setting.json:

"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md", "SettingsVersion": 1.2, "ViewMode": "Fpv", "ClockSpeed": 1.0, "Recording": { "RecordInterval": 0.05, "Cameras": [ { "CameraName": "0", "ImageType": 0, "PixelsAsFloat": false, "Compress": true } ] }, "CameraDefaults": { "CaptureSettings": [ { "ImageType": 0, "Width": 1280, "Height": 800, "FOV_Degrees": 90, "AutoExposureSpeed": 10, "AutoExposureBias": 0 }, { "ImageType": 5, "Width": 600, "Height": 300 }, { "ImageType": 3, "Width": 600, "Height": 300 } ] }, "SubWindows": [ {"WindowID": 0, "CameraName": "0", "ImageType": 0, "Visible": true}, {"WindowID": 1, "CameraName": "1", "ImageType": 0, "Visible": true}, {"WindowID": 2, "CameraName": "2", "ImageType": 0, "Visible": true}
], "DefaultSensors": { "Barometer": { "SensorType": 1, "Enabled" : true }, "Gps": { "SensorType": 3, "Enabled" : true }, "Imu": { "SensorType": 2, "Enabled" : true }, "Lidar1": { "SensorType": 6, "Enabled" : false, "NumberOfChannels": 16, "PointsPerSecond": 10000 }

}

After runnign I find out all of my 3 subwindows show 100% same scenes. But an interesting thing is that if you set your "CameraName": to 3 or 4, then it can work. Don't know if it's a bug or not. Hopefully someone can help

pengjili avatar Mar 15 '19 08:03 pengjili