CS 287 Lecture 21 (Fall 2019) Physics Simulation Pieter Abbeel UC - - PowerPoint PPT Presentation

cs 287 lecture 21 fall 2019 physics simulation
SMART_READER_LITE
LIVE PREVIEW

CS 287 Lecture 21 (Fall 2019) Physics Simulation Pieter Abbeel UC - - PowerPoint PPT Presentation

CS 287 Lecture 21 (Fall 2019) Physics Simulation Pieter Abbeel UC Berkeley EECS A lightning tour of physics simulation n Newtons Laws Rigid Body Motion n Lagrangian Formulation n Continuous Time Discrete Time n Contact / Collisions


slide-1
SLIDE 1

CS 287 Lecture 21 (Fall 2019) Physics Simulation

Pieter Abbeel UC Berkeley EECS

slide-2
SLIDE 2

n Newton’s Laws – Rigid Body Motion n Lagrangian Formulation n Continuous Time à Discrete Time n Contact / Collisions

A lightning tour of physics simulation

slide-3
SLIDE 3

n

Featherstone book: Rigid Body Dynamics Algorithms

n

Mujoco

n

book: http://www.mujoco.org/book/computation.html

n

mujoco paper: https://homes.cs.washington.edu/~todorov/papers/TodorovIROS12.pdf

n

Bullet

n

simulation: https://docs.google.com/presentation/d/1-UqEzGEHdskq8blwNWqdgnmUDwZDPjlZUvg437z7XCM/edit#slide=id.ga4b37291a_0_0

n

Constraint solving: https://docs.google.com/presentation/d/1wGUJ4neOhw5i4pQRfSGtZPE3CIm7MfmqfTp5aJKuFYM/edit#slide=id.ga4b37291a_0_0

n

constraints / collisions: https://www.toptal.com/game/video-game-physics-part-iii-constrained-rigid-body-simulation

Want to learn more?

slide-4
SLIDE 4

n Point mass: n Rigid body:

Newton

slide-5
SLIDE 5

n Newton

n Generally applicable n But can become a bit cumbersome in multi-body systems with

constraints/internal forces

n Lagrangian dynamics method eliminates the internal forces

from the outset and expresses dynamics w.r.t. the degrees of freedom of the system

Lagrangian Dynamics -- Motivation

slide-6
SLIDE 6

n ri: generalized coordinates n T: total kinetic energy n U: total potential energy n Qi : generalized forces n Lagrangian L = T – U

à Lagrangian dynamic equations:

Lagrangian Dynamics

[Nice reference: Goldstein, Poole and Satko, “Classical Mechanics”]

slide-7
SLIDE 7

Lagrangian Dynamics: Point Mass Example

slide-8
SLIDE 8

Lagrangian Dynamics: Simple Double Pendulum

[From: Tedrake Appendix A]

q1 = θ1, q2 = θ2, si = sin θi, ci = cos θi, s1+2 = sin(θ1 + θ2)

slide-9
SLIDE 9

n

Standard (kinematic) car models: (Lavalle, Planning Algorithms, 2006, Chapter 13)

n

Tricycle:

n

Simple Car:

n

Reeds-Shepp Car:

n

Dubins Car:

Car

slide-10
SLIDE 10

Cart-pole

[See also Section 3.3 in Tedrake notes.]

H(q)¨ q + C(q, ˙ q) + G(q) = B(q)u

slide-11
SLIDE 11

Acrobot

[See also Section 3.2 in Tedrake notes.]

H(q)¨ q + C(q, ˙ q) + G(q) = B(q)u

slide-12
SLIDE 12

n Friction:

n Static friction coefficient mu

> Dynamic friction coefficient mu

n Drag:

Friction & Drag

slide-13
SLIDE 13

n Denavit Hartenberg Parameterization n In implementation: URDF Files

Robot Specification?

slide-14
SLIDE 14

n Newton’s Laws – Rigid Body Motion n Lagrangian Formulation n Continuous Time à Discrete Time n Contact / Collisions

A lightning tour of physics simulation

slide-15
SLIDE 15

Forward Euler (Explicit)

slide-16
SLIDE 16

Backward Euler (Implicit)

slide-17
SLIDE 17

Symplectic Euler (aka Semi-Implicit Euler)

https://en.wikipedia.org/wiki/Semi-implicit_Euler_method

slide-18
SLIDE 18

Runge-Kutta

slide-19
SLIDE 19

n Newton’s Laws – Rigid Body Motion n Lagrangian Formulation n Continuous Time à Discrete Time n Contact / Collisions

A lightning tour of physics simulation

slide-20
SLIDE 20

n Broad phase n Narrow phase

Collision Checking

slide-21
SLIDE 21

n Quadtrees/spatial n Conservative checks

Broad Phase Collision Checking

https://www.toptal.com/game/video-game-physics-part-ii-collision-detection-for-solid-objects

slide-22
SLIDE 22

n Quadtrees/spatial n Conservative checks

Broad Phase Collision Checking

slide-23
SLIDE 23

n Quadtrees/spatial n Conservative checks

Broad Phase Collision Checking

slide-24
SLIDE 24

n Quadtrees/spatial n Conservative checks

Broad Phase Collision Checking

slide-25
SLIDE 25

n Convex-Convex ---- separating axis theorem

Narrow Phase Collision Checking

slide-26
SLIDE 26

n Gilbert-Johnson-Keerthi (GJK) Algorithm n Expanding Polytopes Algorithm (EPA)

Narrow Phase Collision Checking

slide-27
SLIDE 27

n Impulse formulation

Contact

slide-28
SLIDE 28

Mujoco

slide-29
SLIDE 29

Bullet