robot dynamics ii: trajectories & motion · cool robotics share metr 4202: robotics 30 august...

18
1 Robot Dynamics II: Trajectories & Motion “Are We There Yet?” METR 4202: Advanced Control & Robotics Dr Surya Singh Lecture # 5 August 23, 2013 [email protected] http://itee.uq.edu.au/~metr4202/ © 2013 School of Information Technology and Electrical Engineering at the University of Queensland RoboticsCourseWare Contributor Schedule 30 August 2013 METR 4202: Robotics 2 Week Date Lecture (F: 9-10:30, 42-212) 1 26-Jul Introduction 2 2-Aug Representing Position & Orientation & State (Frames, Transformation Matrices & Affine Transformations) 3 9-Aug Robot Kinematics 4 16-Aug Robot Dynamics & Control 5 23-Aug Robot Trajectories & Motion 6 30-Aug Sensors & Measurement 7 6-Sep Perception / Computer Vision 8 13-Sep Localization and Navigation 9 20-Sep State-Space Modelling 27-Sep State-Space Control 10 4-Oct Study break 11 11-Oct Motion Planning 12 18-Oct Vision-based control (+ Prof. P. Corke or Prof. M. Srinivasan) 13 25-Oct Applications in Industry (+ Prof. S. LaValle) & Course Review

Upload: others

Post on 08-Sep-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

1

Robot Dynamics II:Trajectories & Motion

“Are We There Yet?”

METR 4202: Advanced Control & Robotics Dr Surya Singh

Lecture # 5

August 23, 2013

[email protected]://itee.uq.edu.au/~metr4202/

© 2013 School of Information Technology and Electrical Engineering at the University of Queensland

RoboticsCourseWare Contributor

Schedule

30 August 2013METR 4202: Robotics 2

Week Date Lecture (F: 9-10:30, 42-212)1 26-Jul Introduction

2 2-AugRepresenting Position & Orientation & State(Frames, Transformation Matrices & Affine Transformations)

3 9-Aug Robot Kinematics4 16-Aug Robot Dynamics & Control

5 23-Aug Robot Trajectories & Motion6 30-Aug Sensors & Measurement7 6-Sep Perception / Computer Vision8 13-Sep Localization and Navigation9 20-Sep State-Space Modelling

27-Sep State-Space Control10 4-Oct Study break11 11-Oct Motion Planning12 18-Oct Vision-based control (+ Prof. P. Corke or Prof. M. Srinivasan)13 25-Oct Applications in Industry (+ Prof. S. LaValle) & Course Review

Page 2: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

2

• Adam Keyes is Needing Volunteers

• UQ Summer Research Program

Announcements:!

30 August 2013METR 4202: Robotics 3

Outline

• Newton-Euler Formulation

• Lagrange Formulation

• Trajectory Generation & Control

• Principles of Robot Motion

30 August 2013METR 4202: Robotics 4

Page 3: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

3

First Let’s Revisit The Jacobian

• Recall:

• True, but we can be more “explicit”

30 August 2013METR 4202: Robotics 5

Jacobian: Explicit Form

• For a serial chain (robot): The velocity of a link with respect to the proceeding link is dependent on the type of link that connects them

• If the joint is prismatic (ϵ=1), then

• If the joint is revolute (ϵ=0), then

• Combining them (with v=(Δx, Δθ))

dzi dtv

ˆ(in the direction)d

kdt

11

Ni

i i i i ii

v v

p 1 1

N N

i i i i ii i

θ z

vv J q J ω q

vJJ

J

30 August 2013METR 4202: Robotics 6

Page 4: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

4

Jacobian: Explicit Form [2]

• The overall Jacobian takes the form

• The Jacobian for a particular frame (F) can be expressed:

Where: & F F ii i iR z z 0 0 1i

i z

30 August 2013METR 4202: Robotics 7

And The Inverse Jacobian

• In many instances, we are also interested in computing the set of joint velocities that will yield a particular velocity at the end effector

• We must be aware, however, that the inverse of the Jacobian may be undefined or singular. The points in the workspace at which the Jacobian is undefined are the singularities of the mechanism.

• Singularities typically occur at the workspace boundaries or at interior points where degrees of freedom are lost

30 August 2013METR 4202: Robotics 8

Page 5: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

5

Inverse Jacobian Example

• For a simple two link RR manipulator:

• The Jacobian for this is

• Taking the inverse of the Jacobian yields

• As θ2 0 (or π): it becomes singular (s20)

1

2

30 August 2013METR 4202: Robotics 9

The Jacobian Also Relates Static Forces & Torques

• We can also use the Jacobian to compute the joint torques required to maintain a particular force at the end effector

• Consider the concept of virtual work

• Or

• Earlier we saw that

• So that

• Or

1

2

3

F

30 August 2013METR 4202: Robotics 10

Page 6: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

6

Dynamics of Serial Manipulators

• Systems that keep on manipulating (the system)

• Direct Dynamics:– Find the response of a robot arm

with torques/forces applied

• Inverse Dynamics:– Find the (actuator) torques/forces

required to generate a desired trajectory of the manipulator

METR 4202: Robotics 30 August 2013 11

Dynamics – Newtown-Euler Mechanics

• For Manipulators, the general form is

where• τ is a vector of joint torques

• Θ is the nx1 vector of joint angles

• M(Θ) is the nxn mass matrix

• V(Θ, Θ)is the nx1 vector of centrifugal and Coriolis terms

• G(Θ) is an nx1 vector of gravity terms

• Notice that all of these terms depend on Θ so the dynamics varies as the manipulator move

30 August 2013METR 4202: Robotics 12

Page 7: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

7

Dynamics: Inertia• The moment of inertia (second moment)

of a rigid body B relative to a line L that passes through a reference point O and is parallel to a unit vector u is given by:

• The scalar product of Iou with a second axis (w)

is called the product of inertia

• If u=w, then we get the moment of inertia:

Where: rg: radius of gyration of B w/r/t to L

METR 4202: Robotics 30 August 2013 13

Dynamics: Mass Matrix & Inertia Matrix • This can be written in a Matrix form as:

• Where IOB is the inertial matrix or inertial tensor

of the body B about a reference point O

• Where to get Ixx, etc? Parallel Axis Theorem

If CM is the center of mass, then:

METR 4202: Robotics 30 August 2013 14

Page 8: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

8

Dynamics: Mass Matrix

• The Mass Matrix: Determining via the Jacobian!

! M is symmetric, positive definite , 0Tij jim m M θ θ

30 August 2013METR 4202: Robotics 15

Dynamics – Langrangian Mechanics

• Alternatively, we can use Langrangian Mechanics to compute the dynamics of a manipulator (or other robotic system)

• The Langrangian is defined as the difference between the Kinetic and Potential energy in the system

• Using this formulation and the concept of virtual work we can find the forces and torques acting on the system.

• This may seem more involved but is often easier to formulate for complex systems

30 August 2013METR 4202: Robotics 16

Page 9: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

9

Dynamics – Langrangian Mechanics [2]

, : Generalized Velocities, : Mass MatrixL K P M θ

1

N

ii

d K K P

dt

τθ θ θ

,M τ θ v θ θ g θ

30 August 2013METR 4202: Robotics 17

Generalized Coordinates

• A significant feature of the Lagrangian Formulation is that any convenient coordinates can be used to derive the system.

• Go from Joint Generalized– Define p:

Thus: the kinetic energy and gravity terms become

where:

1 1n nq q p p q p d d p J q

*12

TKE p H p

* 1 1T H J HJ

* 1 T G J G

30 August 2013METR 4202: Robotics 18

Page 10: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

10

Motivating Example: Remotely Driven 2DOF Manipulator

Motor 1

θ1

θ2

τ1

τ2

Motor 2

Link 2

Lin

k 1

Graphic based on Asada & Slotine p. 112

30 August 2013METR 4202: Robotics 19

Inverse Dynamics • Forward dynamics governs the dynamic responses of a manipulator arm to the

input torques generated by the actuators.

• The inverse problem:– Going from joint angles

to torques

– Inputs are desired trajectories described as functions of time

– Outputs are joint torquesto be applied at each instance

• Computation “big” (6DOF arm: 66,271 multiplications),but not scary (4.5 ms on PDP11/45)

1 1 2 3nq q t t t q

1 n τ

Graphic from Asada & Slotine p. 119

30 August 2013METR 4202: Robotics 20

Page 11: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

11

Nonlinear Plant

+_

Xref X

feedforward command(open-loop policy)

compensated dynamics

Operation Space (Computed Torque)

Model Based

Model “Free”

30 August 2013METR 4202: Robotics 21

Compensated Manipulation

30 August 2013METR 4202: Robotics 22

Page 12: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

12

Trajectory Generation & Planning

METR 4202: Robotics 20 August 2012 - 23

Trajectory Generation

• The goal is to get from an initial position {i} to a final position {f} via a path points {p}

METR 4202: Robotics 20 August 2012 - 24

{i}

{f}

{p}

Page 13: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

13

Joint Space

Consider only the joint positionsas a function of time

• + Since we control the joints, this is more direct

• -- If we want to follow a particular trajectory, not easy

– at best lots of intermediate points

– No guarantee that you can solve the Inverse Kinematics for all path points

METR 4202: Robotics 20 August 2012 - 25

Cartesian Workspace

Consider the Cartesian positionsas a function of time

• + Can track shapes exactly

• -- We need to solve the inverse kinematics and dynamics

METR 4202: Robotics 20 August 2012 - 26

Time

x

Page 14: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

14

Polynomial Trajectories

• Straight line Trajectories

• Simpler

• Polynomial Trajectories

• Parabolic blends are smoother

• Use “pseudo via points”

METR 4202: Robotics 20 August 2012 - 27

A

B

C A

B

C

METR 4202: Robotics 30 August 2013 28

Page 15: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

15

Multiple Points & Sequencing

• Sequencing– Determining the “best” order to

go in

Travelling Salesman Problem

A salesman has to visit each city on a given list exactly once.In doing this, he starts from his home city and in the end he has to return to his home city. It is plausible for him to select the order in which he visits the cities so that the total of the distances travelled in his tour is as small as possible.

METR 4202: Robotics 30 August 2013 - 29

Artwork based on LaValle, Ch. 6

Start

Goal

Goal

Goal

Goal

Goal

Travelling Salesman Problem

METR 4202: Robotics 30 August 2013 - 30

Artwork based on LaValle, Ch. 6

Start

Goal

Goal

Goal

Goal

Goal

• Given a distance matrix C=(cij)

• Minimize:

• Note that this problem is NP-Hard

BUT, Special Cases are Well-Solvable!

Page 16: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

16

Travelling Salesman Problem [2]

• This problem is NP-Hard

BUT, Special Cases are Well-Solvable!

For the Euclidean case (where the points are on the 2D Euclidean plane) :

• The shortest TSP tour does not intersect itself, and thus geometry makes the problem somewhat easier.

• If all cities lie on the boundary of a convex polygon, the optimal tour is a cyclic walk along the boundary of the polygon (in clockwise or counterclockwise direction).

The k-line TSP

• The a special case where the cities lie on k parallel (or almost parallel) lines in the Euclidean plane.

• EG: Fabrication of printed circuit boards

• Solvable in O(n3) time by Dynamic Programming (Rote's algorithm)

The necklace TSP

• The special Euclidean TSP case where there exist n circles around the n cities such that every cycle intersects exactly two adjacent circles

METR 4202: Robotics 30 August 2013 - 31

Inertial: Translation Accelerometer

• General accelerometer:

30 August 2013 -METR 4202: Robotics 32

Page 17: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

17

Inertial: Rotation Gyroscopes

• Structural arrangement of silicon which records centrifugal acceleration and thus angular speed

• Use strain-gauge bridges and/or piezo structure to record deformations

30 August 2013 -METR 4202: Robotics 33

Accelerometer Acceleration

METR 4202: Robotics 30 August 2013 - 34

• Noise adds uncertainty

• Gravitational & inertial forces are inseparable

n

signal(Accelerometer)

rotation acceleration tangential Noisecentripetalgravity

Sou

rces

: AD

I

signal(Gyro)

Page 18: Robot Dynamics II: Trajectories & Motion · Cool Robotics Share METR 4202: Robotics 30 August 2013 - 35 Summary • Kinematics is the study of motion without regard to the forces

18

Cool Robotics Share

METR 4202: Robotics 30 August 2013 - 35

Summary

• Kinematics is the study of motion without regard to the forces that create it

• Kinematics is important in many instances in Robotics

• The study of dynamics allows us to understand the forces and torques which act on a system and result in motion

• Understanding these motions, and the required forces, is essential for designing these systems

30 August 2013METR 4202: Robotics 36