Skip to content

Maybe something wrong in KalmanFilter::gating_distance #18

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();
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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