-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getIndex() Unable to Obtain Index for Maximum Negative Length of Map #272
Comments
Hey @BruceChanJianLe, thank you for submitting the bug. Could you submit a short unit test into this file: https://github.com/ANYbotics/grid_map/blob/master/grid_map_core/test/GridMapTest.cpp. I guess you can copy the code from above. |
Hi @maximilianwulf, thanks for getting back. I have submitted a short unit test as requested in #275. Please have a look at the failing test |
Thank you, we will have a look at it. |
You're welcome! Thank you for taking your time to look into this issue. |
Hey @BruceChanJianLe, indeed the function |
Hi @maximilianwulf, thank you for looking into this issue, appreciate your time and contribution to the community. Please remember to close this issue when the fix is merged, before that, I shall leave this issue as open. Thanks again and take care! |
Hey @BruceChanJianLe, a fix is on the way. Let me know if you have further issues. |
Hi @maximilianwulf, thanks for looking into this is issue. I will be looking forward to the fix! Thank you:) |
You can check out this commit f1344bd |
Wonderful! I will test on it when it is successfully merged into master branch. Thank you @maximilianwulf ! |
My grid_map is geometry size is as below:
When my position is -0.5 (return from getClosestPositionInMap()), which is still valid in the map, I get the error of
However, if my position is
0.5
(return from getClosestPositionInMap()), I do not get the error, and I am able to obtain the index.I specifically mentioned getClosestPositionInMap() function as I am not sure whether should the getClosestPositionInMap() return something like
-0.49
instead of-0.5
, or is this a bug inside of getIndex().Below code will fail when any of the x or y position is
-0.5
which is the maximum negative length of the map.Thank you for taking your time to look into this matter:D
The text was updated successfully, but these errors were encountered: