Docsity

Concepts in Control - Autonomous Robots - Lecture Slides, Slides of Robotics and Autonomous Systems

Partial preview of the text

Download Concepts in Control - Autonomous Robots - Lecture Slides and more Slides Robotics and Autonomous Systems in PDF only on Docsity!

Basic Concepts in Control

Logistics

  • Reading responses
  • Next week’s readings - due Monday night
    • Braitenberg vehicles
    • Forward/inverse kinematics
    • Aibo joint modeling
  • Next class: lab intro (start here)

The intuition behind control

  • Use action u to push back toward error e = 0
    • error e depends on state x (via sensors y )
  • What does pushing back do?
    • Depends on the structure of the system
    • Velocity versus acceleration control
  • How much should we push back?
    • What does the magnitude of u depend on?
Car on a slope example

Velocity or acceleration control?

  • If error reflects x , does u affect x  or x ?
  • Velocity control: ux  (valve fills tank)
    • let x = ( x )
  • Acceleration control: ux  (rocket)
    • let x = ( x v ) T x Ý  ( Ý x )  F ( x , u )  ( u ) x Ý  x Ý v^ Ý         F ( x , u )  v u         v Ý  Ý x Ý  u

Bang-Bang Control in Action

  • Optimal for reaching the setpoint
  • Not very good for staying near it

Hysteresis

  • Does a thermostat work exactly that way?
    • Car demonstration
  • Why not?
  • How can you prevent such frequent motor action?
  • Aibo turning to ball example

Velocity Control

  • You want to drive your car at velocity vset.
  • You issue the motor command u = pos accel
  • You observe velocity vobs.
  • Define a first-order controller:
    • k is the controller gain. u   k ( v
obs

v

set

)  u

b

Proportional Control in Action

  • Increasing gain approaches setpoint faster
  • Can leads to overshoot, and even instability
  • Steady-state offset

Steady-State Offset

  • Suppose we have continuing disturbances:
  • The P-controller cannot stabilize at e = 0.
    • if ub is defined so F ( xset,ub ) = 0
    • then F ( xset,ub ) + d  0, so the system changes
  • Must adapt u b to different disturbances d. x Ý  F ( x , u )  d

Adaptive Control

  • Sometimes one controller isn’t enough.
  • We need controllers at different time scales.
  • This can eliminate steady-state offset.
    • Why?  u   k P eu b  u^ Ý b   k I e where k I  k P

Integral Control

• The adaptive controller means

• Therefore

• The Proportional-Integral (PI) Controller.

u^ Ý

b

  k

I

e

u

b

( t )   k

I

e dt

0 t

 ^ ub

u ( t )   k

P

e ( t )  k

I

e dt

0 t

 ^ ub

Nonlinear P-control

  • Generalize proportional control to
  • Nonlinear control laws have advantages
    • f has vertical asymptote: bounded error e
    • f has horizontal asymptote: bounded effort u
    • Possible to converge in finite time.
    • Nonlinearity allows more kinds of composition.

u   f ( e )  u

b

where f  M

0 

Derivative Control

  • Damping friction is a force opposing motion, proportional to velocity.
  • Try to prevent overshoot by damping controller response.
  • Estimating a derivative from measurements is fragile, and amplifies noise. u   k P ek D e Ý

Derivative Control in Action

  • Damping fights oscillation and overshoot
  • But it’s vulnerable to noise