introduction to robotics tutorial 10 technion, cs department, introduction to robotics 236927 winter...

17
Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Upload: james-williams

Post on 08-Jan-2018

229 views

Category:

Documents


1 download

DESCRIPTION

Destination 3 The destination is modeled as an attractive charge. Destination

TRANSCRIPT

Page 1: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Introduction to Robotics

Tutorial 10

Technion, cs department, Introduction to Robotics 236927

Winter 2012-2013

1

Page 2: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Potential Functions

2

1. Write the attraction and repulsion potential functions.

Destination

ObstacleCenter at (L,0)Radius = R

x

y

Page 3: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Destination

3

• The destination is modeled as an attractive charge.

Destination

x

y 22, yxyxU

ddUA

A

-10-5

05

10

-10-5

05

100

5

10

15

-10 -5 0 5 10-10

-8

-6

-4

-2

0

2

4

6

8

10

Page 4: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Potential Functions

4

Page 5: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Gradient Descent• Gradient descent is a well-known

approach to optimization problems. The idea is simple. Starting at the initial configuration, take a small step in the direction opposite the gradient. This gives a new configuration, and the process is repeated until the gradient is zero. More formally, we can define a gradient descent algorithm

Page 6: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Gradient Descent

Page 7: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Obstacle

7

• The Obstacle is modeled as a single repulsive charge.

22/,

/

yLxyxU

ddUR

R

ObstacleCenter at (L,0)Radius = R

x

y

-10-5

05

10

-10

-5

0

5

100

5

10

15

-10 -5 0 5 10-10

-8

-6

-4

-2

0

2

4

6

8

10

Page 8: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Obstacle and Destination

8

yxUyxUyxU RA ,,,

-10-5

05

10

-10-5

05

100

5

10

15

20

25

30

Page 9: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Obstacle and Destination

9

yxFyxFyxF RA ,,,

-10 -5 0 5 10-10

-8

-6

-4

-2

0

2

4

6

8

10

2 3 4 5 6 7 8-3

-2

-1

0

1

2

3

Page 10: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Potential Functions

10

2. For which α and β the robot will never hit the obstacle?

yyxLx

yLxyyxx

yx

yxFyxFyxF RA

ˆˆˆˆ

,,,

2/32222

Destination

ObstacleCenter at (L,0)Radius = R

x

y

Page 11: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Potential Functions

11

3. Will the robot always arrive at the destination?

4. From which starting positions the robot will not arrive the destination?

Page 12: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Local Minima Problem

Page 13: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Different Obstacle Modeling

13

• The Obstacle is modeled as a single repulsive charge.

22

0/

yLxd

elseRdRd

dU R

Page 14: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Potential Functions

14

5. For which α and β the robot will never hit the obstacle?

6. Will the robot always arrive at the destination?

7. From which starting positions the robot will not arrive the destination?

8. How does changing β effects the resulting path?

Page 15: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Different Obstacle Modeling

15

• The Obstacle is modeled as a single repulsive charge:

• Alternately:

Where d* is the distance to the closest point of the obstacle.

22

0/

yLxd

elseRdRd

dU R

elsedd

dU R

00/ **

*

Page 16: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Different Obstacle Modeling

16

elsedd

dU R

00/ **

*

Page 17: Introduction to Robotics Tutorial 10 Technion, cs department, Introduction to Robotics 236927 Winter 2012-2013 1

Another Example

17

Destination

x

y