The starting_points(height, width) is declared on line 569.
But the subscript is starting_points(width, height), as shown below.
It seems that the order of all starting_points in the file may need to be swapped.
In addition, I think the range of x should be [0, width - 1), instead of [0, width) (line 606).
Otherwise starting_points(x + 1, y) will also encounter the problem of out-of-bounds, such as line 693.
Please have a check.
Hello, Thank you very much for your work. When I was reading the code I noticed that the order of the subscript of
starting_points
in gbplanner_ros/planner_common/src/voxblox/voxblox_alt_impl.cpp seems to be written in reverse order.The
starting_points(height, width)
is declared on line 569. But the subscript isstarting_points(width, height)
, as shown below. It seems that the order of allstarting_points
in the file may need to be swapped.In addition, I think the range of
x
should be [0, width - 1), instead of [0, width) (line 606). Otherwisestarting_points(x + 1, y)
will also encounter the problem of out-of-bounds, such as line 693. Please have a check.Best, Zezhou