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

Fix matlab toolbox compilation #1262

Merged
merged 2 commits into from
Aug 1, 2022
Merged

Fix matlab toolbox compilation #1262

merged 2 commits into from
Aug 1, 2022

Conversation

varunagrawal
Copy link
Collaborator

Interface files for Matlab toolbox were missing some namespaces. This PR adds them so that matlab wrapper compilation works as expected.

Fixes #1246

@varunagrawal varunagrawal self-assigned this Aug 1, 2022
@varunagrawal varunagrawal added bugfix Fixes an issue or bug matlab Related to MATLAB wrapper quick-review Quick and easy PR to review labels Aug 1, 2022
Copy link
Member

@gchenfc gchenfc left a comment

Choose a reason for hiding this comment

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

see comment, but I still approve

@@ -137,7 +137,7 @@ class FitBasis {
static gtsam::GaussianFactorGraph::shared_ptr LinearGraph(
const std::map<double, double>& sequence,
const gtsam::noiseModel::Base* model, size_t N);
This::Parameters parameters() const;
gtsam::This::Parameters parameters() const;
Copy link
Member

Choose a reason for hiding this comment

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

This (no pun intended) doesn't make sense to me - is This a special keyword in the wrapper or something?

Shouldn't this make sense to just be gtsam::FitBasis::Parameters ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is used when we have templated types so that the correct substitution for the template happens.

@varunagrawal varunagrawal merged commit 0b9ddb7 into develop Aug 1, 2022
@varunagrawal varunagrawal deleted the fix/matlab branch August 1, 2022 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes an issue or bug matlab Related to MATLAB wrapper quick-review Quick and easy PR to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MATLAB Wrapper Build fail
2 participants