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

Flame::getPoseFrame returns a null pointer #9

Open
francescomilano172 opened this issue Nov 22, 2019 · 0 comments
Open

Flame::getPoseFrame returns a null pointer #9

francescomilano172 opened this issue Nov 22, 2019 · 0 comments

Comments

@francescomilano172
Copy link

Hi, I am getting segmentation faults while trying to run the pipeline on Ubuntu 18.04 (e.g., with the launch file flame_offline_asl.launch from https://github.com/robustrobotics/flame_ros). Some of them are caused by Eigen memory issues and can be temporarily solved by using #define EIGEN_DONT_VECTORIZE and #define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT. However, I am now getting another segfault, which seems to occur when dereferencing the shared_ptr fcmp at

if (fcmp->id >= curr_pf_->id) {
.
This happens because Flame::getPoseFrame can return a null pointer whenever no pose frames with a valid score are found (cf.
utils::KeyFrameSelector::score(fnew.img[0].cols, fnew.img[0].rows,
and, e.g.,
return std::numeric_limits<float>::lowest();
).

Is there anything that I'm doing wrong?

Thank you

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

1 participant