-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheck_enu.m
45 lines (41 loc) · 1000 Bytes
/
check_enu.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% % y - positive around yaw axis (screw-positive)
% % check
% rpy = [0; 0; pi/2]
% rpy2enu = rpy2mat(rpy);
% R_rpy = [1;0;0];
% R_enu = rpy2enu*R_rpy
% P_rpy = [0;1;0];
% P_enu = rpy2enu*P_rpy
% Y_rpy = [0;0;1];
% Y_enu = rpy2enu*Y_rpy
% % p - positive around pitch axis (screw-positive)
% % check
% rpy = [0; pi/2; 0]
% rpy2enu = rpy2mat(rpy);
% R_rpy = [1;0;0];
% R_enu = rpy2enu*R_rpy
% P_rpy = [0;1;0];
% P_enu = rpy2enu*P_rpy
% Y_rpy = [0;0;1];
% Y_enu = rpy2enu*Y_rpy
% % yp - positive around yaw and pitch axis (screw-positive)
% % check
% rpy = [0; pi/2; pi/2]
% rpy2enu = rpy2mat(rpy);
% R_rpy = [1;0;0];
% R_enu = rpy2enu*R_rpy
% P_rpy = [0;1;0];
% P_enu = rpy2enu*P_rpy
% Y_rpy = [0;0;1];
% Y_enu = rpy2enu*Y_rpy
% ypr - positive around yaw and pitch axis, negative around roll axis (screw-positive)
% check
rpy = [-pi/2; pi/2; pi/2]
rpy2enu = rpy2mat(rpy);
R_rpy = [1;0;0];
R_enu = rpy2enu*R_rpy
P_rpy = [0;1;0];
P_enu = rpy2enu*P_rpy
Y_rpy = [0;0;1];
Y_enu = rpy2enu*Y_rpy
% checked!