karlkurzer / path_planner

Hybrid A* Path Planner for the KTH Research Concept Vehicle
http://karlkurzer.github.io/path_planner/
BSD 3-Clause "New" or "Revised" License
1.49k stars 526 forks source link

SIGSEGV: Negative indices #30

Open grimmmyshini opened 4 years ago

grimmmyshini commented 4 years ago

The code often breaks out into Segmentation Faults when used with dynamic maps as the co-ordinates x and y may be negative; and when used while setting indices, they result in a negative value. This in turn causes segmentation faults.

A possible solution is to transform the x and y co-ordinates from World to Map before setting indices.