• No results found

Finding Locally Optimal, Collision-Free Trajectories with Sequential Convex Optimization

N/A
N/A
Protected

Academic year: 2021

Share "Finding Locally Optimal, Collision-Free Trajectories with Sequential Convex Optimization"

Copied!
50
0
0

Loading.... (view fulltext now)

Full text

(1)

Finding Locally Optimal, Collision-Free

Trajectories with Sequential Convex Optimization

John Schulman, Jonathan Ho, Alex Lee, Ibrahim Awwal, Henry Bradlow and Pieter Abbeel

(2)

Finding Locally Optimal, Collision-Free

Trajectories with Sequential Convex Optimization

The world’s fastest introduction to penalty

methods and collision checking

(3)
(4)

Problem Statement

● Given object A and obstacles

● Find a trajectory that takes object A from

to

with

○ Minimal computation time ○ Minimal likelihood of collision ○ Minimal cost

Figure from Xanthidis et al. 2019 “Navigation in the Presence of…”

(5)

Key Insights

● Mesh methods are really effective

● Convex-convex collision checking is “fast”

● Convex collision checking can be turned into a constraint

● Trust region methods can be used to efficiently solve constrained optimization problems

(6)

Progress

● Fast signed distance checking ● Collision constraints

(7)

Overview: Collision avoidance

Discrete-time

● Signed distance (SD) between objects ● SD constraints and penalty formulation ● Linearizing SD to enable optimization

Continuous-time

● Case 1: Translation only

(8)

Preliminaries

are labels for rigid objects/obstacles

(9)

Penalizing collisions ideally

(10)

Penalizing collisions (kind of) practically

No collision:

Collision:

No room for error!

(11)
(12)

GJK

Two objects intersect if their

Minkowski difference contains the origin

(13)

GJK basic idea: simple

● Form Minkowski difference ● Iteratively find closest points ● Either gives closure or distance NOT THE FASTEST WAY

(14)

Expanding Polytope Method

● Pick a polytope

Find closest point in

polytope

● If point on edge, done ● Else, expand polytope

to include support vector

Source:

(15)

Expanding Polytope Method

● Pick a polytope

● Find closest point in polytope

If point on edge,

done

● Else, expand polytope to include support

vector

Source:

(16)

Expanding Polytope Method

● Pick a polytope

● Find closest point in polytope

● If point on edge, done

Else, expand

polytope to include support vector

Source:

(17)

Expanding Polytope Method

● Pick a polytope

Find closest point in

polytope

If point on edge,

done

● Else, expand polytope to include support

vector

Source:

(18)

Signed distance constraints and reformulation

: set of robot links : set of obstacles

What do we want?

(19)

Penalizing collisions practically

Enumerating over all combinations is prohibitive

Introduce

Compute cost only for pairs with We have

(20)

Progress

● Fast signed distance checking ● Collision constraints

(21)

Making signed distance work for us

We have

But is non-linear!

1. Reformulate as maximin problem 2. Approx with first-order Taylor expansion wrt 3. Replace corresponding cost term with approx

(22)
(23)
(24)

Recap: Collision avoidance

Discrete-time

● Signed distance (SD) between objects ● SD constraints and penalty formulation ● Linearizing SD to enable optimization

Continuous-time

● Case 1: Translation only

(25)

Progress

● Fast signed distance checking ● Collision constraint

(26)

Penalty Optimization

● Start with a constrained problem

● Move the constraints into the cost with a penalty coefficient

(27)

Penalty Optimization

● But wait, won’t this change the optimum?

(28)

Penalty Optimization

(29)

Penalty Optimization

If you just make the penalty large enough, we’ll find the constrained local

minimum1

Note, this isn’t necessarily true if we used quadratic penalties

(30)

Sequential Quadratic Optimization w/ Trust Region

(31)

Sequential Quadratic Optimization w/ Trust Region

(32)

Sequential Quadratic Optimization w/ Trust Region

(33)

Sequential Quadratic Optimization w/ Trust Region

● Apply a quadratic program solver like IPOPT

(34)

Trust Region Scaling

● Apply a quadratic program solver like IPOPT

● Improved on the true problem?

(35)

Penalty Scaling

(36)

Progress

● Fast signed distance checking ● Collision constraints

(37)

What’ve we got

● A way to compute signed distance constraints

● A way to solve the optimization formula

(38)

CHOMP V. TrajOpt

CHOMP

● Projected gradient

descent

● Distance fields

TrajOpt

● Sequential

Quadratic

Programs

● Convex-Convex

collision checking

(39)
(40)

What does trajopt help with? CHOMP

Conflicting costs on

body points

(41)

What does trajopt help with? CHOMP

Just compute

minimal translation

(42)

What does trajopt help with? CHOMP

Fast distance

checking using

(43)

What does trajopt help with? CHOMP

Spheres

over-approximate

convex objects

(44)

What does trajopt help with? CHOMP

Don’t need to

approximate for

(45)

Comparison with other motion planning algorithms

198 arm planning problems with PR2 (7 DOF)

(46)

Pros + Cons

+ Typically returns high quality path + Works in high dimensions

+ Faster than comparable optimizers + Highly customizable

- Highly customizable

- Must specific objective function, gradient descent step size, D_safe, etc.

- Not complete

- Not optimal

- Neglects structure of the problem during optimization - Initialization dependent

(47)
(48)
(49)
(50)

Points for discussion

● Other optimization schemes?

● Ideas for tackling failure modes

● GPU acceleration

● Where does the speedup come from?

References

Related documents

The results from the simulation studies indicated that the bifactor model with interactions had little bias and adequate root mean squared error (RMSE) for the estimated parameters,

The results showed that the specimen groups with the highest calcium alginate concentrations (including the control specimens with embedded alginate beads but no bacteria) resulted

In the univariate analysis, rural upbringing, external encouragement to participate in the regional quota, first-year studentsʼ anticipated willingness to remain in MUAs and

02 Bernie Sanders [response option removed after candidate exited presidential race] 03 Donald Trumpg. 05

Consistent with the view of an antecedent role of control beliefs, we found that greater initial perceived control independently predicted weaker declines in health and

favorable by the algorithm (Figure 2D). Models deemed to be less stable, however, position the aromatic ring of 17b-estradiol in proximity of the ring of F421, which may result

Connectedness centres on developing relationships with others, feeling supported, and being a part of a community. Within the context of families, connections took on a

There are three potential interpretations of the results of our study: light-to-moderate prenatal alcohol exposure does not affect DNA methylation, any association