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

Issues with Gazebo and RVis. NOT LAUNCHING. #20

Closed Hoggaan closed 2 years ago

Hoggaan commented 2 years ago

Hi there, i was trying to run this training process, but Gazebo is not coming up, RViz is not running properly as well. However, Algorithm seems running. See pics below. Gazebo and RViz are working in other scenarios. Can you please look and figure out what is wrong.

reiniscimurs commented 2 years ago

Hi,

I see that you are cloning the repo in a separate folder and not in home folder. One thing to check would be if you have updated your export functions accordingly?

Another thing is to check if you are not running into an issue similar to this: https://github.com/reiniscimurs/DRL-robot-navigation/issues/11

Gazebo GUI is turned off and will not start automatically. To turn it on, change the value here to true: https://github.com/reiniscimurs/DRL-robot-navigation/blob/8e410ab6a05ff7852a09c692d9d6e1a3ec706fd1/catkin_ws/src/multi_robot_scenario/launch/empty_world.launch#L7

Hoggaan commented 2 years ago

Hello, Thanks for the timely reply. Gazebo is running now but very slow. The RViz is still not working properly.

I refereed issue #11. The meaningful tip there was to wait for 30 minutes to download some models. I waited for 2 hours. No change.

Please suggest any solutions possible. Note: my PC has no NVIDIA GUI capabilities.

reiniscimurs commented 2 years ago

Please provide the full log output from the terminal and describe your computer setup.

Hoggaan commented 2 years ago

Please see below. Full captures terminal and RViz.

In your Launch files you used Robot_state_publisher, type= State_publisher which is deprecated and removed. I think that is what is causing the error. Thank you for your time.

1 2 3 4

RViz Captures - This mybe helpful. Rviz

reiniscimurs commented 2 years ago

Are you using the Noetic branch of this repo or the main branch? It looks like it is the main branch (Melodic) which calls for static_state_publisher, which is not present in the ROS Noetic.

More info here: https://github.com/reiniscimurs/DRL-robot-navigation/issues/5

Hoggaan commented 2 years ago

It worked!!!

I would like to suggest to add this into the Readme. Install Noetic branch - git clone --branch Noetic https://github.com/reiniscimurs/DRL-robot-navigation.git

So, Newbies like us will find it cool. It will save their days.

Thank you sir for your time. I appreciate your amazing work.