LiJiangnanBit / path_optimizer_2

Optimization-based real-time path planning for vehicles.
203 stars 68 forks source link

The result path may hit the obs #4

Open kintzhao opened 1 year ago

kintzhao commented 1 year ago

The result path may hit the obs.

Screenshot from 2023-01-12 20-25-34

test map file test map file narrow_test-nav.zip

LiJiangnanBit commented 1 year ago

Maybe the reference line smoothing went wrong... you can display ref line on rviz to check it out. this part is not very stable, replace it with your own algorithm :)

kintzhao commented 1 year ago

Screenshot from 2023-01-31 19-42-41 Screenshot from 2023-01-31 19-43-07 Screenshot from 2023-01-31 19-43-42 Screenshot from 2023-01-31 19-44-22

I create the reference line by searched path with dijkstra, the opt_path is not better

kintzhao commented 1 year ago

I fork and modify the code for my diff-robot. kintzhao/path_optimizer_2

cshang412 commented 1 year ago

i met the same problem for ackerman vehicle image

cshang412 commented 1 year ago

seems like the issue was caused after reference path smoother, from the image i posted before , the second stage optimization after reference path ignored the upper bound and lower bound which was caculated before. could you help us to fix this the final optimization stage ? thanks very much ! @LiJiangnanBit

LiJiangnanBit commented 1 year ago

seems like the issue was caused after reference path smoother, from the image i posted before , the second stage optimization after reference path ignored the upper bound and lower bound which was caculated before. could you help us to fix this the final optimization stage ? thanks very much ! @LiJiangnanBit

It seems impossible to stay within the drivable area with the init position and heading that you chose. In the optimization problem, the vehicle dynamics is a hard constraint so it's possible that the result violates the boundary constraint. :) @cshang412

cshang412 commented 1 year ago

Thanks for your reply ! Yeah,you are totally right, but when i use this part in an dynamic Env, running at 10-20HZ, the reference point or the start_pose & dest-pose all changed very fast, this situation does happen a lot , It's very unsafe, that's why i choose an tricky corner case for start pose and dest-pose to test the algorithorm. i tried to enlarge the safe margin in the config file, not working very well also . still trying to figure out how to handle this situation. @LiJiangnanBit