path_planning icon indicating copy to clipboard operation
path_planning copied to clipboard

Goal state changed to some other close value sometimes in waypoints

Open himanshu-erol opened this issue 7 years ago • 1 comments

I was trying out your code while working on a path planning algorithm. It works perfectly fine the only problem being that sometimes when i set the goal states manually to some value, when solution is found and goal states are printed, the final goal point is changed to some nearby value rather than the exact value given by me. I am using old_path_planning code to find the waypoints using RRTstar.

himanshu-erol avatar Jun 01 '18 09:06 himanshu-erol

In RRTstar implementation the planner specs are set to allow approximate solutions and if no exact solution is found in the given time then it might report you the best approximate solution to the goal. You can test if the solution in approximate using pdef->hasApproximateSolution() and also find the distance from top solution to exact goal using pdef->getSolutionDifference()

ayushgaud avatar Jun 03 '18 05:06 ayushgaud