-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
gtsam.utilities.extractPoint2() doesn't work #841
Comments
Valid bug. The issue is the underlying C++ function. |
Okay so did a bit of investigating and the underlying C++ function is correct (verified with a unit test). I believe this is because |
So what can be done about this? Do you know any alternative way to filter out Point2 type from Values() ? |
Already on it. Will make the PR in about 30 minutes. |
How do I get the fixed version? Will I have to pull and install again? |
Yup. |
gtsam.utilities.extractPoint2(Values) return empty array, even if Values have Point2 variables.
Steps to reproduce
initial = gtsam.Values()
initial.insert(1, gtsam.Pose2(0.0, 0.1, 0.1)
initial.insert(2, gtsam.Point2(0.0, 0.1))
gtsam.utilities.extractPoint2(initial)
returnsarray([], shape=(0, 2), dtype=float64)
gtsam.utilities.extractPose2(initial)
return correctly which isarray([[0. , 0.1, 0.1]])
Expted behavior of
gtsam.utilities.extractPoint2(initial)
is returningarray([[0. , 0.1]])
The text was updated successfully, but these errors were encountered: