andriusbern / NaoRL

A Reinforcement Learning framework for the NAO robot
41 stars 13 forks source link

ArgumentError: wrong type, client_id = None #2

Open zfwang615 opened 4 years ago

zfwang615 commented 4 years ago

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 commented 4 years ago

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.