フィルターのクリア

How to measure the distance error between local and global trajectories?

5 ビュー (過去 30 日間)
Massi_GRB
Massi_GRB 2020 年 2 月 21 日
コメント済み: darova 2020 年 2 月 21 日
I'm looking for a straightforward way to measure the error between samples of global trajectory w.r.t samples of a local planner tracking the global the number of samples are different, and each sample represents a (x,y) location in 2D surface. I thought about calculating the surface between the two curves formed by respective samples set, how to proceed with Matlab or may there is a more adequate method.

回答 (1 件)

Jacob Wood
Jacob Wood 2020 年 2 月 21 日
My approach would be: resample red curve onto the blue x values using interp1, find local error in each point, sum together to compute global error. Something like:
red_resample = interp1(red_x,red_y,blue_x)
errors = abs(blue-red_resample)
global_error = sum(errors)

カテゴリ

Help Center および File ExchangeCoordinate Transformations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by