Problem 44893. Create a 3D rotation matrix from roll-pitch-yaw angles
Consider a robotics application where the world reference coordinate frame {W} and a robot manipulator arm with an attached tool coordinate frame {T}. The orientation of {T} is described in terms of roll-pitch-yaw angles defined as a sequence of rotations, starting with the {W} frame, where yaw is about the X axis, pitch is about the Y axis and roll is about the Z axis.
Solution Stats
Problem Comments
-
2 Comments
The variable name rpy suggests that the order is [roll, pitch, yaw], but that's not correct, is it?
Oh, I see. You have defined the yaw to be around the x-axis, and the roll to be around the z-axis. But there is still a problem with test case 4. I think it should be [-1,-2,0] rather than [1,-2,0].
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
48174 Solvers
-
Selecting books on MATLAB for experts and beginners (blindfolded)
75 Solvers
-
Number of 1s in a binary string
8575 Solvers
-
Create incremental spiral WITHOUT USING EVAL or FEVAL
42 Solvers
-
Find out missing number from a vector of 9 elements
293 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!