Skip to content

Flame::getPoseFrame returns a null pointer #9

Description

@francescomilano172

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions