-
Notifications
You must be signed in to change notification settings - Fork 798
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
Mismatch between calibrate functions for Cal3_S2 and Cal3Bundler #237
Comments
This issue is easy to fix once we figure out how to handle the tolerance argument in |
@varunagrawal It looks like we can't access the |
This is something @dellaert and I need to discuss at a design level so I can't comment on that sigh. I've had a PR ready for months actually, but it breaks the API signature which is what is causing the delay. |
I’m sorry, what’s the issue? |
Point2 calibrate(const Point2& p, OptionalJacobian<2,5> Dcal = boost::none,
OptionalJacobian<2,2> Dp = boost::none) const; while Point2 calibrate(const Point2& pi, const double tol = 1e-5) const; aka no |
@dellaert @johnwlambert the original PR I made is here: #257 All we need to do is figure out the best API method signatures and code in the Jacobians and we're done. 🙂 |
“Causes issues” ? |
Using |
Thanks Varun. So Pybind11 will not allow two separate classes to have the same method with different signatures? That seems extremely restrictive. Or is it the case that these two classes are related in a particular hierarchy and that causes problems? |
This was definitely an issue with the old Python wrapper so I don't know if this will work with Pybind11 or not. On the other hand, even if you're able to wrap the function, if you try to perform a backprojection, your code will just throw an unhelpful segfault. |
Description
PinholeCamera
can accept bothCal3_S2
andCal3Bundler
as calibrations, but thecalibrate
function is defined differently for each, such that whencamera.backproject(pn, depth)
is called,Cal3Bundler
errors out.Steps to reproduce
This unit test when added to
testPinholeCamera.cpp
raises the error:Expected behavior
PinholeCamera
(and primarily it's base classPinholeBase
) should be able to callcalibration().calibrate
without any errors for all calibration types.Environment
N/A
Additional information
The text was updated successfully, but these errors were encountered: