-
Notifications
You must be signed in to change notification settings - Fork 767
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
add Pose2.align() to wrapper #866
Conversation
Could you add a quick python unit test before merging though? |
Hi @dellaert, sure, I added one. One thing for us to be aware of is that if we provide ab pairs to this function, we get back bTa, not aTb, as expected. I think it's the same for the Pose3.align() as well. Maybe something to address in a PR in the future (would require modifying c++ tests also) |
@ProfFan do you know what's the preferred return type in .i if the c++ return type is |
@johnwlambert Good question! I haven't thought of that, but the problem is with the MATLAB bindings. I think adding an |
Hmmm. @ProfFan can we not return None in case there is no value? Python 3 types allow for an Optional[] type, so seems like maybe pybind could support it? @johnwlambert did you check that? |
The wrapper supports |
@varunagrawal Yea but I don't think we support it in the MATLAB-specific code? |
I agree but it shouldn't error out for the matlab wrapper. I tried it locally and it compiles without issues. If someone has a problem in the future, they can raise an issue and we'll look into it then. :) |
Thanks for taking a look all. It looks like including
|
Add I'm adding a commit since there is actually some non-trivial stuff going on here. |
Maybe |
The |
Thanks @varunagrawal and @ProfFan. I guess we are good to merge this now then? |
Looks awesome, I'll merge! |
Yep |
No description provided.