obtain_observation.m
来自「slam进阶学习」· M 代码 · 共 22 行
M
22 行
function point = obtain_observation (observations, p)
%-------------------------------------------------------
% University of Zaragoza
% Centro Politecnico Superior
% Robotics and Real Time Group
% Authors: J. Neira, J. Tardos
% Date : 7-2002
%-------------------------------------------------------
% function point = obtain_observation (observations, p)
%
% Return the information corresponding to observation p
% in observations.
%-------------------------------------------------------
if (p < 0) | (p > observations.m)
error(sprintf('Obtain_observation: observation %d does not exist, scan contains %d points!', p, observations.m));
end
ind = point_rows(p);
point.z = observations.z(ind);
point.R = observations.R(ind, ind);
point.radius = observations.radius(p);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?