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

📄 get.m

📁 it is a matlab file foe develop SLAM localization this is a toolbox for develop develop realtime e
💻 M
字号:
%GET    Get method for robot object.%   V = GET(R,'PropertyName') returns the value of the specified%   property for the robot object R.%%   GET(R) displays all property names and their current values%   for the robot object R.%%   Examples:%      state = get(r,'name');% %   See also: ROBOT/SET.% Copyright (c) 2004, CAS-KTH. See licence file for more info.% v.1.0, Nov. 2003, Kai Arrasfunction val = get(varargin);switch nargin,  case 1,    r = varargin{1};    if (isa(r,'robot'))      get(r.entity);      disp(sprintf('       Name = [%s]', r.name));      disp(sprintf('       Time = [%d]', r.t));      disp(sprintf('   FormType = [%d]', r.formtype));   else      error('robot/get: Wrong argument type')    end;  case 2,    r = varargin{1};    prop_name = varargin{2};    switch lower(prop_name),      case 'type',        val = get(r.entity,'type');      case 'id',        val = get(r.entity,'id');      case 'name',        val = r.name;      case {'timestamp','time'},        val = r.t;      case 'formtype',        val = r.formtype;      otherwise        error([prop_name,' is not a valid robot object property']);    end;  otherwise    error('robot/get: Wrong number of input arguments')end

⌨️ 快捷键说明

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