-
Notifications
You must be signed in to change notification settings - Fork 37
HW 4: Orientation in Robotics ‐ Exponential Coordinates, and Euler Angles
This homework assignment is designed to test your understanding of the exponential coordinates of rotation and Euler angles (note that some of the questions are adapted from our textbook, but some are designed by myself).
Question 1:
In terms of the
(a) Calculate the matrix logarithm
(b) Calculate the matrix exponential corresponding to the exponential coordinates of rotation
Question 2:
(a) Given the rotation matrix
find all possible values for
(b) The two vectors
where
Question 3: XYZ Roll-Pitch-Yaw angles
Another type of Euler Angles that is very common in aerospace applications is called XYZ Roll-Pitch-Yaw angles. Roll-pitch-yaw angles are a sequence of rotations about axes of the space frame. Visualize Roll-Pitch-Yaw angles as a sequence of rotations relative to the space frame as the following:
Visualization of the XYZ roll-pitch-yaw angles. The body frame is initially coincident with the space frame and then goes through a rotation about the space frame’s x-axis followed by a rotation about the space frame’s y-axis and finally a rotation about the space frame’s z-axis.
The terms roll, pitch, and yaw are traditionally used to describe the rotational motion of a ship or an aircraft where the roll is considered to be in the forward motion direction, the pitch is in the direction of the wing, and the yaw is towards the ground (or up):
roll-pitch-yaw-airplane.-.HD.720p.mov
Demonstration for roll-pitch-yaw angles. This simulation is from the website www.wolfram.com.
(a) Find the rotation matrix that represents XYZ roll-pitch-yaw angles depicted above. Note here that all the rotations happen w.r.t the space frame (successive rotations about the fixed frame axes) (6 points).
(b) The result that you get from (a) should be the same as the ZYX Euler angles that we studied in the lesson (verify this, 5 points). Though the orientations are the same at the end, does this mean that the physical interpretations are the same as well (5 points)? Think about this in terms of the order in which the rotations are written and how they are happening.
(c) Inverse problem: Suppose the representation of an orientation is given by a rotation matrix R as:
Find the equivalent sets of roll-pitch-yaw angles that can represent this orientation (7 points). You should find two sets of roll-pitch-yaw angles that give the same orientation. Show this in simulation using RoboDk that these two sets of Euler angles will result in the same orientation (in the drop-down menu use a convention that uses XYZ roll-pitch-yaw angles for the rotation) (7 points).
Question 4: Converting the Orientation given by roll-pitch-yaw angles to the Equivalent Euler Angles
Suppose that we have a remote controller with a known orientation given by the roll-pitch-yaw angles
The orientation of the remote control is given by the set of roll-pitch-yaw angles. In practical applications, the orientation of an object can be measured using sensors such as a gyroscope.
(a) We want to find a transformation that transforms the orientation of the remote control given by roll-pitch-yaw angles
-
Note: think about the orientation of the remote control as the desired (known) orientation that the robot hand wants to achieve. What sets of ZYZ Euler angles does it need? You will get two sets of such angles (5 points).
-
You can always use MATLAB/Python's symbolic computing features for ease of calculations. For example, in MATLAB you can define theta as a symbol like:
syms theta
and from that time you can use theta and it will do all calculations symbolically (usesimplify
function to make the answer simpler if possible). For Python, we learned how to do that in this lesson's lab.
(b) As a numerical example, if the sensor attached to the remote control measures the orientation of the remote control approximately as the Roll-Pitch-Yaw angles of
(c) Use RoboDK and show that these sets of Euler angles will give the same orientation as the set of the roll-pitch-yaw angles representing the orientation of the remote. Record a video of your demonstration (5 points).
Submission:
- Submit your answers via Canvas in a PDF and video format. If the video is large, you can include a link to a Drive, and I can download it from there.
- For the coding section, provide a link to your GitHub page or submit the code directly through Canvas.
Good luck!