reiniscimurs / DRL-robot-navigation

Deep Reinforcement Learning for mobile robot navigation in ROS Gazebo simulator. Using Twin Delayed Deep Deterministic Policy Gradient (TD3) neural network, a robot learns to navigate to a random goal point in a simulated environment while avoiding obstacles.
MIT License
571 stars 119 forks source link

Problems with training and tensorboard visualization. #40

Closed 525753936 closed 1 year ago

525753936 commented 1 year ago

Hi, Reinis Cimurs, Thanks for sharing your amazing work! I encountered these problems when I wanna visualize the training process. You can see in the training terminator, AttributeError: 'NoneType' object has no attribute 'close' is called. But the training is still running in Rviz and Gazebo. In another terminator, I run these command tensorboard --logdir ./runs in the dir /DRL-robot-navigation/TD3 . As shown, It was said that No dashboards are active for the current data set. Is there any config that I need to change or modify? Could you give me some help for these problems? Thank you very much.

525753936 commented 1 year ago

4

reiniscimurs commented 1 year ago

Hi,

Which version of the repo are you using and what is your setup? I see that there is a call to ros Melodic in there. The tensorboard stuff is only available in the Noetic branch.

525753936 commented 1 year ago

Hi,thanks for your reply. I see, the ros version I use is Melodic. So I just wait for the training finished,right? Could you please give me some tips or suggestions for the other problem?

reiniscimurs commented 1 year ago

Just to clarify, you have ROS melodic on your computer, right? Did you use the melodic branch from this repository in that case?

It appears to me it is the main branch of this repository that has been installed here and that is a ROS Noetic version. It will not work in ROS Melodic.

If you want it to work in your current setup, I suggest cloning the ros melodic branch. However, that branch is not supported anymore and recent updates (such as tensorboard and some code fixes) are not present there.

Most of all I would suggest moving on to ROS Noetic setup for your computer. That will solve all of these issues.

525753936 commented 1 year ago

Thanks for your reply, I see. Have a nice day!