omron-sinicx/neural-astar

"goal not found" error with pq_astar

HareshKarnan opened this issue · 4 comments

I have a 416x416 empty map (all zeros), and I have appropriate start and goal maps. When using pq_astar, it throws an output saying "goal not found" and returns empty histories and paths tensors with all zeros.

Thank you for reporting! Actually I didn’t assume empty maps to be given as inputs, but they should be all-ones rather than all-zeros (in my implementation 1 means passable).

(map_design_vct[n_idx] == 1)

Thanks for the quick response! My issue has been resolved. :)

This may not be very intuitive, indeed. Will clarify it in the next update. Thanks!

cost_maps = map_designs

this line or the next needs to be changed