⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 draw_obs.m

📁 用EKF
💻 M
字号:
function draw_obs (observations)
%-------------------------------------------------------
% University of Zaragoza
% Centro Politecnico Superior
% Robotics and Real Time Group
% Authors:  J. Neira, J. Tardos
% Date   :  7-2004
%-------------------------------------------------------
%-------------------------------------------------------
global configuration;

%draw observations
x = observations.z(1:2:end);
y = observations.z(2:2:end);
plot(x, y, ['g' '+']);

for p = 1:length(x),
    if configuration.ellipses
        draw_ellipse (observations.z(2*p-1:2*p), observations.R(2*p-1:2*p, 2*p-1:2*p), 'g');
    end
    if configuration.tags
        ht = text(x(p)-0, y(p)+0.05, ['O' num2str(p)]);
        set(ht, 'Color', 'g');
    end  
end

⌨️ 快捷键说明

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