0 views

Uploaded by Hamza Ali Imran

Robotics Lab manuals

- Methods for testing timber connectors
- ws transformation practice 2
- active shapes
- Auto Cad 2000 Tutorial
- Rotational Kinema Tics
- Problem Set 5
- Ch 04 Vectors
- Definition
- Grade 10 Transformation Assignment
- CoordinateGeometryW13
- ME-548 MasterCamX Workshop on..
- MATLAB array manipulation tips and tricks.pdf
- 5 A's lesson plan
- Etabs Local Axes Shell
- Rotation About an Arbitrary Axis
- Welcome to the World of CAD
- rutherford heather math graphing lesson plan
- HW6
- Section of Solids
- All Summer 2008 MS

You are on page 1of 10

EL424

LABORATORY MANUAL

Spring 2018

LAB 06

Rotation Mtrices on MATLAB

Engr. Iqra Akram

STUDENT NAME ROLL NO SEC

______________________________________

LAB ENGINEER SIGNATURE & DATE

_______________________________________________________________

NATIONAL UNIVERSITY OF COMPUTER AND EMERGING SCIENCES (NUCES), ISLAMABAD

Last Edited by: Engr. Iqra Akram Date: 12 Feb, 2018

Verified by: Dr. Mukhtar Ullah Date: 12 Feb, 2018

LAB: 06 Rigid-Body Motions in the Plane

1. Learning Objectives:

a. Understanding of rotational matrix in 3D.

b. Understanding of rotation of vector in space.

2. Equipment Required:

MATLAB

PC

3. Introduction

We can rotate the frame in space in which we have to define 3 angles one is along x-axis, one is

along y-axis and one is along z-axis.At the end we will pick the vector in space and rotate along

different axis. Rotation matrices are used to rotate a vector into a new direction.

In transforming vectors in three-dimensional space, rotation matrices are often encountered.

Rotation matrices are used in two senses: they can be used to rotate a vector into a new position

or they can be used to rotate a coordinate basis (or coordinate system) into a new one. In this

case, the vector is left alone but its components in the new basis will be different from those in

the original basis. In Euclidean space, there are three basic rotations: one each around the x, y

and z axes. Each rotation is specified by an angle of rotation. The rotation angle is defined to be

positive for a rotation that is counterclockwise when viewed by an observer looking along the

rotation axis towards the origin. Any arbitrary rotation can be composed of a combination of

these three (Euler's rotation theorem)

For exapmle :

Rotation Matrix:

Rotation Matrix:

Rotation along Z-axis:

Rotation Matrix:

Syntax

R = rotx(ang)

Description

R = rotx(ang) creates a 3-by-3 matrix used to rotated a 3-by-1 vector or 3-by-N matrix of vectors

around the x-axis by angdegrees. When acting on a matrix, each column of the matrix represents

a different vector. For the rotation matrix R and vectorv, the rotated vector is given by R*v.

Task 1:

Rotate the frame along X-axis, y-axis and z-axis by 90˚

a) Using MATLAB

1- In clockwise

2- In counter clockwise

MATLAB code:

b) On paper

Task 2:

Find the rotationa matrix R=RZRYRX from task 1 and rotate the vector [1,1,1] along the

space.

c) Using MATLAB

1- In clockwise

MATLAB code:

MATLAB command Window:

2- On paper

Task 3:

a) You have to find the rotation matrix R of the following case. In which there are

number of possibility to go from (a) frame to (b). Use only two possibilties of angle

α, β and γ to go from (a) frame to (b)

1- Using MATLAB

2- On paper

b)

Use rotation matrix R=RZRYRX from task 3 and rotate the vector [1,1,1] along the space

Task 4:

.

MATLAB code:

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

The Lab Engineer can separate this page from the writeup and keep it for his/her own record. It

must be signed by the student with date on it.

Lab Work: objectives achieved (correctness of measurements, calculations, answers to

questions posed, conclusion) ________/30

Lab Writeup: Neatness, appropriateness, intime submission ________/10

Troubleshooting: Were the student able to troubleshoot his/her work when it was

purposedly changed? ________/10

TOTAL: ________/50

Encircle your choice. -2 means poorest/worst/extremely inadequate/irrevlevant, 0 gives an

average score, and +2 means best/most relevant/most adequate.

Did the student remain focused on his/her work during lab? -2 -1 0 1 2

Rate student's behaviour with fellows/staff/Lab Engineer? -2 -1 0 1 2

Did the student cause any distraction during the Lab? -2 -1 0 1 2

Was the student found in any sort of plagiarism? -2 -1 0 1 2

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

___________________________

Lab Engineer’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

For a Particular

Who conducted the LAB? __________________________________________________

Actual Start time: _______________ Total Duration of Lab: _______________________

Instruction Duration: _________________ Practical Duration: _____________________

LAB writeup available before LAB?Yes/No with the Photocopier/in LAB/in SLATE

Had the theory related to lab been covered in theory class?Yes/No

Encircle your choice. -2 means poorest/worst/extremely inadequate/irrevlevant, 0 gives an

average score, and +2 means best/most relevant/most adequate.

Instruction How much did you understand about the practical? -2 -1 0 +1 +2

Session How much content was irrelevant to the practical? -2 -1 0 +1 +2

Did the instructor allowed Q/A and discussion? -2 -1 0 +1 +2

Practical Did you get sufficient time for practical? -2 -1 0 +1 +2

Presence in lab at all time? -2 -1 0 +1 +2

Ability to convey? -2 -1 0 +1 +2

Lab Readiness to help during practical? -2 -1 0 +1 +2

Engineer Readiness to discuss theoretical aspects? -2 -1 0 +1 +2

Helps in troubleshooting? -2 -1 0 +1 +2

Guides hows & whys of troubleshooting? -2 -1 0 +1 +2

How friendly was the lab staff? -2 -1 0 +1 +2

Staff Presence of staff throughout the lab session? -2 -1 0 +1 +2

Impact of availability of staff on your practical? -2 -1 0 +1 +2

Performance of Electronic Instruments? -2 -1 0 +1 +2

Equipment Performance of Breadboard/experiment kit? -2 -1 0 +1 +2

Performance of circuit components esp. ICs? -2 -1 0 +1 +2

Overall Your overall rating for the whole lab session? -2 -1 0 +1 +2

__________________________________________________________________________

__________________________________________________________________________

- Methods for testing timber connectorsUploaded byPrakash Singh
- ws transformation practice 2Uploaded byapi-334137347
- active shapesUploaded byAlkis Corbise
- Auto Cad 2000 TutorialUploaded byrazyza
- Rotational Kinema TicsUploaded bygirithik14
- Problem Set 5Uploaded byKamel Hamdan
- Ch 04 VectorsUploaded byHemanta Bhattarai
- DefinitionUploaded byMohd Imm
- Grade 10 Transformation AssignmentUploaded byAnonymous FY77tji5eB
- CoordinateGeometryW13Uploaded bytamilanba
- ME-548 MasterCamX Workshop on..Uploaded byghoolbaba61
- MATLAB array manipulation tips and tricks.pdfUploaded byMohammad Umar Rehman
- 5 A's lesson planUploaded byArwel Caisio
- Etabs Local Axes ShellUploaded byuhkefor52
- Rotation About an Arbitrary AxisUploaded bynaquash1983
- Welcome to the World of CADUploaded byAdrianne Mary Milano
- rutherford heather math graphing lesson planUploaded byapi-200263539
- HW6Uploaded bymiguelitolin
- Section of SolidsUploaded bySriram J
- All Summer 2008 MSUploaded bysebollie
- 2837Uploaded byfelix557700
- suyytr qudtretghghUploaded byKelli Flores
- Output LogUploaded bysitirobiahabdulrahma
- frequency polygon.pdfUploaded byujwala_512
- Chapter - 10 Straight LinesUploaded byJohn Masefield
- Animal Behavior - flockingUploaded byPhysics squad
- Create a PartUploaded bymapema
- Section Designer.pdfUploaded byJ1MB
- cl there are many paths teUploaded byapi-261894355
- Section DesignerUploaded byanmoljassal

- Intro To Robotics (Grubler's formula practice Question)Uploaded byHamza Ali Imran
- Lecture+34Uploaded byHamza Ali Imran
- Average load, load+factor, demand factor and diversity factor easy slidesUploaded byHamza Ali Imran
- Lab_08_itr Intro to roboticsUploaded byHamza Ali Imran
- Lecture+39Uploaded byHamza Ali Imran
- entrepreneurshipUploaded byHamza Ali Imran
- Load Characteristics, load curve, load factor and max demand detals slidesUploaded byHamza Ali Imran
- Lab%2B01-itr (1)Intro to roboticsUploaded byHamza Ali Imran
- Lecture1_DSP_16012017Uploaded byHamza Ali Imran
- Lab_09_itr (2)Intro to roboticsUploaded byHamza Ali Imran
- Lab_07_itr (1)Intro to roboticsUploaded byHamza Ali Imran
- Lecture+30Uploaded byHamza Ali Imran
- electromagentic problemsUploaded byHamza Ali Imran
- Packet Sniffing and IPv4 HeaderUploaded byHamza Ali Imran
- Q1 sol part 1 aUploaded byHamza Ali Imran
- Lecture+29Uploaded byHamza Ali Imran
- Lecture+31Uploaded byHamza Ali Imran
- HW2EMT.pdfUploaded byHamza Ali Imran
- A Survey of Transport Protocols ForWireless SensorUploaded byHamza Ali Imran
- Lecture+28Uploaded byHamza Ali Imran
- Lecture+27Uploaded byHamza Ali Imran

- GRG 45-1847 Rotating effects on the Dirac oscillator in the cosmic string spacetime.pdfUploaded byAnderson Vinícius
- Trigonometry.docxUploaded bybenjoe
- formian model.pdfUploaded bySugumarRavi
- Coordonate Ecuatoriale Si OrizontaleUploaded bysicavelicu
- Curves and Curve FittingUploaded byTika Puspita
- Tutorial 6 Graphing Techniques SolutionsUploaded byLawrenceJGLimesa
- 20_Kardom_QJMAMUploaded bymlouredocasado
- 4 Discretisation and InterpolationUploaded bySaif Rahman
- chapter 1 and 2 projectUploaded byapi-385932886
- 2A Final Samp1Uploaded byYolanda
- Chapter 3Uploaded byDi Wu
- Maths- Straight LinesUploaded byShubham Jain
- Pro Engineer WF Surface ModelingUploaded byAnil Khandual
- Fixed Point in 2-Metric Space through Rational ExpressionUploaded byIOSRjournal
- geometry in the real worldUploaded byapi-275657699
- maths UN in english 2.docxUploaded byvani
- Vidyakankar Rotational mechanicsUploaded byVikalp Joshi
- Practice PaperUploaded byMaruf_007
- Impeller Power Numbers in Closed VesselsUploaded byChristian Mavarez
- S. Yadav ,D.L.Suthar,Some results on Trans- Sasakian manifoldsUploaded bySunil Yadav
- Comparison of Parametrically Programmed Machining with CAM System Machining for C0 Continuity Bezier Curves Based on Various ParametersUploaded byHetal Fitter
- M2_Bk1_Sol_Ch07_E.pdfUploaded byken19281928
- Chapter 2 Volume of SolidsUploaded bySamsiah Mustaffa
- Geometric Sampling of Manifolds for Image Representation and Processing Emil Saucan, Eli Appleboim, and Yehoshua Y. Zeevi Electrical Engineering Department, Technion, Haifa, Israel eliap,semil,zeevi@ee.technion.ac.ilUploaded bymarkrichardmurad
- C2 Trigonometry + SolutionsUploaded byKishan Thakrar
- Reuleaux WikiUploaded byAekansh
- EigenValueUploaded byWorse To Worst Satittamajitra
- Euclid Elements Book i PDFUploaded byMelanie
- Add Maths F4 Mid-Term Examination (BL)Uploaded byhanifah
- Mathcounts FormulasUploaded byTom Tung Le