wyh rotation matrix convert to eular angle is not same with original eular?
조회 수: 2 (최근 30일)
이전 댓글 표시
At the beginning,i use eul2rotm function to convert eular degree to rotation matrix,then use rotm2eul function convert to back ,but it not same as before,why it occur like this result,i don't it understand. Thanks in advance!
eular1 = [pi/2,pi,-pi/2] % ZYX default order
r = eul2rotm(eular1,'ZYX');
eular2 = rotm2eul(r,'ZYX')
eular2 is not same eular1?
댓글 수: 0
채택된 답변
Matt J
2022년 5월 10일
편집: Matt J
2022년 5월 10일
It is the same, because eul2rotm is not a 1-1 function.
eular1 = [pi/2,pi,-pi/2]; % ZYX default order
r = eul2rotm(eular1,'ZYX')
eular2 = rotm2eul(r,'ZYX');
r2=eul2rotm(eular2,'ZYX')
댓글 수: 7
Sam Chak
2022년 10월 29일
편집: Sam Chak
2022년 10월 29일
You must apply the torque to rotate from one orientation to another. To achieve the minimum rotation, this implies that you need to apply the minimum torque.
You can derive a formula to compute the optimal torque needed, through the rigorous mathematics route.
Or you can take the AI/ML route to automatically find just the right torque, with a click of a button without knowing the math of the system and the torque actuator. You need to define the Cost/Objective Function though.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Inertias and Loads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
