|
|
|
|
|
This example illustrates how to transfer a wrench from one coordinate frame to another.
clear all

WAResA = [0; 5; 0; 0; 0; 10]; % [Force (N), Moment (N-cm)]
to
.TAToB = [0 0 1 0;
1 0 0 -3;
0 1 0 -6;
0 0 0 1];
% Extract the rotation matrix and the position vector from T_AToB.
and the position vector
from
.RAToB = TAToB(1:3,1:3) XARelBResB = TAToB(1:3,4)
RAToB =
0 0 1
1 0 0
0 1 0
XARelBResB =
0
-3
-6
.XCross = [ 0 -XARelBResB(3) XARelBResB(2);
XARelBResB(3) 0 -XARelBResB(1);
-XARelBResB(2) XARelBResB(1) 0 ]
% Form the transfer matrix.
XCross =
0 6 -3
-6 0 0
3 0 0
.LambdaAToB = [RAToB zeros(3);
XCross*RAToB RAToB ]
LambdaAToB =
0 0 1 0 0 0
1 0 0 0 0 0
0 1 0 0 0 0
6 -3 0 0 0 1
0 0 -6 1 0 0
0 0 3 0 1 0
to
.WBResB = LambdaAToB*WAResA
WBResB =
0
0
5
-5
0
0
This MATLAB example illustrates a computation from the textbook Fundamentals of Robot Mechanics by G. L. Long, Quintus-Hyperion Press, 2015. See http://www.RobotMechanicsControl.info for other relevant files.