Tool/software:
Hello,
In Radar_toolbox_2_30_00_12, we observed sensor rotation computation using example present in radar_toolbox_2_30_00_12\source\ti\examples\Automotive_InCabin_Security_and_Safety\AWR6843_CPD_with_Classification. Here we found a formula as below,
y1 = [ cosd(yzRot), sind(yzRot)] * [y; z];
z1 = [ -sind(yzRot), cosd(yzRot)] * [y; z];
% rotation in xy plane
x1 = [ cosd(xyRot), sind(xyRot)] * [x; y1];
y2 = [ -sind(xyRot), cosd(xyRot)] * [x; y1];
% rotation in xz plane
x2 = [ cosd(xzRot), sind(xzRot)] * [x1; z1];
z2 = [ -sind(xzRot), cosd(xzRot)] * [x1; z1];
After rotation, from above equations New X(x2) and New Z(z2) values will be as,
x2 = x[cosB cosC] + y [ cosA sinB cosC - sinA sinC] + z [sinA sinB cosC + cosA sinC ]
z2 = x[cosB (-sinC)] + y[ cosA sinB (-sinC) - sinA cosC] + z [ sinA sinB (-sinC) + cosA cosC ]
Here A refers yzRot, B refers xyRot, C refers xzRot.
When the X,Y,Z values are calculated from the Tait–Bryan angles (Matrix Multiplication of [Y (α) Z (β) X (γ)] with passive rotations)
x2 = x[cosB cosC] + y [ cosA sinB cosC + sinA sinC] + z [sinA sinB cosC - cosA sinC ]
z2 = x[cosB sinC) + y[ cosA sinB sinC - sinA cosC] + z [ sinA sinB sinC + cosA cosC ]
After rotation, New Y value is same for both calculations. Could u please explain Why these X and Z are varying?