-
Notifications
You must be signed in to change notification settings - Fork 874
[2/N] Change NoiseModelFactorN to be an alias to NoiseModelFactorT #2302
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: fan/split-header-noisemodel
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.
ee6cb2e to
d827aee
Compare
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.
| /** Convenience base class to add aliases `X1`, `X2`, ..., `X6` -> ValueType<N>. | ||
| * Usage example: | ||
| * ``` | ||
| * class MyFactor : public NoiseModelFactorN<Pose3, Point3>, |
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.
Add the extra argument in the comment
dellaert
left a comment
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.
Please address comments
| }; // \class NoiseModelFactorN | ||
| }; // \class NoiseModelFactorT | ||
|
|
||
| template <class... ValueTypes> |
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.
Add a comment
| * Usage example: | ||
| * ``` | ||
| * class MyFactor : public NoiseModelFactorN<Pose3, Point3>, | ||
| * class MyFactor : public NoiseModelFactorT<Pose3, Point3>, |
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.
Change the class comment to reflect new capability.
| * class MyFactor : public NoiseModelFactorT<Vector, Pose3, Point3> { | ||
| * public: | ||
| * using Base = NoiseModelFactorN<Pose3, Point3>; | ||
| * using Base = NoiseModelFactorT<Pose3, Point3>; |
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.
Missing Vector
Adds output argument to NoiseModelFactorN -> NoiseModelFactorT
WIP to enable us ti use fixed output dimension with the NoiseModelFactor, which will save extra copy and allow other things.