Robotics Control L3
Robotics Control L3
Prof. S. P. Harsha
[email protected]
9917489849 (M)
2
Modeling of Robots: Coordinates Frames
• The manipulator consists of several links and joints
– Coordinated motion with constraints
3
Modeling of Robots: Coordinates Frames
• Description of object in space
• Position
• Orientation
4
Modeling of Robots: Coordinates Frames
5
Positions, orientations and frames
• The position of a point p relative to a coordinate system A
(Ap):
px ZA
A
p
A
p = py
p YA
z XA
6
Positions, orientations and frames
• The orientation of a body is described by a coordinate
system B attached to the body, relative to A (a known
coordinate system).
ZA ZB
XB YA
XA YB
7
Positions, orientations and frames
• A frame is a set of 4 vectors giving the position and
orientation.
• Example: frame B
B = A
R ,A
PB Borg
ZBZB
AAP
ZA P Borg
Borg
XX
BB
YBYB
YA
XA orientation
position
8
Coordinates Frames: Conventional 3D coordinate frame:
1 represents frame-1
In vector-matrix notation:
Direction cosines:
9
Mapping
• Three possibilities:
1. Second frame is rotated w. r. t. the first
2. Second frame is translated from the first
3. Second frame is rotated as well as translated w. r. t. the
first (combined)
10
1. Mapping Between Rotated Frames
• Consider the two frames: Frame -1 (x, y, z) and
Frame – 2 (u, v, w)
1. Mapping Between Rotated Frames
• The problem may be posed as: “The description of point
P in frame-2 is known and its description in frame-1 is to
be found”
• Also,
• Thus,
2. Mapping Between Translated Frames
• Now:
• Thus:
• Finally:
3. Mapping Between Rotated and Translated Frames
• In homogeneous coordinates:
Fundamental Rotation Matrices
Principal Axes Rotation:
• “Successive rotations are performed about
the principal axes of the fixed frame”
Fundamental Rotation Matrices
Principal Axes Rotation:
• “Successive rotations are performed about
the principal axes of the fixed frame”
Fundamental Rotation Matrices
• Principal Axes Rotation: Consider the following
rotation:
• Similarly:
• In homogeneous transforms:
Fundamental Rotation Matrices
• Principal Axes Rotation:
• Rotation matrices can be multiplied together to
get sequence of finite rotations:
The order is left to right
cosθ − sinθ 0
Rotation around the Z-Axis
R z = sinθ cosθ 0
0 0 1
cosθ 0 sinθ
R y = 0 1 0 Rotation around the Y-Axis
𝟏 𝟎 𝟎
𝐑𝑋 = 𝟎 𝐜𝐨𝐬𝛉 −𝐬𝐢𝐧𝛉 Rotation around the X-Axis
𝟎 𝐬𝐢𝐧𝛉 𝐜𝐨𝐬𝛉
47
Homogeneous Matrices (H) in 3D
H is a 4x4 matrix that can describe a translation, rotation, or both in one matrix
O
1 0 0 Px
Y
0 1 0 Py
N H=
P
0 0 1 Pz
X A
Translation without rotation 0 0 0 1
Z
Y
n x ox ax 0
n oy ay 0
H= y
O
N
n z oz az 0
X 0 0 0 1
Rotation part:
Z Rotation without translation Could be rotation around z-axis,
A x-axis, y-axis or a combination of
the three.
48
The Homogeneous Matrix is a concatenation of numerous
translations and rotations
W N
Y O
W
W A
T
P
X
Z
One more variation on finding H:
49
We are interested in two kinematics topics
Forward Kinematics (angles to position)
What you are given: The length of each link
The angle of each joint
50
Forward v/s Inverse
•Forward Kinematics
– Compute configuration (pose) given individual DOF
values
• Good for simulation
•Inverse Kinematics
– Compute individual DOF values that result in
specified end effector position
• Good for control
51
What is Inverse Kinematics?
• Forward Kinematics
End Effector
Base
What is Inverse Kinematics?
• Inverse Kinematics
End Effector
Base
Description of Links
• From a geometric viewpoint, the link defines the
relative position and orientation of joint axes at its
two ends
link length
variable variable
offset di angle θi
Kinematic Modeling of the manipulator
Denavit-Hartenberg (DH) Notation
• “The definition of a manipulator with four joint-link
parameters for each link and a systematic procedure
for assigning right-handed orthonormal coordinate
frames, one to each link in an open kinematic chain,
was proposed by Denavit and Hartenberg and is
known as the Denavit - Hartenberg notation or the
DH notation”
• Base frame or inertial reference frame is frame {0}
• Tool frame is frame {n}
• Frame {i} is rigidly attached to distal end of the link
{i}
• An n-DOF manipulator will have (n+1) frames
Denavit – Hartenberg (DH) Notation
Denavit - Hartenberg Notation
• Labeling scheme
Denavit-Hartenberg Notation
Denavit-Hartenberg Notation
Denavit-Hartenberg Notation
Denavit-Hartenberg Notation
• Once the frames are assigned, the joint-link parameters are
easily identified.
Kinematic Model:
For θ1 = 120° and d2 = 200 mm:
Example-2: Kinematic Model of a Cylindrical Arm
• Formulate the forward kinematic model of the 3 DOF (RPP)
manipulator arm as shown in figure:
Example-2
• Transformation Matrices:
Example-3: Articulated Arm Kinematic Model
• Formulate the forward kinematic model of the following manipulator:
Example-3
• Transformation Matrices:
Example-4: RPY wrist Kinematics
• For the following RPY wrist obtain the direct Kinematic model:
Example-4
• Transformation Matrices:
Example-5: Kinematics of a 3-DOF Polar Arm
• For the given 3-DOF Polar Arm, obtain the orientation and position
of Tool-Point P if the joint-link variable is q=[ 90° -45° 100 mm]T:
Example-5
• Transformation Matrices:
Example-6: SCARA Robot Kinematics
• For the following SCARA manipulator obtain the direct Kinematic model:
Example-6
• Transformation Matrices:
Example-6
• Kinematic Model:
•
Example-8: Stanford Robot Kinematics
For the following manipulator obtain the direct Kinematic model:
Example-8
• Joint-link Parameters:
Example-8
• Transformation Matrices:
Example-8
• Kinematic Model:
Inverse Kinematics
• Inverse Kinematic problem is :
88
Inverse Kinematics
• Configuration (Position and Orientation)
• Configuration Space (Cartesian Space)
• Joint Vector
• Joint Vector Space (Joint Space)
89
Inverse Kinematics
Kinematic Descriptions
91
Solution Techniques
Two Approaches:
• Closed Form Approach
• Numerical Approach
92
Closed Form Solutions
(e) In the inverse kinematic model, the right hand side of Direct Kinematic
Model is known, while the left-hand side has n unknowns (q1, q2, …, qn). The left
hand side consists of product of n link transformation matrices, that is
Also, i-1Ti is a function of only one unknown qi. Premultiplying both sides by the inverse of 0T1,
yields
93
Example-1: Articulated Arm Inverse Kinematics
• For the 3-DOF articulated arm, determine the joint displacements
for known position and orientation of the end of the arm point
Position and orientation of the
end-point of arm be given by
94
Example-1: Solution
• Step-1: Finding the single ones
95
Example-1: Solution
• Step-2: Inverse Transform Approach
96
Example-1: Solution
• Step-3: The last unknown
Can you think of alternate ways to find the same solution? (With same or different
techniques)
97
Example-2: Inverse Kinematics of RPY Wrist
• For the 3-DOF wrist, determine the solution for three joint
variables for a given end-effector orientation matrix:
Let the end effector orientation
matrix be given by: n, o, a
98
Example-2: Solution
• Use the approach of pre-multiplying:
99
Example-2: Solution
• Finding the displacement variables:
100
Example-2: Solution
• Solution by post-multiplication:
101
Example-2: Solution
• Finding unknowns:
• On similar principles:
102
Example-3: Inverse Kinematics of SCARA Manipulator
• Solve the problem of Inverse Kinematics for the 4-DOF SCARA
Manipulator
From direct kinematic model:
103
Example-3: Inverse Kinematics of SCARA Manipulator
104
❖Sources:
❖Internet sources ….. animation
❖Introduction to Robotics (Mechanics & Control) by JJ Craig
❖Book - Robotics and control by Mittal and Nagrath
❖Book – Mechatronics – W. Bolton
105