emptycheck.m

来自「对于3-RRR型机械臂」· M 代码 · 共 27 行

M
27
字号
% This is a subfunction of rrrproject3.m
% Created by Gan Tao        taogan@eng.buffalo.edu
% Graduate Student of SUNY Buffalo
% Date: Jan.2004
% emptycheck.m is for checking wether the variables for inverse kinematic
% are full. If there are enough for the inverse it sends 0 otherwise send
% 1.


function emck=emptycheck()

global H a1 b1 
global Yp Xp Ypb Xpb Ypc Xpc
global Xg Yg fai
global S1 S2 S3 AD


if isempty(Xg) | isempty(Yg) | isempty(fai) | isempty(H) | isempty(a1) | isempty(b1) | isempty(Yp) | isempty(Xp) | isempty(Xpb) | isempty(Ypb) | isempty(Ypc) | isempty(Xpc)...
        isempty(S1)|isempty(S2)|isempty(S3)|isempty(AD)
    

    emck = 1;
    
else 
    emck = 0;
    
end

⌨️ 快捷键说明

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