SlideShare a Scribd company logo
1 of 23
Lecture 4:
Basic Concepts in Control
CS 344R: Robotics
Benjamin Kuipers
Controlling a Simple System
• Consider a simple system:
– Scalar variables x and u, not vectors x and u.
– Assume x is observable: y = G(x) = x
– Assume effect of motor command u:
• The setpoint xset is the desired value.
– The controller responds to error: e = x − xset
• The goal is to set u to reach e = 0.
˙x = F(x,u)
∂F
∂u
> 0
The intuitions behind control
• Use action u to push back toward error e = 0
• What does pushing back do?
– Velocity versus acceleration control
• How much should we push back?
– What does the magnitude of u depend on?
Velocity or acceleration control?
• Velocity:
• Acceleration:
˙x= ( ˙x) = F (x,u) = (u)
x= (x)
x=
x
v
⎛
⎝
⎜⎜
⎞
⎠
⎟⎟
˙x =
˙x
˙v
⎛
⎝
⎜⎜
⎞
⎠
⎟⎟= F (x,u) =
v
u
⎛
⎝
⎜⎜
⎞
⎠
⎟⎟
˙v = ˙˙x = u
Laws of Motion in Physics
• Newton’s Law: F=ma or a=F/m.
• But Aristotle said:
– Velocity, not acceleration, is proportional to the
force on a body.
• Who is right? Why should we care?
– (We’ll come back to this.)
˙x =
˙x
˙v
⎛
⎝
⎜
⎞
⎠
⎟=
v
F /m
⎛
⎝
⎜
⎞
⎠
⎟
The Bang-Bang Controller
• Push back, against the direction of the error
• Error:
• To prevent chatter around
• Household thermostat. Not very subtle.
e = x − xset
e < 0 ⇒ u := on ⇒ ˙x = F (x,on) > 0
e > 0 ⇒ u := off ⇒ ˙x = F (x,off ) < 0
e < −ε ⇒ u := on
e > +ε ⇒ u := off
e = 0
Proportional Control
• Push back, proportional to the error.
– Set ub so that
• For a linear system, exponential
convergence.
• The controller gain k determines how
quickly the system responds to error.
u = −ke + ub
˙x = F(xset ,ub ) = 0
x(t) = Ce
−α t
+ xset
Velocity Control
• You want the robot to move at velocity vset.
• You command velocity vcmd.
• You observe velocity vobs.
• Define a first-order controller:
– k is the controller gain.
˙vcmd = −k(vobs − vset )
Steady-State Offset
• Suppose we have continuing disturbances:
• The P-controller cannot stabilize at e = 0.
– Why not?
˙x = F(x,u) + d
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 is unstable
• Must adapt ub to different disturbances d.
˙x = F(x,u) + d
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) + ub where f ∈ M0
+
Stopping Controller
• Desired stopping point: x=0.
– Current position: x
– Distance to obstacle:
• Simple P-controller:
• Finite stopping time for
d = | x |+ε
v = ˙x = − f (x)
f(x) = k | x | sgn(x)
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 = −kPe − kD
˙e
Adaptive Control
• Sometimes one controller isn’t enough.
• We need controllers at different time scales.
• This can eliminate steady-state offset.
– Why?
u = −kPe + ub
˙ub = −kI e where kI << kP
Adaptive Control
• Sometimes one controller isn’t enough.
• We need controllers at different time scales.
• This can eliminate steady-state offset.
– Because the slower controller adapts ub.
u = −kPe + ub
˙ub = −kI e where kI << kP
Integral Control
• The adaptive controller means
• Therefore
• The Proportional-Integral (PI) Controller.
˙ub = −kI e
ub (t) = −kI e dt
0
t
∫ + ub
u(t) = −kP e(t) − kI edt
0
t
∫ + ub
The PID Controller
• A weighted combination of Proportional,
Integral, and Derivative terms.
• The PID controller is the workhorse of the
control industry. Tuning is non-trivial.
– Next lecture includes some tuning methods.
u(t) = −kP e(t) − kI e dt
0
t
∫ − kD
˙e(t)
Habituation
• Integral control adapts the bias term ub.
• Habituation adapts the setpoint xset.
– It prevents situations where too much control
action would be dangerous.
• Both adaptations reduce steady-state error.
u = −kPe + ub
˙xset = +khe where kh << kP
Types of Controllers
• Feedback control
– Sense error, determine control response.
• Feedforward control
– Sense disturbance, predict resulting error,
respond to predicted error before it happens.
• Model-predictive control
– Plan trajectory to reach goal.
– Take first step.
– Repeat.
Laws of Motion in Physics
• Newton’s Law: F=ma or a=F/m.
• But Aristotle said:
– Velocity, not acceleration, is proportional to the
force on a body.
• Who is right? Why should we care?
˙x =
˙x
˙v
⎛
⎝
⎜
⎞
⎠
⎟=
v
F /m
⎛
⎝
⎜
⎞
⎠
⎟
Who is right? Aristotle!
• Try it! It takes constant force to keep an
object moving at constant velocity.
– Ignore brief transients
• Aristotle was a genius to recognize that
there could be laws of motion, and to
formulate a useful and accurate one.
• This law is true because our everyday world
is friction-dominated.
Who is right? Newton!
• Newton’s genius was to recognize that the
true laws of motion may be different from
what we usually observe on earth.
• For the planets, without friction, motion
continues without force.
• For Aristotle, “force” means Fexternal.
• For Newton, “force” means Ftotal.
– On Earth, you must include Ffriction.
From Newton back to Aristotle
• Ftotal = Fexternal + Ffriction
• Ffriction = −f(v) for some monotonic f.
• Thus:
• Velocity v moves quickly to equilibrium:
• Terminal velocity vfinal depends on:
– Fext, m, and the friction function f(v).
– So Aristotle was right! In a friction-dominated
world.
˙x
˙v
⎛
⎝
⎜
⎞
⎠
⎟=
v
F /m
⎛
⎝
⎜
⎞
⎠
⎟=
v
1
m Fext − 1
m f (v)
⎛
⎝
⎜
⎞
⎠
⎟
˙v = 1
m
Fext − 1
m
f (v)

More Related Content

What's hot

Gravitational field and potential, escape velocity, universal gravitational l...
Gravitational field and potential, escape velocity, universal gravitational l...Gravitational field and potential, escape velocity, universal gravitational l...
Gravitational field and potential, escape velocity, universal gravitational l...lovizabasharat
 
Kinetics of particles
Kinetics of particlesKinetics of particles
Kinetics of particlesGrace Palermo
 
Chapter 13 kinetics_of_particle--force_acceleration
Chapter 13 kinetics_of_particle--force_accelerationChapter 13 kinetics_of_particle--force_acceleration
Chapter 13 kinetics_of_particle--force_accelerationSelf-employed
 
Balanced forces ppt
Balanced forces pptBalanced forces ppt
Balanced forces pptphysicsgalle
 
Physics Semester 2 Review and Tutorial
Physics Semester 2 Review and TutorialPhysics Semester 2 Review and Tutorial
Physics Semester 2 Review and Tutorialffiala
 
Chapter2powerpoint 090816163937-phpapp02
Chapter2powerpoint 090816163937-phpapp02Chapter2powerpoint 090816163937-phpapp02
Chapter2powerpoint 090816163937-phpapp02Cleophas Rwemera
 
24 Apr 28 Newtons Laws, Linear Angular Momentum Presented
24 Apr 28 Newtons Laws, Linear Angular Momentum Presented24 Apr 28 Newtons Laws, Linear Angular Momentum Presented
24 Apr 28 Newtons Laws, Linear Angular Momentum PresentedSteve Koch
 
Kinetics kinematics
Kinetics kinematicsKinetics kinematics
Kinetics kinematicsshanth_95
 

What's hot (17)

Lecture02
Lecture02Lecture02
Lecture02
 
Gravitational field and potential, escape velocity, universal gravitational l...
Gravitational field and potential, escape velocity, universal gravitational l...Gravitational field and potential, escape velocity, universal gravitational l...
Gravitational field and potential, escape velocity, universal gravitational l...
 
Kinetics of particles
Kinetics of particlesKinetics of particles
Kinetics of particles
 
Lecture11
Lecture11Lecture11
Lecture11
 
Chapter 13 kinetics_of_particle--force_acceleration
Chapter 13 kinetics_of_particle--force_accelerationChapter 13 kinetics_of_particle--force_acceleration
Chapter 13 kinetics_of_particle--force_acceleration
 
Balanced forces ppt
Balanced forces pptBalanced forces ppt
Balanced forces ppt
 
Ap review total
Ap review totalAp review total
Ap review total
 
Kinetics of particle
Kinetics of particleKinetics of particle
Kinetics of particle
 
Rectilinear motion
Rectilinear motionRectilinear motion
Rectilinear motion
 
Linear momentum and its conservation by Victor R. Oribe
Linear momentum and its conservation by Victor R. OribeLinear momentum and its conservation by Victor R. Oribe
Linear momentum and its conservation by Victor R. Oribe
 
Physics Semester 2 Review and Tutorial
Physics Semester 2 Review and TutorialPhysics Semester 2 Review and Tutorial
Physics Semester 2 Review and Tutorial
 
Chapter2powerpoint 090816163937-phpapp02
Chapter2powerpoint 090816163937-phpapp02Chapter2powerpoint 090816163937-phpapp02
Chapter2powerpoint 090816163937-phpapp02
 
Moment and levers
Moment and leversMoment and levers
Moment and levers
 
Lecture14
Lecture14Lecture14
Lecture14
 
24 Apr 28 Newtons Laws, Linear Angular Momentum Presented
24 Apr 28 Newtons Laws, Linear Angular Momentum Presented24 Apr 28 Newtons Laws, Linear Angular Momentum Presented
24 Apr 28 Newtons Laws, Linear Angular Momentum Presented
 
Kinetics kinematics
Kinetics kinematicsKinetics kinematics
Kinetics kinematics
 
Lecture07
Lecture07Lecture07
Lecture07
 

Viewers also liked

SC Melle Fussballmagazin - Stadionecho - SCM gegen TV Dinklage
SC Melle Fussballmagazin - Stadionecho - SCM gegen TV DinklageSC Melle Fussballmagazin - Stadionecho - SCM gegen TV Dinklage
SC Melle Fussballmagazin - Stadionecho - SCM gegen TV DinklageSCM Fussball
 
Angry Fishes [Злые Рыбы]
Angry Fishes [Злые Рыбы]Angry Fishes [Злые Рыбы]
Angry Fishes [Злые Рыбы]Llama Pro
 
Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)
Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)
Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)Anggie Pratiwi
 
Tagliagambe
Tagliagambe Tagliagambe
Tagliagambe imartini
 
New Product Marketing: Increase your odds of new product success...30 hours o...
New Product Marketing: Increase your odds of new product success...30 hours o...New Product Marketing: Increase your odds of new product success...30 hours o...
New Product Marketing: Increase your odds of new product success...30 hours o...Bryan Cassady
 

Viewers also liked (6)

SC Melle Fussballmagazin - Stadionecho - SCM gegen TV Dinklage
SC Melle Fussballmagazin - Stadionecho - SCM gegen TV DinklageSC Melle Fussballmagazin - Stadionecho - SCM gegen TV Dinklage
SC Melle Fussballmagazin - Stadionecho - SCM gegen TV Dinklage
 
Angry Fishes [Злые Рыбы]
Angry Fishes [Злые Рыбы]Angry Fishes [Злые Рыбы]
Angry Fishes [Злые Рыбы]
 
Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)
Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)
Analisis kajian penyebab peradaban Islam runtuh (By: Anggi)
 
Tagliagambe
Tagliagambe Tagliagambe
Tagliagambe
 
New Product Marketing: Increase your odds of new product success...30 hours o...
New Product Marketing: Increase your odds of new product success...30 hours o...New Product Marketing: Increase your odds of new product success...30 hours o...
New Product Marketing: Increase your odds of new product success...30 hours o...
 
Tbs presentation v3
Tbs presentation v3Tbs presentation v3
Tbs presentation v3
 

Similar to Week10 ben-control

Quantum Computation 101 (Almost)
Quantum Computation 101 (Almost)Quantum Computation 101 (Almost)
Quantum Computation 101 (Almost)Ping Sheng Kao
 
lecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxlecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxAnshulShekhar3
 
Lecture 1: Quadrotor
Lecture 1: QuadrotorLecture 1: Quadrotor
Lecture 1: QuadrotorWong Kiong
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqreSAT Publishing House
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqreSAT Journals
 
3c. uniform circular motion
3c. uniform circular motion3c. uniform circular motion
3c. uniform circular motiondukies_2000
 
Optimal Feedback Control for Human Gait with Function Electrical Stimulation
Optimal Feedback Control for Human Gait with Function Electrical StimulationOptimal Feedback Control for Human Gait with Function Electrical Stimulation
Optimal Feedback Control for Human Gait with Function Electrical StimulationTon van den Bogert
 
Control System Modeling case study with complete explanation
Control System Modeling case study with complete explanationControl System Modeling case study with complete explanation
Control System Modeling case study with complete explanationhodelexdypiet
 
4.1 simple harmonic motion
4.1 simple harmonic motion4.1 simple harmonic motion
4.1 simple harmonic motionJohnPaul Kennedy
 
special theory of relativity
special theory of relativityspecial theory of relativity
special theory of relativityAquib Amir
 
Stat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng TheoryStat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng TheoryKhulna University
 
motion velocity accelaration and displacement
motion velocity accelaration and displacementmotion velocity accelaration and displacement
motion velocity accelaration and displacementjamesadam2001
 

Similar to Week10 ben-control (20)

Quantum Computation 101 (Almost)
Quantum Computation 101 (Almost)Quantum Computation 101 (Almost)
Quantum Computation 101 (Almost)
 
Av 738 - Adaptive Filtering - Kalman Filters
Av 738 - Adaptive Filtering - Kalman Filters Av 738 - Adaptive Filtering - Kalman Filters
Av 738 - Adaptive Filtering - Kalman Filters
 
Slideshare
SlideshareSlideshare
Slideshare
 
lecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxlecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptx
 
Av 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman FilterAv 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman Filter
 
Neural Networks
Neural NetworksNeural Networks
Neural Networks
 
Lecture 1: Quadrotor
Lecture 1: QuadrotorLecture 1: Quadrotor
Lecture 1: Quadrotor
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
 
3c. uniform circular motion
3c. uniform circular motion3c. uniform circular motion
3c. uniform circular motion
 
Optimal Feedback Control for Human Gait with Function Electrical Stimulation
Optimal Feedback Control for Human Gait with Function Electrical StimulationOptimal Feedback Control for Human Gait with Function Electrical Stimulation
Optimal Feedback Control for Human Gait with Function Electrical Stimulation
 
Control System Modeling case study with complete explanation
Control System Modeling case study with complete explanationControl System Modeling case study with complete explanation
Control System Modeling case study with complete explanation
 
Ch2 2011 s
Ch2 2011 sCh2 2011 s
Ch2 2011 s
 
Lec1 01
Lec1 01Lec1 01
Lec1 01
 
lec02.pdf
lec02.pdflec02.pdf
lec02.pdf
 
4.1 simple harmonic motion
4.1 simple harmonic motion4.1 simple harmonic motion
4.1 simple harmonic motion
 
fluid mechanics
fluid mechanicsfluid mechanics
fluid mechanics
 
special theory of relativity
special theory of relativityspecial theory of relativity
special theory of relativity
 
Stat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng TheoryStat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng Theory
 
motion velocity accelaration and displacement
motion velocity accelaration and displacementmotion velocity accelaration and displacement
motion velocity accelaration and displacement
 

More from Samarth Patel

More from Samarth Patel (8)

daad
daaddaad
daad
 
Gmat handbook
Gmat handbookGmat handbook
Gmat handbook
 
Plc tutorial
Plc tutorialPlc tutorial
Plc tutorial
 
Basic plc
Basic plcBasic plc
Basic plc
 
Seminar on serial communication
Seminar on serial communicationSeminar on serial communication
Seminar on serial communication
 
7 serial port
7 serial port7 serial port
7 serial port
 
Length measurement
Length measurementLength measurement
Length measurement
 
Voltammetry
VoltammetryVoltammetry
Voltammetry
 

Recently uploaded

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Week10 ben-control

  • 1. Lecture 4: Basic Concepts in Control CS 344R: Robotics Benjamin Kuipers
  • 2. Controlling a Simple System • Consider a simple system: – Scalar variables x and u, not vectors x and u. – Assume x is observable: y = G(x) = x – Assume effect of motor command u: • The setpoint xset is the desired value. – The controller responds to error: e = x − xset • The goal is to set u to reach e = 0. ˙x = F(x,u) ∂F ∂u > 0
  • 3. The intuitions behind control • Use action u to push back toward error e = 0 • What does pushing back do? – Velocity versus acceleration control • How much should we push back? – What does the magnitude of u depend on?
  • 4. Velocity or acceleration control? • Velocity: • Acceleration: ˙x= ( ˙x) = F (x,u) = (u) x= (x) x= x v ⎛ ⎝ ⎜⎜ ⎞ ⎠ ⎟⎟ ˙x = ˙x ˙v ⎛ ⎝ ⎜⎜ ⎞ ⎠ ⎟⎟= F (x,u) = v u ⎛ ⎝ ⎜⎜ ⎞ ⎠ ⎟⎟ ˙v = ˙˙x = u
  • 5. Laws of Motion in Physics • Newton’s Law: F=ma or a=F/m. • But Aristotle said: – Velocity, not acceleration, is proportional to the force on a body. • Who is right? Why should we care? – (We’ll come back to this.) ˙x = ˙x ˙v ⎛ ⎝ ⎜ ⎞ ⎠ ⎟= v F /m ⎛ ⎝ ⎜ ⎞ ⎠ ⎟
  • 6. The Bang-Bang Controller • Push back, against the direction of the error • Error: • To prevent chatter around • Household thermostat. Not very subtle. e = x − xset e < 0 ⇒ u := on ⇒ ˙x = F (x,on) > 0 e > 0 ⇒ u := off ⇒ ˙x = F (x,off ) < 0 e < −ε ⇒ u := on e > +ε ⇒ u := off e = 0
  • 7. Proportional Control • Push back, proportional to the error. – Set ub so that • For a linear system, exponential convergence. • The controller gain k determines how quickly the system responds to error. u = −ke + ub ˙x = F(xset ,ub ) = 0 x(t) = Ce −α t + xset
  • 8. Velocity Control • You want the robot to move at velocity vset. • You command velocity vcmd. • You observe velocity vobs. • Define a first-order controller: – k is the controller gain. ˙vcmd = −k(vobs − vset )
  • 9. Steady-State Offset • Suppose we have continuing disturbances: • The P-controller cannot stabilize at e = 0. – Why not? ˙x = F(x,u) + d
  • 10. 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 is unstable • Must adapt ub to different disturbances d. ˙x = F(x,u) + d
  • 11. 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) + ub where f ∈ M0 +
  • 12. Stopping Controller • Desired stopping point: x=0. – Current position: x – Distance to obstacle: • Simple P-controller: • Finite stopping time for d = | x |+ε v = ˙x = − f (x) f(x) = k | x | sgn(x)
  • 13. 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 = −kPe − kD ˙e
  • 14. Adaptive Control • Sometimes one controller isn’t enough. • We need controllers at different time scales. • This can eliminate steady-state offset. – Why? u = −kPe + ub ˙ub = −kI e where kI << kP
  • 15. Adaptive Control • Sometimes one controller isn’t enough. • We need controllers at different time scales. • This can eliminate steady-state offset. – Because the slower controller adapts ub. u = −kPe + ub ˙ub = −kI e where kI << kP
  • 16. Integral Control • The adaptive controller means • Therefore • The Proportional-Integral (PI) Controller. ˙ub = −kI e ub (t) = −kI e dt 0 t ∫ + ub u(t) = −kP e(t) − kI edt 0 t ∫ + ub
  • 17. The PID Controller • A weighted combination of Proportional, Integral, and Derivative terms. • The PID controller is the workhorse of the control industry. Tuning is non-trivial. – Next lecture includes some tuning methods. u(t) = −kP e(t) − kI e dt 0 t ∫ − kD ˙e(t)
  • 18. Habituation • Integral control adapts the bias term ub. • Habituation adapts the setpoint xset. – It prevents situations where too much control action would be dangerous. • Both adaptations reduce steady-state error. u = −kPe + ub ˙xset = +khe where kh << kP
  • 19. Types of Controllers • Feedback control – Sense error, determine control response. • Feedforward control – Sense disturbance, predict resulting error, respond to predicted error before it happens. • Model-predictive control – Plan trajectory to reach goal. – Take first step. – Repeat.
  • 20. Laws of Motion in Physics • Newton’s Law: F=ma or a=F/m. • But Aristotle said: – Velocity, not acceleration, is proportional to the force on a body. • Who is right? Why should we care? ˙x = ˙x ˙v ⎛ ⎝ ⎜ ⎞ ⎠ ⎟= v F /m ⎛ ⎝ ⎜ ⎞ ⎠ ⎟
  • 21. Who is right? Aristotle! • Try it! It takes constant force to keep an object moving at constant velocity. – Ignore brief transients • Aristotle was a genius to recognize that there could be laws of motion, and to formulate a useful and accurate one. • This law is true because our everyday world is friction-dominated.
  • 22. Who is right? Newton! • Newton’s genius was to recognize that the true laws of motion may be different from what we usually observe on earth. • For the planets, without friction, motion continues without force. • For Aristotle, “force” means Fexternal. • For Newton, “force” means Ftotal. – On Earth, you must include Ffriction.
  • 23. From Newton back to Aristotle • Ftotal = Fexternal + Ffriction • Ffriction = −f(v) for some monotonic f. • Thus: • Velocity v moves quickly to equilibrium: • Terminal velocity vfinal depends on: – Fext, m, and the friction function f(v). – So Aristotle was right! In a friction-dominated world. ˙x ˙v ⎛ ⎝ ⎜ ⎞ ⎠ ⎟= v F /m ⎛ ⎝ ⎜ ⎞ ⎠ ⎟= v 1 m Fext − 1 m f (v) ⎛ ⎝ ⎜ ⎞ ⎠ ⎟ ˙v = 1 m Fext − 1 m f (v)

Editor's Notes

  1. Check how many people are lost after the first bullet.