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

📄 draw_features.m

📁 slam进阶学习
💻 M
字号:
function draw_features (features, color)
%-------------------------------------------------------
% University of Zaragoza
% Centro Politecnico Superior
% Robotics and Real Time Group
% Authors:  J. Neira, J. Tardos
% Date   :  7-2002
%-------------------------------------------------------
% function draw_features (features, color)
%
% plots the point features, whose coordinates
% appear in features.x
%-------------------------------------------------------
global configuration;

axis equal;
hold on;
title(sprintf('Stochastic map with %d features', features.n));

x = features.x(1:2:end);
y = features.x(2:2:end);

if configuration.draw_trunks
    draw_radius(x, y, features.radius, color);
end

if configuration.draw_ellipses
    for p = 1:length(x),
        feat = obtain_feature (features, p);
        draw_ellipse (feat.x, feat.P, color);
    end
end

plot(x, y, [color '.']);

⌨️ 快捷键说明

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