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

ArgumentError: wrong type, client_id = None #2

Open
zfwang615 opened this issue Mar 13, 2020 · 1 comment
Open

ArgumentError: wrong type, client_id = None #2

zfwang615 opened this issue Mar 13, 2020 · 1 comment

Comments

@zfwang615
Copy link

Hi, thank you for your work. I was going to try it with a Nao robot after the vrep simulation.
When I try to train the model in Vrep at NaoBancing Env with ppo, I got a ArgumentError.

return c_StopSimulation(clientID, operationMode)
ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type

I find that the client_id is None. The reset method of Env(NaoBalancing) is called in the work method of Alg.py(A3C, PPO) before the initialzie method(NaoBalancing).

I saw ‘’Connect python client to VREP‘’ at initialize method. The client_id is defined and generated in connect method(VrepEnv/ base.py).

I think we must connect the pyhton client to Vrep and get the client_id before reset. But I am not sure where should I do this job at the right lines. Please help me!

Look forward to your kind reply.
Best wishes!

@Focusssss
Copy link

hi @zfwang615 I am learning the code and I meet some problems during running the code. I don't know whthere you have time to exlporing the problem.

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

No branches or pull requests

2 participants