Skip to content

RPC error when calling simListSceneObjects in python #2283

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

Open
a-maumau opened this issue Oct 30, 2019 · 3 comments
Open

RPC error when calling simListSceneObjects in python #2283

a-maumau opened this issue Oct 30, 2019 · 3 comments

Comments

@a-maumau
Copy link

a-maumau commented Oct 30, 2019

Getting a error when using the simListSceneObjects() among the Neighborhood (v1.2.0 release Linux build) environment

My environments are

  • Ubuntu 18.04
  • UE4 v4.23.1

Running a code

import airsim
import time

client = airsim.CarClient()
client.confirmConnection()
client.enableApiControl(True)
car_controls = airsim.CarControls()

data = client.simListSceneObjects(".*")
print(data)

will get

msgpackrpc.error.RPCError: rpclib: server could not find function 'simListSceneObjects' with argument count 1.

Am I doing something wrong?

@cpow-89
Copy link

cpow-89 commented Nov 15, 2019

I had the same issue. I tried to train a network for image segmentation. However, the segmentation that comes out of the pre-built environments is not that useful. So I searched for a way to correct them to my needs, and so I found simListSceneObjects.

@a-maumau The problem with simListSceneObjects is that it was added after the environments where build with 1.2.1. If you look at the source code provided with the environments(https://github.com/microsoft/AirSim/archive/v1.2.1.zip) this function is missing. And indeed if you look at the commit history of RpcLibServerBase.cpp you can find that the function has been committed some month after the environments had been released.

So my hope is that someone will be so kind as to rebuild the environments with the latest airsim version. That would be nice.

@a-maumau
Copy link
Author

@cpow-89
Thank you for your information!
Yes, I also found about this and the windows build might have the feature.

I will keep this issue open for looking forward to some kind person will release latest builds

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.

@stale stale bot added the stale label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants