-
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
Cleaning SmartStereoProjectionPoseFactor #673
Cleaning SmartStereoProjectionPoseFactor #673
Conversation
ToniRV
commented
Jan 17, 2021
•
edited
Loading
edited
- ToDo:
- Split .h/.cpp
- Use const&, avoid needless and costly copies
- Lint everything to 80 char otw it's annoying to read.
- Add asserts where the user could mess up badly (i.e. different sizes for measurements and keys, etc)
- had to add gtsam_unstable to examples... Can I avoid that? Yes, moved the example to gtsam_unstable
- calibration() returns a weird const vector, if const of the K_ elements was the intended purpose, the const should be inside the shared_ptr... otherwise the original const is useless.
- Add a unique Id (Key) to the smart factor, otw there is a ton of bookkeeping to be done by the user (perhaps in another PR)
@ToniRV There is a dedicated examples for unstable: |
@ProfFan I guess the problem then is that examples/ISAM2_SmartFactorStereo_IMU.cpp #include <gtsam_unstable/slam/SmartStereoProjectionPoseFactor.h> |
I think that’s right. Feel free to move it! |
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’d move the example to unstable, but other than that, looks great!
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.
Cool. I'll merge.