draw_features.m
来自「slam进阶学习」· M 代码 · 共 36 行
M
36 行
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 + =
减小字号Ctrl + -
显示快捷键?