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

📄 initmap.m

📁 it is a matlab file foe develop SLAM localization this is a toolbox for develop develop realtime e
💻 M
字号:
%INITMAP Initialize map for experiment.%   M = INITMAP(MODE,NAME,PARAMS) initializes the map M for a slam or%   localization experiment. With MODE = 0 the map is prepared for a%   slam experiment: a map M with name NAME is created, a robot is%   created, added to M and set to its initial pose PARAMS.XRINIT,%   PARAMS.CRINIT. With MODE = 1, the map is prepared for a locali-%   zation experiment: a map file with name NAME is opened, read in%   and the robot is set to the initial pose as above.%%   The PARAMS structure is defined in the setup file of the experi-%   ment.%%   See also MAP.% v.1.0, Kai Arras, Nov. 2003, CAS-KTHfunction m = initmap(mode,namestr,params),if ((mode==0)|(mode==1)) & isstr(namestr) & isstruct(params),    if mode == 0,        % create map object    m = map(namestr,0);    % create and init robot object    eval(['r = ',params.robot.class,'(params.robot);']);    % add robot to global map    m = addentity(m,r);      else        % open and read map file        % check on success    % if          % initialize robot        % else    %   disp('initmap: Map file not found'); m = [];    % end;        error('initmap: Localization not yet implemented');  end;  else  error('initmap: Wrong input. Check your arguments.');end;

⌨️ 快捷键说明

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