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

Not connecting to simulator SDSandbox v 20.5.16 #29

Open
josiahcoad opened this issue Jun 4, 2020 · 7 comments
Open

Not connecting to simulator SDSandbox v 20.5.16 #29

josiahcoad opened this issue Jun 4, 2020 · 7 comments
Labels
question Further information is requested

Comments

@josiahcoad
Copy link

Hello, I am trying to run your code exactly as is (using your pretrained agent and vae) and just get :"Waiting for sim to start...if the simulation is running, press EXIT to go back to menu.". I also tried setting the export DONKEY_SIM_PATH environment variable but to no avail.

Code example

python enjoy.py --algo sac -vae vae-level-0-dim-32.pkl --exp-id 6 -n 2000

System Info
Describe the characteristic of your environment:

  • Commit of your version of the repo: 89a3b2c
  • GPU models and configuration: GeForce GTX 1070
  • Python version: 3.7
  • Tensorflow version: 1.13.1
@araffin
Copy link
Owner

araffin commented Jun 5, 2020

Hello,
There is one important info that is missing: what simulator are you using?
And did you launch it before launching the script?

@araffin araffin added the question Further information is requested label Jun 5, 2020
@josiahcoad
Copy link
Author

josiahcoad commented Jun 5, 2020

Using donkey sim "SDSandbox v 20.5.16". I've tried several things:

  1. launching sim before running script (without setting env var DONKEY_SIM_PATH)
  2. not launching sim before running script (with setting env var DONKEY_SIM_PATH)
    Both of these result in the error mentioned above
  3. launching sim before running script (with setting env var DONKEY_SIM_PATH) which results in thread errors due to conflicting processes

@araffin
Copy link
Owner

araffin commented Jun 5, 2020

Using donkey sim "SDSandbox v 20.5.16". I've tried several things:

This is a newer version compared to the one tested. Did you try using the one from the README?

@araffin
Copy link
Owner

araffin commented Jun 5, 2020

I've got an internal pytorch version working with "SDSandbox v 20.5.16" and SB3, I planned to open source it at some point.

In the meantime, you can take a look at https://github.com/tawnkramer/gym-donkeycar to see what have changed in the api of the simulator.
The logic is different: the simulator is the server instead of the client now.

@josiahcoad josiahcoad changed the title Not connecting to simulator [bug] Not connecting to simulator SDSandbox v 20.5.16 Jun 5, 2020
@josiahcoad
Copy link
Author

Oh I see, that's unfortunate. the linked sim in the README is just for linux (unless I were to build it myself). Looking forward to your next release!

@araffin
Copy link
Owner

araffin commented Jun 5, 2020

You can also try older binaries from the release page: https://github.com/tawnkramer/gym-donkeycar/releases

September 2018 may work: https://github.com/tawnkramer/gym-donkeycar/releases/tag/v18.9

There are binaries for Linux, Mac and Windows.

@josiahcoad
Copy link
Author

josiahcoad commented Jun 5, 2020

Well, I did get a different result. Now I get (after setting the env var DONKEY_SIM_PATH but without launching the sim first)

...
Waiting for sim to start...if the simulation is running, press EXIT to go back to the menu
Got a new client ('127.0.0.1', 58585)
Scene Selection Ready
Connection dropped
Waiting for sim to start...if the simulation is running, press EXIT to go back to the menu
...

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

No branches or pull requests

2 participants