-
Notifications
You must be signed in to change notification settings - Fork 856
Deprecate GTSAM_SLOW_BUT_CORRECT_EXPMAP
#2043
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
base: develop
Are you sure you want to change the base?
Conversation
Some of the failing tests are because of quite different results (e.g. |
@dellaert the TSAM factor tests are failing with wildly different Jacobians (e.g. values of 7 in expected and 3 in actual). It might be something with how the factor Jacobians are being computed. Any thoughts since I am not super familiar with this at the moment? |
I'll take a look, please review Hat&Vee PR? |
I fixed all tests (on my MacBook) but had to comment out a test in GnC, @lucacarlone |
Okay nice, I had similar fixes locally but wanted to double check with you. |
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 think we need to add some computer time benchmarks before merging this
cmake/HandleGeneralOptions.cmake
Outdated
option(GTSAM_SLOW_BUT_CORRECT_EXPMAP "Use slower but correct expmap for Pose2" OFF) | ||
option(GTSAM_SLOW_BUT_CORRECT_EXPMAP "Use slower but correct expmap for Pose2" ON) | ||
|
||
message(WARNING "GTSAM_SLOW_BUT_CORRECT_EXPMAP has been deprecated and will be removed in a future release.") |
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.
Should this message be displayed only when set to OFF?
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.
Good point.
Set
GTSAM_SLOW_BUT_CORRECT_EXPMAP
to ON by default and print deprecation warning.This is based on findings by @dellaert and I on the accuracy of the exponential map of
Pose2
for hybrid state estimation with the City10000 dataset.With the flag off, we get

where the trajectory is elongated.
With the flag on, we get a better trajectory.

Similar results can be seen for longer trajectories (e.g. 220 timesteps).
Flag OFF
Flag ON