Skip to content
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

DiscreteValues #966

Merged
merged 3 commits into from
Dec 14, 2021
Merged

DiscreteValues #966

merged 3 commits into from
Dec 14, 2021

Conversation

dellaert
Copy link
Member

Added a separate type and header for DiscreteValues. If we do change to a unified Values type, it will be easy to do a global replace.

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

Awesome stuff, but I have one comment for something very simple.

@@ -104,6 +94,6 @@ class GTSAM_EXPORT DiscreteFactor: public Factor {

// traits
template<> struct traits<DiscreteFactor> : public Testable<DiscreteFactor> {};
template<> struct traits<DiscreteFactor::Values> : public Testable<DiscreteFactor::Values> {};
template<> struct traits<DiscreteValues> : public Testable<DiscreteValues> {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should move this to DiscreteValues.h.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch!!!

@dellaert dellaert merged commit 69a943d into develop Dec 14, 2021
@dellaert dellaert deleted the feature/DiscreteValues branch December 14, 2021 00:12
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.

None yet

2 participants