Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python simGetImages throws unknown exception #4312

Open
mmuetert opened this issue Jan 24, 2022 · 2 comments
Open

Python simGetImages throws unknown exception #4312

mmuetert opened this issue Jan 24, 2022 · 2 comments
Labels

Comments

@mmuetert
Copy link

Hello,

I am trying to run the segmentation.py example from the PythonClient folder in airsim. When I try to run the script, it runs fine until the line

#get segmentation image in various formats
responses = client.simGetImages([
airsim.ImageRequest("0", airsim.ImageType.Segmentation, True), #depth in perspective projection
airsim.ImageRequest("0", airsim.ImageType.Segmentation, False, False)]) #scene vision image in uncompressed RGBA array
print('Retrieved images: %d', len(responses))

where I get the error

"msgpackrpc.error.RPCError: rpclib: function 'simGetImages' (called with 3 arg(s)) threw an exception. The exception is not derived from std::exception. No further information available."

I had the same error in a custom script I was writing so I decided to test the issue with the provided python script. I test the c++ version of HelloDrone and it runs simGetImages just fine.

I am running python3.6 on Ubuntu 20.04. My python packages are up to date and my Airsim install should be as well. I very recently upgraded from Ubuntu 18.04 to Ubuntu 20.04, but I never ran the python versions on 18.04, so I can't say if they worked before the upgrade.

Any help would be appreciated!

@Frederik-Hartmann
Copy link

Hi @mmuetert.
The Code above works fine fine for me. Are you sure "0" is your camera name?

@zimmy87
Copy link
Contributor

zimmy87 commented Jan 31, 2022

This might be related to #4120, can you apply the fix in #4321 and see if that fixes the issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants