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 support for dynamic dimensionality of edges #197

Merged
merged 1 commit into from
Sep 9, 2017
Merged

Fix support for dynamic dimensionality of edges #197

merged 1 commit into from
Sep 9, 2017

Conversation

lowsfer
Copy link
Contributor

@lowsfer lowsfer commented Aug 4, 2017

I was using an edge class derived from:
g2o::BaseBinaryEdge<Eigen::Dynamic, Eigen::Matrix<double, Eigen::Dynamic, 4>, vertex_type, vertex_type>

The program always crash during optimisation. I found the problem is that when Edge dimension is Eigen::Dynamic, the jacobian is constructed with wrong parameters. This patch fixes the problem.

When D is static (>0), the changed parameter is still a compile-time constant, without overhead.

@lowsfer lowsfer closed this Aug 4, 2017
@lowsfer lowsfer reopened this Aug 4, 2017
@lowsfer
Copy link
Contributor Author

lowsfer commented Sep 8, 2017

Any comment on this patch? Do you need a minimum reproduction of this issue?

@RainerKuemmerle RainerKuemmerle merged commit e26b432 into RainerKuemmerle:master Sep 9, 2017
@RainerKuemmerle
Copy link
Owner

Sorry for the delay.

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.

2 participants