You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a submap that should be the same as the full map. The same happens (with different values printed out) is I start the submap in a different location and with a different size, all fitting inside the full map.
At some point I thought I could not use at() with an iterator from a submap on the full map, but this is exactly what the iterator demo does.
Did I find a bug in the humble version? Did I miss something?
The text was updated successfully, but these errors were encountered:
Hi, it's very possible you found a bug. Thank you for reporting it.
If you can, do you mind forking grid_map, creating a branch, and showing the segfault in a unit test? With that information, I believe it will be quick to resolve.
Ryanf55
changed the title
SubmapIterator produces incorrect indices? (ROS humble)
SubmapIterator produces incorrect indices and segfaults? (ROS humble)
Jan 18, 2025
Please consider the bit of code below (coming from a ROS humble plugin I am working on):
This code works correctly, displaying
for the first element of the map, as expected.
If instead of Using the
GridMapIterator
like in the code above I use aSubmapIterator
(with the line commented out above), I get a segfault and:(no elev and segfault).
This is a submap that should be the same as the full map. The same happens (with different values printed out) is I start the submap in a different location and with a different size, all fitting inside the full map.
At some point I thought I could not use at() with an iterator from a submap on the full map, but this is exactly what the iterator demo does.
Did I find a bug in the humble version? Did I miss something?
The text was updated successfully, but these errors were encountered: