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

📄 is_consistent.m

📁 slam进阶学习
💻 M
字号:
function [ok, vehicle] = is_consistent (H, features, observations)
%-------------------------------------------------------
% University of Zaragoza
% Centro Politecnico Superior
% Robotics and Real Time Group
% Authors:  J. Neira, J. Tardos
% Date   :  7-2002
%-------------------------------------------------------
% function ok = is_consistent (H, features, observations)
%
% Determine whether the vehicle location corresponding to
% hypothesis H between observations and features, is
% consistent.
%-------------------------------------------------------
global configuration;

[vehicle, ok] = estimate_vehicle_location (H, features, observations);

% A cheaper, but less tight, consistency verification algorithm:
%
% [vehicle, ok] = mean_square_location (H, features, observations);

if configuration.draw_intermediate_hypotheses
    figure(3); clf; axis equal; hold on;
    H
    draw_features (features, 'b');
    draw_hypothesis (H, features, observations, vehicle, 'r');
    if not(ok)
        disp('NON consistent hypothesis!');
    end
    disp('Press return to continue...');
    pause
end

⌨️ 快捷键说明

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