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

Eigen Plugins Order #67

Closed
pfankhauser opened this issue Aug 26, 2016 · 4 comments
Closed

Eigen Plugins Order #67

pfankhauser opened this issue Aug 26, 2016 · 4 comments

Comments

@pfankhauser
Copy link
Member

Currently, there's an error when Eigen is not loaded at first from grid_map_core because of the Eigen Plugins.

@solosuper
Copy link

solosuper commented Oct 12, 2016

When I am using "#include "grid_map_cv/grid_map_cv.hpp", I get the error

/opt/ros/kinetic/include/grid_map_cv/GridMapCvConverter.hpp: In static member function ‘static bool grid_map::GridMapCvConverter::toImage(const grid_map::GridMap&, const string&, int, cv::Mat&)’:
/opt/ros/kinetic/include/grid_map_cv/GridMapCvConverter.hpp:136:47: error: ‘const Matrix {aka const class Eigen::Matrix<float, -1, -1>}’ has no member named ‘minCoeffOfFinites’
     const float minValue = gridMap.get(layer).minCoeffOfFinites();

Has it got something to do with this issue, or how can I resolve it?


I have created a minimal project, and tracked it down to this:
Problem does not occur:

#include "grid_map_cv/grid_map_cv.hpp"
#include "Eigen/Eigen"

Problem does occur:

#include "Eigen/Eigen"
#include "grid_map_cv/grid_map_cv.hpp"

@pfankhauser
Copy link
Member Author

Yes, that's the problem we're facing when Eigen is included first, as Grid Map relies on Eigen Addons that are loaded through macros: http://eigen.tuxfamily.org/dox/TopicCustomizingEigen.html

I'm not sure how to resolve this nicely, any hints are appreciated.

@pfankhauser
Copy link
Member Author

Thanks to @djud and @hogabrie for resolving this with https://github.com/ethz-asl/grid_map/pull/73!

@adricort
Copy link

Hi @pfankhauser the pull is no longer available and I still have the same problem, do you know how to solve this? thanks

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

No branches or pull requests

3 participants