Problem 44895. Determine roll pitch yaw angles from a 3D rotation matrix
22.73% Correct | 77.27% Incorrect
Last Solution submitted on May 22, 2023
William on 29 Apr 2019
There is a flaw in the test suite. It tests the values in rpy2r rather than the results rpy from the solver's function. Also, the tolerance needs to be widened a bit.
Rafael S.T. Vieira on 14 Sep 2020
Actually that's not a flaw, William. Since it is not always possible to determine the exact three original angles. In the second test case for instance, there are infinite solutions due to a singularity. Therefore, he tests the rotation matrix since it will be equal for all possible solutions.
Solution CommentsShow comments
Problem Recent Solvers5
Return the 3n+1 sequence for n
Maximum running product for a string of numbers
More from this Author16
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!