Open yangningbo666 opened 6 years ago
First of all, In fact, I don't know. Sorry...
Do you get this error while running DQN for a while? I also encountered this error. I just wished to run it several times and get over it. sometimes it is done.
It seems to be a problem of the environment itself, perhaps ... I think it's better to contact the gym-gazebo, the original git page.
What I did was just apply the TRPO algorithm.
when the timesteps come to 1001,beyond 1000 it crushed. Some answers is 'Add "env._max_episode_steps = your_value You can set your_value to 1000. " below "env = gym.make('GazeboCircuit2TurtlebotLidarNn-v0')"'. Have you tried? I tried but the robot can't learn anything reward always is -160 .If you have time, could u try for once?And tell me what happend? Good Luck to you!
https://github.com/erlerobot/gym-gazebo/blob/master/examples/turtlebot/circuit2_turtlebot_lidar_dqn.py in 360 line, you can decide how many times you run.
DQN is better than qlearn or sarsa, but it also does not learn very well. There are many cases where DQN converges to a bad place. I have tried it five times and have confirmed that it has done well twice. 2/5 probability, which is the problem of the algorithm itself.
I understand by your explaination for DQN.Thanks.
if (t >= 1000): print ("reached the end! :D") done = True
Why it didn't break the loop and the timesteps come to 1001?And this lead the error?
when i python 'circuit2_turtlebot_lidar_dqn.py',i met wiht this error.I tried to debug it by google and github.But I see you had code what they said well.So i am confused.Could you give me advice to debug it well.E-mail or github is both OK.My email is 365220121@qq.com