Professional Documents
Culture Documents
EL424
LABORATORY MANUAL
Spring 2018
LAB 07
Rigid-Body Motions and Transformation matrix calculation
using MATLAB
Engr. Iqra Akram
______________________________________
LAB ENGINEER SIGNATURE & DATE
1. Learning Objectives:
a. Understanding of rigid body motion.
b. Understanding of transformation matrix.
2. Equipment Required:
MATLAB
PC
3. Introduction
invR = RotInv(R) , that command will use to find the inverse of the Rotation matrix.
Vector to Matrix:
so3mat = VecToso3(omg)
Returns the 3 × 3 skew-symmetric matrix corresponding to omg
Matrix to vector:
omg = so3ToVec(so3mat)
Returns the 3-vector corresponding to the 3× 3 skew-symmetric matrix so3mat.
Task 1:
Find the inverse of the rotation matrix which you find in the last lab.
MATLAB Code:
MATLAB screenshoot:
Task 2:
MATLAB Code:
MATLAB screenshoot:
Task 3:
MATLAB Code:
MATLAB screenshoot:
Task 4:
MATLAB Code:
MATLAB screenshoot:
Task 5:
Compute exponential rotation matrix R for so3mat, which get from task 2.
MATLAB Code:
MATLAB screenshoot:
Task 6:
MATLAB Code:
MATLAB screenshoot:
Task 7:
MATLAB Code:
MATLAB screenshoot:
Task 8:
For Rotation matrix R, which you extract in Lab 6 (last task) and vector p=[2 2 2] find the
transformation matrix T.
MATLAB Code:
MATLAB screenshoot:
Task 9:
Extract Rotation matrix R and vector p from tarnsformation matric T from task 8.
MATLAB Code:
MATLAB screenshoot:
Submission Declaration by the Student:
In submitting this lab write-up to the Lab Engineer/Instructor, I hereby declare that:
I have performed all the practical work myself
I have noted down actual measurements in this writeup from my own working
I have written un-plagarised answers to various questions
I have/have not obtained the desired objectives of the lab.
Reasons of not obtaining objectoves (if applicable): _________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________
Student’s signature and Date
Student's feedback:[Separate this page; fill it; drop in the Drop Box.]
Providing feedback for every lab session is optional. No feedback means you are satisified
The Lab Committee will consider only duly filled forms submitted within one week after the
lab
This feedabck is for LAB session: LAB Number: _____, Date: _____________________
General (to provide feedback on a persistent practice/ocurrence in LABs).
Your current CGPA is in the range 4.00 to 3.00/2.99 to 2.00/1.99 to 1.00/0.99 to 0.00