obtain_feature.m

来自「slam进阶学习」· M 代码 · 共 24 行

M
24
字号
function point = obtain_feature (features, p)
%-------------------------------------------------------
% University of Zaragoza
% Centro Politecnico Superior
% Robotics and Real Time Group
% Authors:  J. Neira, J. Tardos
% Date   :  7-2002
%-------------------------------------------------------
% function point = obtain_feature (features, p)
%
% Return the information corresponding to feature p
% in features.
%-------------------------------------------------------

if (p < 0) | (p > features.n)
    error(sprintf('Obtain_feature: feature %d does not exist, map contains %d features!', p, features.n));
end

ind = point_rows (p);
point.x = features.x(ind);
point.P = features.P(ind, ind);
point.radius = features.radius(p);
point.var_radius = features.var_radius(p);

⌨️ 快捷键说明

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