TempleRAIL / drl_vo_nav

[T-RO 2023] DRL-VO: Learning to Navigate Through Crowded Dynamic Scenes Using Velocity Obstacles
https://doi.org/10.1109/TRO.2023.3257549
GNU General Public License v3.0
149 stars 11 forks source link

How to test #29

Closed Shiqi-7-7 closed 2 weeks ago

Shiqi-7-7 commented 3 months ago

Hello, thank you very much for your work. I have read your article and tried to reproduce code.How to test this model? 2024-08-12 18-44-44 的屏幕截图 How do I obtain the curve graph during the training process and the charts(success rate,time,length,speed) in your paper? Thank you very much!

zzuxzt commented 3 months ago

Thanks for your interest in our work. If you want to test the trained model, you can deploy the control policy on the robot, publish a predefined series of goal points, and let the robot navigate through a predefined series of goal points around the corresponding test environment. For example, you can publish a set of goal points to test the policy using the following command:

roslaunch drl_vo_nav publish_goal_sequence.launch

You can view the training curve using tensorboard using the following command:

tensorboard --logdir="./runs/"
GGHaozhu commented 1 month ago

Hello, thank you very much for your work.When I was testing roslaunch drl_vo_nav publish_goal_sequence.launch, when the robot reached the first point, it would report an error: Received comm state ACTIVE when in simple state DONE with SimpleActionClient in NS /move_base, when the second point is reached, an error message is displayed: SimpleActionClient received DONE twice, and then the robot doesn't move. What's the reason for that? Is there a solution?

zzuxzt commented 1 month ago

It seems that the SimpleActionClient thinks the goal has been completed, but it receives another status update from the action server that the goal is still active. Did you publish a goal using the Rviz GUI while still roslaunch publish_goal_sequence? In addition, what were all your commands for testing the robot? Did you use the Lobby World to test? I suspect you didn't launch everything correctly.

GGHaozhu commented 1 month ago

It seems that the SimpleActionClient thinks the goal has been completed, but it receives another status update from the action server that the goal is still active. Did you publish a goal using the Rviz GUI while still roslaunch publish_goal_sequence? In addition, what were all your commands for testing the robot? Did you use the Lobby World to test? I suspect you didn't launch everything correctly.

Thanks for your reply, I used the autolab world for testing, using your source publish_goal_sequence.py file. I first started the test node sh run_drl_vo_navigation_demo. Then launch publish_goal_sequence_for_autolab.launch. Thank you for helping me troubleshoot the problem,among`

<! -- Output -->

<! -- Pedsim Gazebo -->

` By the way, I would also like to ask you, if you want to do the physical test, do you need to prepare the list of objects only need to buy turtlebot2? Main control configuration: i7 8g main control pc, hardware configuration: chassis + support + large battery; Visual configuration Kinect V2, is this configuration OK?
zzuxzt commented 1 month ago

I don't see any problem with your process. Were you able to send goals using the Rviz tool? If yes, did you install the package in your Ubuntu? I suspect there are some issues with your ROS environment. Did you try to use the singularity container? It would be good if you could share a debug video.

You can use your own robot and do not need to buy a Turtlebot 2 robot. Just make true your robot can provide pedestrian tracking information and lidar information. Your configuration sounds good, but it would be even better if you had a GPU. I will update the deployment code with a Jackal robot as an example soon.

GGHaozhu commented 1 month ago

Thanks for your reply, I am not using singularity containers and can use the "2D Nav Goal" tool to set and send target points. Would you like to ask if the output of the trained model is only linear and angular velocity? If so, would it be a real world test if I could take the model trained on the Turtlebot 2 and put it to the test on the Ackerman chassis? The following is the problem I encountered when testing, and the error message in red is what I mentioned above. Thank you for your guidance and help. 1 2 3 4

zzuxzt commented 1 month ago

The output commands are the linear velocity and angular velocity (Vx, Wz). It should also be deployed on your Ackerman robot as it has been tested in Turtlebot 2 and Jackal robots.

The problem may be caused by an inappropriate goal point. You can replace the 2nd goal point or remove it.

GGHaozhu commented 2 weeks ago

Ok, thank you for your reply.