Glossary · Robotics and control
Low-pass filter
Also called action filter, exponential moving average, EMA, smoothing filter, cutoff frequency
A filter that lets slow changes through and smooths away fast ones. Used on a policy's actions to stop twitching.
A low-pass filter passes low frequencies (slow changes) and weakens high ones (fast changes). On a controller’s output, it turns a jittery signal into a smooth one.
The exponential moving average
The simplest digital low-pass filter mixes each new input with the previous output:
With near 1 the output changes slowly (strong smoothing). With there’s no filtering at all.
The cutoff frequency, where the filter halves the signal’s power, depends on and the sample rate :
At 50 Hz, gives about 1.8 Hz: slow sways pass, twitches are smoothed out. gives about 18 Hz, almost no smoothing.
The cost: lag
Smoothing always delays. An EMA’s output trails its input by about samples, which is 4 steps (80 ms) at . In a calm stance that doesn’t matter. After a shove, 80 ms of extra delay can be the difference between catching the fall and not.
In this project
The action filter is adaptive: in balance and 0.2 off balance, with the balance gate blending between them. The body is smooth when calm and can react fast when it stumbles. The filter state is part of the policy’s observation, so the policy knows what the filter is about to do.