Skip to content

Maybe something wrong in KalmanFilter::gating_distance #18

@lazylazypig

Description

@lazylazypig

hi; in KalmanFilter.cpp, about line 120:

    if (only_position)
    {
        projected_mean.tail<4>().setZero();
        projected_covariance.bottomRightCorner<2, 2>().setZero();
    }

projected_mean is a 4-dims vector of type KFMeasSpaceVec , so projected_mean.tail<4>().setZero() will make projected_mean a zero vector; i think it's not right, and maybe the right implementation is:

    if (only_position)
    {
        projected_mean.tail<2>().setZero();
        projected_covariance.bottomRightCorner<2, 2>().setZero();
    }

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions