-
Notifications
You must be signed in to change notification settings - Fork 874
[1/N] Split the NoiseModelFactorN to individual header #2301
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
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Pull Request Overview
Copilot reviewed 49 out of 49 changed files in this pull request and generated 1 comment.
| // \callgraph | ||
|
|
||
| #include <gtsam/nonlinear/NonlinearFactor.h> | ||
|
|
||
| #pragma once | ||
|
|
Copilot
AI
Nov 17, 2025
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.
The #pragma once directive must appear before any #include statements to properly guard the header file against multiple inclusion. Move #pragma once to line 21, before the #include directive.
| // \callgraph | |
| #include <gtsam/nonlinear/NonlinearFactor.h> | |
| #pragma once | |
| #pragma once | |
| // \callgraph | |
| #include <gtsam/nonlinear/NonlinearFactor.h> |
|
I like this! I’ll hold off approving until CI passes, including python wrapper, of course. |
|
Please do provide a PR comment even if you think the title is self-explanatory. And maybe provide a rationale even if what is being done is clear. |
Move the large class NoiseModelFactorN to its own header, which will help in future reactors. This necessitated a lot of changes wherever the older header was included.