-
Notifications
You must be signed in to change notification settings - Fork 96
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
How to run several instances of AirSim in parallel? #64
Comments
Sorry, I found a partial answer in this issue: microsoft/AirSim#563 I'll try to see if I can do something that works fine out of this. |
Reopening this issue as it seems there is a mechanism to do this in AirSim according to this issue : microsoft/AirSim#1711 ? I don't understand how we can change the port of the launched server when executing Can you help, please ? |
Server port is set in settings.json, and that file is automatically read by the unreal binary when you start it via Client port can be passed as a param in the constructor of multirotorclient https://microsoft.github.io/AirSim-NeurIPS2019-Drone-Racing/api.html#airsimneurips.client.MultirotorClient The workaround you mentioned is saying set port to a value - say 41451 - and run one instance, then modify the settings.json to a new port value - say 41452 - and run another instance. |
Well, it works when modifying the LocalHostIp value, for example setting |
Here's another workaround. So, one way to do this is to copy paste the unreal binaries, and have different settings.json in each binary folder. For example, you can place a And then you can copy-paste the unreal engine binaries: I know either workaround is suboptimal. We'll look into passing the path to a json file as a command line arg. |
yeah, it's crashing with new port with multiple instances :/. Looking into it. |
I just updated the linux v0.3.0's AirSim.zip (pak files are the same) The new zip also has a fix for the reset bug from your other thread. Let us know if it's fixed now. |
Well, the port issue seems fixed, thank you. However, about reset(), I get an error when calling GetObjectPose() after calling reset() apparently, I will report it in the other thread. |
Ah, I ll update the pythonclient. |
Hi @madratman Did you update it, please? Because nothing happens when I try to pip-install airsimneurips --upgrade and I still get the crash. |
This should be updated now |
Hello,
I am having issues on trying to launch several instances of AirSim in parallel on my machine (say, one per GPU for example) and to communicate with them through the Python API as I will eventually need to do this on a cluster to train RL algorithms. Is there any easy way of doing this, please?
Regards,
Yann.
The text was updated successfully, but these errors were encountered: