ai-winter / ros_motion_planning

Motion planning and Navigation of AGV/AMR:ROS planner plugin implementation of A*, JPS, D*, LPA*, D* Lite, Theta*, RRT, RRT*, RRT-Connect, Informed RRT*, ACO, PSO, Voronoi, PID, LQR, MPC, DWA, APF, Pure Pursuit etc.
GNU General Public License v3.0
1.82k stars 264 forks source link

Continuously planning the path #66

Closed 1littlestudy closed 2 months ago

1littlestudy commented 2 months ago

hello,When I use the RRT-connect algorithm, I am unable to reach the target point. He constantly obtains new paths, and I want to ask how to stop constantly planning. After the car completes a path planning, it travels along the road planned by the RRT algorithm. image and Can I turn off local programming and only use the RRT algorithm for global programming? If possible, what should I do?

ai-winter commented 2 months ago

@1littlestudy

The re-planning in global path planning ensures the robot's adaptability to dynamic obstacles, while local planning ensures the robot's ability to track the planned path. Both are indispensable for effective navigation.

1littlestudy commented 2 months ago

As you can see, my rrt connect is hovering in place and I do not add dynamic obstacles such as pedestrians. I would like to inquire about how to add dynamic obstacles and how to solve the problem of not being able to reach the target point image

ai-winter commented 2 months ago

Could you upload a video regarding this error?

1littlestudy commented 2 months ago

As shown in the video, due to continuous re planning, rrt connect is hovering in place https://github.com/ai-winter/ros_motion_planning/assets/165125780/017c9b6b-fb09-4f26-9e8e-87c1ec28bfee

ai-winter commented 2 months ago

Which LOCAL PLANNER did you select?

1littlestudy commented 2 months ago

I used the PID algorithm

您选择了哪个本地规划师?

ai-winter commented 2 months ago

@1littlestudy

Could you please test other local planners, such as LQR, RPP, MPC, DWA, and APF, and report on their compatibility with the RRT algorithm?

1littlestudy commented 2 months ago

@1littlestudy

您能否测试其他本地规划器,例如 LQR、RPP、MPC、DWA 和 APF,并报告它们与 RRT 算法的兼容性?

Okay, I will inform you of the results later. Please give me some time, thank you.

1littlestudy commented 2 months ago

I'm sorry for only replying to you now. Thank you. I changed the local planning algorithm and successfully reached the target point. I think the reason for the failure of the rrt connect algorithm on PID is that the refresh rate of the global planning is too fast, causing it to hover in place. This is because I accidentally modified the initial position of the car, resulting in only one global planning and the rrt connect algorithm successfully reaching the target point. image

Q:I am conducting an RRT comparison experiment using a static map, so I would like to turn off the re planning of global path planning. Can you tell me how to modify it?

1littlestudy commented 2 months ago

很抱歉现在才回复你。谢谢。我更改了本地计划算法并成功到达了目标点。我认为 RRT 连接算法在 PID 上失败的原因是全局规划的刷新率太快,导致它悬停在原地。这是因为我不小心修改了汽车的初始位置,导致只有一个全局规划,rrt 连接算法成功到达目标点。 image

Q:我正在使用静态地图进行RRT比较实验,因此我想关闭全局路径规划的重新规划。你能告诉我如何修改它吗?

I tried to modify the frequency in the planning and successfully modified the frequency of the global planning. I am still trying to understand and learn the code. Thank you for your help. I will consult with you if there are any further questions. Thank you.

image