📑 Formula Sheet - Control Of Mobile Robots (GeorgiaTech)
#Physics #Engineering #Control_Theory #Robotics #Math
Table of Contents:
Module 1 - Dynamical Models and Controls
Read more: Module 1 - Introduction to Controls and Dynamical Models
Continuous Dynamical Models (Differential Equations)
Discrete Dynamical Models (Difference Equations)
Taylor Approximation:
Continuous Time PID Regulator
The control signal should be a function of the error signal "e"
Calculate Steady State error,
Discrete Time PID Regulator
Discrete P-term:
the discrete version is trivial, we just need to sample the error,
Discrete D-term
We know that the derivative of the error is roughly,
Furthermore, we can modify
Then, our controller will be,
Discrete I - term
We can approximate this area with rectangles, and now we write the sum of these rectangles as a Riemann approximation,
So after some time
Conclusion: To calculate the approximate integral we just need to compute,
But we can modify
Then, our controller will be,
And we just need to update "Enew" every cycle,
Discrete PID Controller
Example - pseudo-code:
Module 2 - Wheeled Robot Models
Read more: Module 2 - Introduction to Mobile Robotics and Wheeled Robot Models
Forward Kinematics: Differential Drive Model
Based on the actual physical constraints of the robot.
Inputs: Angular velocities of the wheels:
- Right wheel:
- Left wheel:
Forward Kinematics: Unicycle Model (Simplified Model)
Used for designing controllers.
Inputs:
: Translational (linear) velocity. : Angular velocity.
Model Conversion (Unicycle to Differential Drive)
Geometric Formulas
Wheel Encoder Odometry
Calculating Global Obstacle Positions from Sensor Data
If the robot knows its pose (
Go-to-Goal Behavior: Heading-Based Proportional Controller
atan2(x,y)
definitionDefinición:
Casos Especiales
Closed Loop:
Key Notation:
-
Robot's state:
- Position:
- Orientation:
(angle with respect to the -axis)
- Position:
-
Goal's state:
- Position:
- Position:
-
Vector to Goal:
: Vector from the robot to the goal. - Orientation of
: (angle with respect to the -axis)
Module 3 - Linear State-Space Control Theory
Read more: Module 3 - Introduction to Linear State-Space Control Theory
General State-Space Equations (LTI System)
Steps: Converting a Linear Second-Order System to State-Space Form
Step 1: Choose State Variables & define Inputs and Outputs
Step 2: Rewrite Second-Order as a pair of First-Order Equations
Step 3: Represent in State-Space Form
The equations can be expressed as:
where:
The output equation
where:
Thus, the system is represented in state-space form:
Linearizations: using a Small Angle Approximation
For small
- State:
- Dynamics (around a small
): - Output (
Pendulum angle):
Linearization Steps: using the Jacobian Matrix
Consider a nonlinear second-order differential equation:
We need linearize it around an equilibrium point
Step 1: Choose State Variables & define Inputs and Outputs
Step 2: Rewrite Second-Order as a pair of First-Order Equations
Step 3: Linearize Around an Operating Point (use the Jacobian Matrix)
At the operating point
where,
Calculate
Calculate
The linearized equations become:
Step 4: Represent in State-Space Form
Now we have a Linearized system around the Operating Point:
where:
and
we can expand this model like this,
Scalar Exponential and Matrix Exponential (Taylor Series)
Time derivative of the Exponential Function
Derivative of the Exponential:
Time derivative of the scalar exponential:
Time derivative of the matrix exponential (behaves like a scalar exponential):
Matrix Diagonalization
Let’s say there exists an invertible matrix
where:
: The original "ugly" matrix. : The matrix with the change of basis (constructed from the eigenvectors of ). : A "pretty" diagonal matrix containing the eigenvalues of .
By induction, we can generalize:
Matrix Exponential Diagonalization
Applying this to the matrix exponential as
where:
and:
where each column
If
Thus, the final result is:
Eigenvalues (Characteristic Equation)
Eigenvectors
The Null Space of a Linear Transformation
The null space of
It means, that the null space of
Solution to the Homogeneous First-Order Linear Differential Equation
This is a first-order linear differential equation, it is a scalar system, where
The solution to this equation is:
where:
is the initial condition at . is the scalar exponential.
Stability of the Scalar System
Solution to the System of Coupled Homogeneous First-Order Linear Differential Equations (Matrix Case)
For systems where
The solution remains similar to the scalar version, but uses a matrix exponential:
Here,
The State Transition Matrix
it can be used to express the general general solution,
The properties of the matrix exponential still apply,
General Solution for a Controlled System
For systems with inputs:
The solution incorporates the input's influence:
Key Terms:
: The state transition matrix. : The effect of the input on the state over time. Also known as a Convolution Integral.
For systems with measured outputs:
The output is derived directly from the state solution.
Note: If
Stability of Higher Dimension Systems
The Rendezvous Problem in Swarm Robotics
- Robots share relative positions.
- Consensus equations define intermediary goal points.
the system can be written as:
where
Graph Laplacian Properties:
has: - One zero eigenvalue (
) if the graph is connected. - All other eigenvalues are positive (
).
- One zero eigenvalue (
has: - One zero eigenvalue (
). - All other eigenvalues are negative (
). - Therefore the multiple-robot case has Critical Stability
- One zero eigenvalue (
The null space of
Module 4 - Linear State-Space Control Design
Read more: Module 4 - Linear State-Space Control Design