simGetImages Depth Planner type doesn't work on Windows for high resolution
So I am trying to run Airsim in CV mode to collect data and want to get 2000x2000 resolution images. I know this works as I've done it in Linux and have been successfully able to collect thousands of images.
I'm trying to replicate this process on Windows and have been unsuccessful, specifically when I have an image request where pixel_as_float is set to True and my resolution is higher than 600 (works fine if pixel_as_float is false). Airsim runs extremely slowly in the simGetImages() function, and sometimes when it does finish running simGetImages I get an "IOError [Errno 0]" when trying to run a print statement following it.
Any idea what could fix this besides reducing the resolution? Thanks!
Just tried this out...
- Used Neighbourhood environment binaries from latest release
- Used below setting.json
- Press R key to start and then stop recording
- I have TitanX GPU and SSD
I got 1.7 files/sec and no errors.
{
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
"SettingsVersion": 1.0,
"UsageScenario": "ComputerVision",
"Recording": {
"RecordOnMove": false,
"RecordInterval": 0.05,
"Cameras": [
{ "CameraID": 0, "ImageType": 1, "PixelsAsFloat": true, "Compress": false }
]
},
"CaptureSettings": [
{
"ImageType": 1,
"Width": 2000,
"Height": 2000
}
]
}
Right, I agree I know this works since I've done it on Linux. Do you know any reason why this might be an issue? Or anything that could potentially cause this?
I have tried this with recording and it works but I'd like to use it with simGetImages using the Airsim Python Client, it's in the self.client.call('simGetImages', requests) that it gets stuff when I call simGetImages.
I tried above on Windows 10 but haven't tried API scenario. You can help us debug it :). Just run your environment from source, see where error occurs. May be it's too big payload for serializer?
So after some investigation, there isn't an issue with serializing the data (happens within milliseconds) with msgpack, the issue is with rpc server side, where it gets stuck waiting/stalling (on something I haven't determined yet) when sending the data.
That's good to know... Is there any specific method? If it is possible to repro this in minimal code setting, we can try take a look.
If this is still a problem, please file a new issue with code, settings and clear steps to reproduce the issue.
I am having the same issue as olivia. If your resolution is too high(i tried with 1920 x 1080), the airsim.ImageRequest(0, airsim.ImageType.DepthVis, True) where pixel_as_float is set to True will cause the code to freeze.