-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fixing the offset that exists between the grid and the raw data #226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve of this, but I would like @doisyg to review and also approve as I know he is a user of this and I don't want to break his behavior. Plus he worked on the initial alignment bits so he would be a good person to review this as well.
@doisyg can you review this PR?
If he approves, I'll backport / foward port to all distributions. This would override the changes from the other method used in ros2
.
My sincerest apologies for the delay, this really wasn't that complicated and I kept pushing it off. |
Ok, quickly jumping in, I am a bit confused. Is this supposed to be only porting to Foxy the fix I did for Galactic there : #213 EDIT: reading the full conversation |
I think what the author has pointed out is that the previous solution didn’t actually fully fix the issue and this does. While this is targeted at Foxy, if you agree with these changes, I would update all ROS2 branches with this change and revert the previous fix. While visualization is part of it, if the grid is offset to the costmap, then that would have a real world impact of a half cell shift of measurements vs costmap cells occupied potentially |
Yes I just read the comments. There is maybe an issue with my fix when costmap_resoltion != voxel_size, but not sure this PR completely fixes it. I would like to take the time to run a couple of tests. I willl post here in the following days comparative results with different conditions and code version.
For instance the following example shows misalignment of voxel visualization (size 0.05) against the costmap grid and the input pointcloud: |
I think there are 3 points:
Ok, but currently I haven't the environment. I will create it if necessary. |
Sorry for the late reply, I was busy and wanted to do some proper testing on a real hardware. |
OK - just to be clear before I do this, you're OK if I:
|
Yes ! |
#231) Co-authored-by: Kaven Yau <kavenyau@foxmail.com>
#231) Co-authored-by: Kaven Yau <kavenyau@foxmail.com>
* misalignment fix - Added grid translation and rounding in the marking * fixed misalignment between costmap, voxel grid and 2d grid Applied fix based on #226 that is applied to ROS 2.
* misalignment fix - Added grid translation and rounding in the marking * fixed misalignment between costmap, voxel grid and 2d grid Applied fix based on SteveMacenski#226 that is applied to ROS 2.
Fixed #224.
Without this patch:
With this patch: