Lecture 2
Lecture 2
ME-465
LEC 3
Dr. Sara Ali
Todays Objectives
Revision (2D projections and finding transformation
matrix)
New:
Mapping – 3 different types
Operators
Working in 3D
Quiz
Mapping: Changing description from frame to frame
tw.T(2)
tw.T
Working in 3D
Working in 3D
Non-
Commutative
Rx = rotx(pi/2)
trplot(Rx)
tranimate(Rx)
Rxy = rotx(pi/2) *
roty(pi/2)
tranimate(Rxy)
Three-Angle Representations
We recall that Euler’s rotation theorem states that any rotation
can be represented by not more than three rotations about
coordinate axes. This means that in general an
arbitrary rotation between frames can be decomposed into a
sequence of three rotation angles and associated rotation axes
Euler’s rotation theorem requires successive rotation about three
axes such that no two successive rotations are about the same
axis. There are two classes of rotation sequence: Eulerian and
Cardanian, named after Euler and Cardano respectively
Euler: XYX, XZX, YXY, YZY, ZXZ, or ZYZ
Cardanian: XYZ, XZY, YZX, YXZ, ZXY, or ZYX
Three-Angle Representations
Euler-Angles: Most common sequence: ZYZ
tripleangle
Three-Angle Representations
Convention for robot gripper: the z-axis points forward
and the x-axis is either up or down. This leads to the
XYZ angle sequence
%inverse
gamma= tr2rpy(R)
Three-Angle Representations
Limitation: Singularity/Gimbal Lock - when the
rotational axis of the middle term in the sequence
becomes parallel to the rotation axis of the first or third
term.
Gimbal Lock
Consider the situation
when the rotation angle of
the middle gimbal
(rotation about
the z-axis) is 90° – the
axes of the inner and
outer gimbals are aligned
and they share the same
rotation axis. Instead of
the original three
rotational axes, since two
are parallel, there are now
only two effective
rotational axes – we say
that one degree of
freedom has been lost.
https://www.youtube.com/w
atch?v=zc8b2Jo7mno
Gimbal Lock
The loss of a degree of freedom means that mathematically we
cannot invert the transformation
All three-angle representations of attitude, whether Eulerian or
Cardanian, suffer this problem of gimbal lock when two consecutive
axes become aligned. For ZYZ Euler angles this occurs when θ = kπ, k
∈ Z and for roll-pitch-yaw angles when pitch θp = ±(2k + 1) π/2. The
best that can be hoped for is that the singularity occurs for an
attitude which does not occur during normal operation of the vehicle –
it requires judicious choice of angle sequence and coordinate system.
Singularities are an unfortunate consequence of using a minimal
representation. To eliminate this problem we need to adopt different
representations of orientation.
Two Vector Representation
For arm-type robots it is useful to consider a coordinate
frame {E} attached to the end-effector
Two Vector Representation
By convention the axis of the tool is associated with the
z-axis and is called the approach vector and denoted
z-axis is insufficient to describe the coordinate frame –
we also need to specify the direction of the x- and y-
axes. An orthogonal vector that provides orientation,
perhaps between the two fingers of the robot’s gripper
is called the orientation vector
Two Vector Representation
The two unit vectors are sufficient to completely define
the rotation matrix
% where theta is the angle of rotation and v is the vector around which
the rotation occurs
Quaternion
Another representation of orientation is by means of four
numbers called the Euler parameters. Sometimes, the
Euler parameters are viewed as a 3 x 1 vector plus a
scalar. However, as a 4 x 1 vector, the Euler parameters
are known as a unit quaternion.
In terms of equivalent axis K=[Kx Ky Kz]T and equivalent
angle theta
Quaternion
Denoted
as
q.R
Pose in 3D
Similar to 2D case
Transformation of frame {B} wrt frame {A}
t2r(T)
transl(T)’
SUMMARY
We are now in a position to describe the position and orientation of a manipulator in space