Skip to main content

Module 05: Dynamics and Control

Introductionโ€‹

Control systems bridge the gap between desired robot behavior and physical actuation. This module covers classical and modern control techniques for robotic systems.

Section 1: PID Controlโ€‹

1.1 The PID Controllerโ€‹

PID Controller: A feedback controller that computes control effort based on proportional, integral, and derivative terms of the tracking error.

u(t)=Kpe(t)+Kiโˆซ0te(ฯ„)dฯ„+Kdde(t)dtu(t) = K_p e(t) + K_i \int_0^t e(\tau)d\tau + K_d \frac{de(t)}{dt}

1.2 Tuning Methodsโ€‹

class PIDController:
def __init__(self, kp, ki, kd):
self.kp, self.ki, self.kd = kp, ki, kd
self.integral = 0
self.prev_error = 0

def compute(self, error, dt):
self.integral += error * dt
derivative = (error - self.prev_error) / dt
self.prev_error = error
return self.kp * error + self.ki * self.integral + self.kd * derivative

Section 2: Computed Torque Controlโ€‹

2.1 Model-Based Controlโ€‹

Using the dynamics model:

ฯ„=M(q)(qยจd+Kdeห™+Kpe)+C(q,qห™)qห™+g(q)\boldsymbol{\tau} = \mathbf{M}(\mathbf{q})(\ddot{\mathbf{q}}_d + \mathbf{K}_d\dot{\mathbf{e}} + \mathbf{K}_p\mathbf{e}) + \mathbf{C}(\mathbf{q},\dot{\mathbf{q}})\dot{\mathbf{q}} + \mathbf{g}(\mathbf{q})

2.2 Stability Analysisโ€‹

Choosing gains to place poles in the left half-plane ensures stability.

Computed torque control requires accurate dynamics models. Model errors can destabilize the system.

Section 3: Impedance Controlโ€‹

3.1 Interaction Controlโ€‹

Impedance Control: Control strategy that regulates the relationship between robot motion and interaction forces, making the robot behave like a mass-spring-damper system.

Md(xยจโˆ’xยจd)+Bd(xห™โˆ’xห™d)+Kd(xโˆ’xd)=fext\mathbf{M}_d(\ddot{\mathbf{x}} - \ddot{\mathbf{x}}_d) + \mathbf{B}_d(\dot{\mathbf{x}} - \dot{\mathbf{x}}_d) + \mathbf{K}_d(\mathbf{x} - \mathbf{x}_d) = \mathbf{f}_{ext}

Section 4: Stability Theoryโ€‹

4.1 Lyapunov Analysisโ€‹

For a system xห™=f(x)\dot{\mathbf{x}} = f(\mathbf{x}), if there exists a positive definite function V(x)V(\mathbf{x}) with Vห™(x)<0\dot{V}(\mathbf{x}) < 0, the equilibrium is asymptotically stable.

Summaryโ€‹

Key takeaways:

  1. PID control provides simple but effective joint-level control
  2. Computed torque achieves linearization and decoupling
  3. Impedance control enables safe physical interaction
  4. Lyapunov theory provides stability guarantees

Key Conceptsโ€‹

  • PID Controller: Proportional-Integral-Derivative feedback
  • Computed Torque: Model-based cancellation of dynamics
  • Impedance Control: Regulating force-motion relationship
  • Lyapunov Stability: Energy-based stability analysis

Further Readingโ€‹

  1. Slotine, J.J.E. & Li, W. (1991). "Applied Nonlinear Control"
  2. Siciliano, B. et al. (2009). "Robotics: Modelling, Planning and Control"