Skip to content

Conversation

@ProfFan
Copy link
Collaborator

@ProfFan ProfFan commented Nov 17, 2025

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.

@ProfFan ProfFan requested a review from Copilot November 17, 2025 00:36
Copilot finished reviewing on behalf of ProfFan November 17, 2025 00:56
Copy link
Contributor

Copilot AI left a 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.

@ProfFan ProfFan force-pushed the fan/new-noise-model-factor branch from ee6cb2e to d827aee Compare November 17, 2025 03:24
@ProfFan ProfFan requested a review from Copilot November 17, 2025 03:25
Copy link
Contributor

Copilot AI left a 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.

Copilot finished reviewing on behalf of ProfFan November 17, 2025 03:48
/** Convenience base class to add aliases `X1`, `X2`, ..., `X6` -> ValueType<N>.
* Usage example:
* ```
* class MyFactor : public NoiseModelFactorN<Pose3, Point3>,
Copy link
Collaborator Author

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

Copy link
Member

@dellaert dellaert left a 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>
Copy link
Member

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>,
Copy link
Member

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>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Vector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants