UrdfSim icon indicating copy to clipboard operation
UrdfSim copied to clipboard

simGetImages API does not accept image resolutions above 256x144

Open InfraredLaser opened this issue 3 years ago • 5 comments

When playing around with the image API I noticed that resolutions above 256x144 would not be saved or its image data not collected. When debugging it seems that simGetImages is only able to grab images at the default 256x144 resolution. Newer versions of AirSim resolved this issue, I'm hoping there could be a quick fix for this version of UrdfSim.

InfraredLaser avatar Sep 01 '21 02:09 InfraredLaser

@mitchellspryn can the imaging API's be updated to resolve this issue?

InfraredLaser avatar Sep 09 '21 21:09 InfraredLaser

I'm sure they can be :). I am currently busy with a bunch of other projects, and won't be able to take a look at this issue for some time.

mitchellspryn avatar Sep 09 '21 23:09 mitchellspryn

The newer version of AirSim is capable of taking higher resolution images. I tried replacing the newer AirSim API's with UrdfSim's version, but I could not get the API's to work.

InfraredLaser avatar Sep 09 '21 23:09 InfraredLaser

Yes, the two code bases have diverged quite a bit. So I would expect that there would need to be some engineering effort involved to get it right.

mitchellspryn avatar Sep 09 '21 23:09 mitchellspryn

@mitchellspryn

So I had a further looked into this issue. It turns out that no matter how the camera defaults in settings.json are changed, UrdfSim will only take their default values. I'm thinking that if we find the location in the UrdfSim plugin which transfers the settings in settings.json to the PythonClient we can potentially resolve this issue.

InfraredLaser avatar Nov 12 '21 20:11 InfraredLaser