Character Animation: Dynamic Approaches Simulate articulated rigid - - PowerPoint PPT Presentation

character animation
SMART_READER_LITE
LIVE PREVIEW

Character Animation: Dynamic Approaches Simulate articulated rigid - - PowerPoint PPT Presentation

Character Animation: Dynamic Approaches Simulate articulated rigid body system Feedback and feedforward control Simple models Optimal control Simulation x i Newtonian laws gravity ground contact forces x i +1 . . . x


slide-1
SLIDE 1

Character Animation:

Dynamic Approaches

slide-2
SLIDE 2
slide-3
SLIDE 3
  • Simulate articulated rigid body system
  • Feedback and feedforward control
  • Simple models
  • Optimal control
slide-4
SLIDE 4

Simulation

xi ∆x

xi+1

Newtonian laws gravity

. . .

degrees of freedom actuators

ground contact forces

slide-5
SLIDE 5

Simulation + Control

xi ∆x

xi+1

Newtonian laws gravity ground contact forces internal forces

. . .

actuators

slide-6
SLIDE 6

General framework

ODE integration collision handling contact force next state current state

slide-7
SLIDE 7

General framework

ODE integration Dynamic controller collision handling contact force joint torque next state current state Control Forward simulation

slide-8
SLIDE 8

Articulated bodies

  • It is more intuitive to control an articulated

body system is the reduced coordinates

Maximal coordinates

(x0, R0) (x1, R1) (x2, R2)

Reduced coordinates

θ1, φ1 θ2 state variables: 18 state variables: 9

x, y, z, θ0, φ0, ψ0

slide-9
SLIDE 9

Forward dynamics

  • Given current state and joint torques, compute

joint acceleration via equations of motion

  • Compute next state from the joint acceleration

via any integration method

  • What if there’s additional force applied to the

system?

slide-10
SLIDE 10

General framework

ODE integration Dynamic controller collision handling contact force joint torque next state current state Control Forward simulation

slide-11
SLIDE 11

Inverse dynamics

  • Given current state and joint acceleration,

compute the joint torques

  • What if there’s external force applied to the

system?

slide-12
SLIDE 12
  • Simulate articulated rigid body system
  • Feedback and feedforward control
  • Simple models
  • Optimal control
slide-13
SLIDE 13

PD servos

  • A proportional-derivative servo (PD servo)

generates torques when current state deviates from desired state

  • Each joint is actuated by a PD servo to track a

desired pose or trajectory

  • Determine the gains and damping coefficients

can be tedious

τ = kp(θd − θ) − kv ˙ θ

slide-14
SLIDE 14

Tracking motion capture

slide-15
SLIDE 15

Feedback control

  • Problem with feedback control
  • Motion precision depends on the gain
  • High-gain feedback controllers are less stable,

especially when there is delay

  • Difficult to tune the gains for complex

articulated system

slide-16
SLIDE 16

Feedforward control

  • Feedforward controller executes motor control in

a open-loop manner

  • Explains stereotyped and stylized patterns in

movements; consistent with internal model theory

  • Inverse dynamics on the input trajectory is

computed during motor learning

slide-17
SLIDE 17

Low-impedance controller

  • Combine feedforward torques and low-gain

feedback controllers

  • Feedback control is still necessary to deal with

small deviations from desired trajectory

  • Feedforward torques deal with the slowness of

the human nervous system

  • Explains well-trained motion exhibits low joint

stiffness

slide-18
SLIDE 18

Controlling human motion

  • Based on feedback or feedforward controls, we

can manually construct controllers for human behaviors

  • Construct a finite state machine based on trial

and error, intuition and heuristics, and side- by-side comparisons with video footage

slide-19
SLIDE 19

Human model

  • 17 rigid bodies
  • 30 controlled dofs
  • body segment and

density from biomechanical data

  • mass and inertia

calculated from polygonal model

slide-20
SLIDE 20

Hierarchy of control laws

  • State machine
  • Control action
  • Low level control
slide-21
SLIDE 21

Hierarchy of control laws

  • State machine
  • Control action
  • Low level control
slide-22
SLIDE 22

Hierarchy of control laws

  • State machine
  • Control action
  • Low level control
slide-23
SLIDE 23
slide-24
SLIDE 24

Controller framework

  • A framework for composing controllers
  • A supervisor controller determines which

individual controller to activate

  • A controller is described by its pre-condition,

post-condition, and expected performance

slide-25
SLIDE 25
  • Simulate articulated rigid body system
  • Feedback and feedforward control
  • Simple models
  • Optimal control
slide-26
SLIDE 26

Inverted pendulum

  • A mass point is attached to a massless rod
  • Dynamic equation of the simple model
  • Compute the torque required at the pivot

point to maintain a balanced position

  • For static balance, projection of the mass

point must be within the support polygon

¨ θ = g l sin θ + m τ l2

slide-27
SLIDE 27

Biped locomotion control

  • SIMBICON
  • Simple finite state machine
  • Torso and swing hip control
  • Balance feedback
slide-28
SLIDE 28

Simple state machine

  • Each state consists of a pose

representing target angles

  • All independent joints are

controlled by PD servos

  • Transitions between states
  • ccur after fixed duration
  • f time or foot contact

events

slide-29
SLIDE 29

Torso and swing-hip control

  • Both torso and swing-hip

have target angles expressed in world coordinates

  • The stance-hip torque is left

as a free variable

τA = −τtorso − τB

slide-30
SLIDE 30

Balance feedback

  • Swing-hip target angle is

continuously modified based on the center of mass

  • This allows the character to

change the future point of support

slide-31
SLIDE 31
  • Simulate articulated rigid body system
  • Feedback and feedforward control
  • Simple models
  • Optimal control
slide-32
SLIDE 32

General framework

ODE integration torques optimization collision handling joint torque next state current state

solve joint torques that

  • ptimizes task goals and
  • beys physics
slide-33
SLIDE 33

Optimal contacts

  • Maintain balance using sustained frictional

contacts with the environment

  • The character pushes against the environment

and uses the resulting force to control its motion

  • Contact forces are restricted by friction cones
slide-34
SLIDE 34

General framework

ODE integration torques optimization collision handling contact force joint torque next state current state

solve joint torque that

  • ptimizes task goals and
  • beys physics based on

contact information

slide-35
SLIDE 35

Optimal momentum control

  • Control changes in linear and angular momenta

to control the center of mass and center of pressure simultaneously

slide-36
SLIDE 36

Optimal plan

  • Plan joint torques by
  • ptimizing a low-dimensional

physical model

  • To generate the plan, full-body

dynamics are approximated by a set of closed-form equations-

  • f-motion
slide-37
SLIDE 37

Stochastic optimal control

  • Automatically learn a robust control strategies

under various sources of uncertainty

  • Use a probabilistic formulation in which all prior

beliefs over unknown quantities are modeled by probability distributions

  • Optimize a controller that maximizes expected

return, which is computed by Monte Carlo methods