pseudoi.m
来自「对于工程应用上的机械臂」· M 代码 · 共 18 行
M
18 行
%% Author: epokh
%% Website: www.epokh.org/drupy
%% This software is under GPL
%%Description:
%%input: m=total mass of the link
%% I=the inertia matrrix (3x3)
%% c=position of the centre of mass of the link
%%output= the pseudo inertia matrix
function pseudoI=pseudoI(m,I,c)
pseudoI=[(-I(1,1)+I(2,2)+I(3,3))/2, I(1,2),I(1,3),m*c(1);
I(1,2),(I(1,1)-I(2,2)+I(3,3))/2,I(2,3),m*c(2);
I(1,3),I(2,3),(I(1,1)+I(2,2)-I(3,3))/2,m*c(3);
m*c(1),m*c(2),m*c(3),m];
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?