ME-339: Control Engineering
Lec 01: Introduction to Control Engineering
Instructor:
Dr. Khawaja Fahad Iqbal
Assistant Professor (Department of Robotics & AI, SMME, NUST)
Co-Principal Investigator (Intelligent Robotics Lab, NCAI)
28 Jan 2025 Department of Robotics and AI, SMME, NUST 1/23
Outline
Control Theory
LTI Systems
28 Jan 2025 Department of Robotics and AI, SMME, NUST 2/23
Outline
Control Theory
LTI Systems
28 Jan 2025 Department of Robotics and AI, SMME, NUST 3/23
Control Theory
• System = Something that changes over time
• Control = Influence that change
• Examples:
– Robots
– Epidemics
– Stock markets
– Circuits
– Cars
– Autopilots
28 Jan 2025 Department of Robotics and AI, SMME, NUST 4/23
Building Blocks
• State = Representation of what the system is currently doing
• Dynamics = Description of how the state changes
• Reference = What we want the system to do
• Output = Measurement of (some aspects of the) system
28 Jan 2025 Department of Robotics and AI, SMME, NUST 5/23
Building Blocks
• State (x)= Representation of what the system is currently doing
• Dynamics = Description of how the state changes
• Reference (r) = What we want the system to do
• Output (y) = Measurement of (some aspects of the) system
• Input (u) = Control signal
28 Jan 2025 Department of Robotics and AI, SMME, NUST 6/23
Building Blocks
• State (x)= Representation of what the system is currently doing
• Dynamics = Description of how the state changes
• Reference (r) = What we want the system to do
• Output (y) = Measurement of (some aspects of the) system
• Input (u) = Control signal
• Feedback = Mapping from outputs to inputs
28 Jan 2025 Department of Robotics and AI, SMME, NUST 7/23
Need for Models
• A main question in control theory:
“How pick the input signal u?”
• Objectives:
– Stability : make sure that the system doesn’t blow up.
– Tracking : make system follow a reference
– Robustness : design controllers which are immune to changes in system parameters
– Disturbance rejection: design controllers which are immune to disturbances
– Optimality: how to achieve our objective in the best possible way
28 Jan 2025 Department of Robotics and AI, SMME, NUST 8/23
Dynamical Models
• Effective control strategies rely on predictive models.
• Discrete time:
• Example: Clock
28 Jan 2025 Department of Robotics and AI, SMME, NUST 9/23
Dynamical Models
• Laws of Physics are all in continuous time: Instead of
“next” state, we need derivatives with respect to time.
• Continuous time:
• Clock:
28 Jan 2025 Department of Robotics and AI, SMME, NUST 10/23
Continuous to Discrete
• But in implementation, everything is discrete/sampled!
• Sample time:
Taylor approximation
28 Jan 2025 Department of Robotics and AI, SMME, NUST 11/23
Outline
Control Theory
LTI Systems
28 Jan 2025 Department of Robotics and AI, SMME, NUST 12/23
System Modelling
• Our system model should be:
– General enough
– Simple enough
– Expressive enough
– Relevant enough
28 Jan 2025 Department of Robotics and AI, SMME, NUST 13/23
“Controlling” a Point Mass
• Given a point mass on a line whose acceleration is
directly controlled:
• We could write this in a compact/general form:
28 Jan 2025 Department of Robotics and AI, SMME, NUST 14/23
In State Space Form
• Store these variables in a single, 2-dimensional “state” variable
28 Jan 2025 Department of Robotics and AI, SMME, NUST 15/23
In State Space Form
• Or, even more generally
28 Jan 2025 Department of Robotics and AI, SMME, NUST 16/23
A 2D Point-Mass
28 Jan 2025 Department of Robotics and AI, SMME, NUST 17/23
LTI Systems
• This is a so-called LTI (Linear Time-Invariant) system in state-space form!
28 Jan 2025 Department of Robotics and AI, SMME, NUST 18/23
LTI Systems
• The general LTI model is: A - Given by the Physics of
the system (we cannot
control this)
B – How input changes the
state (actuators)
C – How we get information
about the state (sensors)
• Main Question: How should the input be selected?
• But First: How can such systems be understood? And
where do they come from?
28 Jan 2025 Department of Robotics and AI, SMME, NUST 19/23
Example 1: The Car Model
• The car model for cruise control:
• Suppose we only care about / can measure the velocity:
• Suppose we care about / can measure the position:
28 Jan 2025 Department of Robotics and AI, SMME, NUST 20/23
Example 2: Two Simple “Robots”
• Consider two “robots” on a line.
• The Rendezvous Problem: Have them meet at the same location.
• Idea: Have them aim towards each other:
28 Jan 2025 Department of Robotics and AI, SMME, NUST 21/23
Example 3: Unicycle Robot
• We need to be more systematic/ clever when it comes to generating LTI
models from nonlinear systems!
28 Jan 2025 Department of Robotics and AI, SMME, NUST 22/23
Thank you for your attention.
Any Questions?
28 Jan 2025 Department of Robotics and AI, SMME, NUST 23/23