I see that you used to add the distance rate in the setReward() function, why you don't use it anymore?
The episode is now 300, but the robot is still rotating in place. Here are my modifications from your project:
- First off, I am launching the turtlebot on gazebo 9 on my computer and running the project in the server by running python src/ddpg_stage1.py. The world, that I am using, is similar to turtlebot_stage_2, so I change in the code that self.stage = 2 instead of self.stage = rospy.get_param('/stage_number')

- Secondly, I struggled with installing tf2_py in python3 so I calculate the yaw by this:

- Finally, I trained from scratch by getting rid of this line of code "trainer.load_models(4880)"
I see that you used to add the distance rate in the setReward() function, why you don't use it anymore?
The episode is now 300, but the robot is still rotating in place. Here are my modifications from your project: