Closed liunini123 closed 2 years ago
Hi, @liunini123 Actually, you should launch the dwa_local_planner in order to use DWA . This repo also supports dummy global_planner plugin. Could you refer to above link?
I have downloaded the navigation package and add some codes in ref_trajectory_tracking_gazebo.launch.
But the robot didn't move. And the terminal shows like:
Can you tell me in detail how to start move_base in the ref_trajectory_tracking_gazebo.launch. And choose DWA as the local planner?
Another problem is when I run "roslaunch mpc_ros mpc_local_planner.launch controller:=dwa", the robot always turn right, didn't follow the path.
Hi, @liunini123
Did you change global planner with GeonPlanner
? In order to deliver path from dwa_trajectory_generation.py
to global planner, you should use GeonPlanner
not Global Planner
mpc_local_planner
To get nice DWA performance, parameter tuning is necessary. Why don't you try to change the dwa params?
Hi, @liunini123
Did you change global planner with
GeonPlanner
? In order to deliver path fromdwa_trajectory_generation.py
to global planner, you should useGeonPlanner
not Global Planner
I changed the global planner with 'GeonPlanner', then the robot can move. Sometimes, the robot stop moving because path.cost_ < 0 in DWAPlannerROS.
When I use dwa, global path is displayed in red and local path is displayed in blue in this video. The recorded path is far from global path sometimes. What should I do to make local path near to global path?
When I use dwa, global path is displayed in red and local path is displayed in blue in this video. The recorded path is far from global path sometimes. What should I do to make local path near to global path?
dwa1.mp4
Hi, @liunini123. In order to follow the every poses of geometry shape's path , it should cut with particular interval as local plan. As I remind, _pathLength
of global path planner plugin corresponds that I mentioned above.
If you want to make better conversion from global to local, I recommend that you consider path's sequence and distance.
Ok, Thank you! This video is played with dwa.
@liunini123, you're welcome! Actually, DWA is not a path tracking method but collision avoidance method. Therefore, DWA can't not help avoiding performance decrease in a path tracking experiment. I suggest the pure pursuit and Stanley method can be better control groups about MPC. Finally, please close with comment if you finished your issue.
Hi, I want to compare the simulation results of MPC and DWA.
I completed the simulation with MPC, like this:![lALPDgtYz8IdYAfNAa7NAzY_822_430](https://user-images.githubusercontent.com/70358354/155144093-6ef28f32-193a-460d-a606-a6360cbb3985.png)
But I don't know how to make a simulation with DWA, like the right results in this picture.![lQLPDhssxXjbX1DNAg7NBJCwvNaNuUn4k_wCGgbQ4EC9AA_1168_526](https://user-images.githubusercontent.com/70358354/155142935-0351d885-043c-4d88-af6f-841aaa281c43.png)