Skip to content

Possible error in ATE/RTE metric calculation #8

@scottsun95

Description

@scottsun95

Hi,

I was looking at this line of your ATE calculation

return np.sqrt(np.mean((est - gt) ** 2))

and these lines of your RTE calculation

ronin/source/metric.py

Lines 43 to 44 in 59b2a23

err = est[deltas[i]:] + gt[:-deltas[i]] - est[:-deltas[i]] - gt[deltas[i]:]
rtes[i] = np.sqrt(np.mean(err ** 2))

Based on your cited source, I am wondering if you are missing a norm in the error calculation, as you would want to be calculating the Euclidean distance between the estimated and ground truth positions. The equations, as written, appear to be computing the mean over all the individual squared x and y components. In other words, shouldn't this calculation be the following?

np.sqrt(np.mean(np.linalg.norm(est - gt) ** 2)

Thanks,
Scott

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions