-
Notifications
You must be signed in to change notification settings - Fork 454
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
Bug in interpMapValueWithDerivatives (OccGridMapUtil.h)? #16
Comments
Hi, |
i have confirmed that you are correct , i used a same rosbag to test -((dx1 * xFacInv) + (dx2 * factors[0])), |
Why was this closed? |
I've closed all issues older than 5 years due to their age but you're right, this one may still be relevant. |
It seems x and y weights are switched in derivatives at Line 341:
return Eigen::Vector3f(
((intensities[0] * xFacInv + intensities[1] * factors[0]) * (yFacInv)) +
((intensities[2] * xFacInv + intensities[3] * factors[0]) * (factors[1])),
-((dx1 * xFacInv) + (dx2 * factors[0])),
-((dy1 * yFacInv) + (dy2 * factors[1]))
should be (changes in the last two lines):
return Eigen::Vector3f(
((intensities[0] * xFacInv + intensities[1] * factors[0]) * (yFacInv)) +
((intensities[2] * xFacInv + intensities[3] * factors[0]) * (factors[1])),
-((dx1 * yFacInv) + (dx2 * factors[1])),
-((dy1 * xFacInv) + (dy2 * factors[0]))
The text was updated successfully, but these errors were encountered: