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 crash on ubuntu 18.04 #11

Open
evankrause opened this issue Jul 12, 2019 · 1 comment
Open

Eigen crash on ubuntu 18.04 #11

evankrause opened this issue Jul 12, 2019 · 1 comment

Comments

@evankrause
Copy link

I'm using a forked version of this repo (with ROS stripped off) and recently tried to get things working on Ubuntu 18.04. Initially, things would crash with some cryptic eigen related errors, but after some effort debugging, I think I have things working and wanted to share my fixes in case someone else was having similar issues.

Basically there were some dimension mismatches in several places and also an index out of bounds issue. I have no idea why things work on older version on Ubuntu (I've been using 14.04 until now), but maybe it's because of Eigen changes?

The biggest issue was in handle_search.cpp line 103 "if (inliersi < 0)". Here, inliers[i] is a Vector2d so the "(2)" index is out of bounds and causes things to crash. I changed this to "if (inliersi < 0)" but I'm not 100% this is correct. Can anyone verify that this is the correct fix here?

You can see my full set of changes here: https://github.com/evankrause/agile_grasp/tree/ubuntu-18.04

@atenpas
Copy link
Owner

atenpas commented Jul 13, 2019

I think that's the correct fix. That looks like a bug actually. Thanks for fixing! Will create a PR later.

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

2 participants