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

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 

Recently uploaded (20)

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 

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.