๐Ÿง  What is Lyapunov Reshaping?

Lyapunov Reshaping is a technique used in robotics to modify a Lyapunov function so that it not only ensures convergence to a goal but also accounts for obstacle avoidance. It's a blend of stability control and safety-aware motion planning.

โš™๏ธ Why Do We Need Reshaping?

A basic Lyapunov function only ensures stability toward a goal. However, in real environments with obstacles, the robot may end up heading straight into them unless the Lyapunov function is reshaped to include avoidance logic.

๐Ÿค– Robotics Use Case

Basic Lyapunov Function

V(x) = โ€–x - xgโ€–ยฒ
This pulls the robot toward the goal position xg.

Problem:

No consideration for obstacles. The robot might crash into them.

Reshaped Lyapunov Function

Vreshaped(x) = โ€–x - xgโ€–ยฒ / ฮฒ(x)

๐Ÿ“ Designing ฮฒ(x) for Obstacles

Example:
ฮฒ(x) = 1 - โˆ‘ 1 / di(x)
where di(x) is the distance from the robot to obstacle i.

This causes the Lyapunov gradient to steepen near obstacles, guiding the robot around them.

๐Ÿ› ๏ธ Dynamic Modulation Approach (DMM)

In methods like Dynamic Modulation, instead of reshaping the Lyapunov function itself, you modulate the vector field:

Modulated System

๐‘‘x/dt = M(x) ยท โˆ‡V(x)
where M(x) is a modulation matrix that:

๐Ÿ“ท Visual Intuition

Imagine a bowl (Lyapunov landscape). Normally, a ball rolls directly to the center. Now place a rock (obstacle) inside the bowl. Lyapunov reshaping modifies the slope so that the ball rolls around the rock and still reaches the center.

๐Ÿ“Œ Summary