data_associate_known.m

来自「fastslam 又称为rao-blackwillisd slam方法」· M 代码 · 共 21 行

M
21
字号
function [zf,idf,zn,table]= data_associate_known(z, idz, table, Nf)
% 

zf= []; zn= [];
idf= []; idn= [];

% find associations (zf) and new features (zn)
for i=1:length(idz)
    ii= idz(i);
    if table(ii) == 0 % new feature
        zn= [zn z(:,i)];
        idn= [idn ii];
    else
        zf= [zf z(:,i)];
        idf= [idf table(ii)];
    end
end

% add new feature IDs to lookup table
table(idn)= Nf + (1:size(zn,2)); % add new feature positions to lookup table

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?