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 Journals
 
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
 
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

Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Recently uploaded (20)

Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

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.