PathPlanning icon indicating copy to clipboard operation
PathPlanning copied to clipboard

There is some problem in LPAstar

Open HandsomeDragon3 opened this issue 3 years ago • 3 comments

In some case, there would be no path extrated right!

HandsomeDragon3 avatar Mar 25 '21 12:03 HandsomeDragon3

especially after adding a lot of obstacles

HandsomeDragon3 avatar Mar 25 '21 12:03 HandsomeDragon3

Thanks for your feedback! We will check it later.

zhm-real avatar Jun 09 '21 05:06 zhm-real

I also find this problem. For example, when program started, after adding obstacke (35, 17) and (36, 16), no path extrated right. image

I think the key problem is precision of float in function CalculateKey and TopKey. I changed line 136 like this s = min(self.U, key=lambda k: tuple(map(lambda x: round(x, 2), self.U[k]))) and line 142&143 like this return [round(x, 2) for x in [min(self.g[s], self.rhs[s]) + self.h(s), min(self.g[s], self.rhs[s])]] the path showed. image

Besides

  1. Line 68, we should also UpdateVertex(Obs) when add obstacles ?
  2. We should not use manhattan heuristic in a 8-neighborhood map ?

MeetYyj avatar Oct 03 '21 10:10 MeetYyj