Commit ade7c96
authored
dwb_critics flaky test - lineCost coordinates must be within costmap (#4889)
(#4884)
There is no protection/checks in the pathway from lineCost to
costmap_2d::getIndex(mx, my) for grid coordinates that exceed
the of bounds of the allocated costmap. (presumably for speed)
This test was triggering an off by one error attempting to
read the the 2500 byte costmap at byte 2503
costmap size 50x50.
getIndex(3, 50)
= my * size_x_ + mx;
= 50 * 50 + 3;
= 2503
Signed-off-by: Mike Wake <macwake@gmail.com>1 parent 27fdcb7 commit ade7c96
File tree
1 file changed
+3
-1
lines changed1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| |||
0 commit comments