What is Control-loop jitter?
Control-loop jitter is the variation in timing between iterations of a robot's control loop. A loop meant to run every 33 ms that sometimes takes 25 ms and sometimes 60 ms has high jitter, even if its average looks fine.
How it works
A robot's control loop reads sensors, computes the next action and sends commands, over and over at a target rate. Rate tells you how many iterations happen per second on average. Jitter tells you how uneven they are. Iterations that run past their deadline are called late iterations.
Averages hide jitter. A loop can report a healthy 30 Hz while one iteration in ten takes twice as long, which is enough to make an arm stutter or a mobile base drift off its path.
Why it matters in production
Controllers assume a steady time step. When steps are uneven, motion gets jerky, tracking error grows and safety margins shrink. With learned policies, uneven timing also means the policy sees observations at intervals it was not trained on.
Jitter often appears only in production: on a warm robot, with more processes running, with a bigger model. Bench numbers rarely tell the full story.
Causes and fixes
Common causes are blocking I/O such as a slow serial read from motor encoders, garbage-collection pauses in Python, model inference that spikes when the GPU is shared, logging or network calls inside the loop, and CPU contention with other processes. Thermal throttling on small boards adds more.
Measure the loop directly: rate, median and p99 iteration time, and the share of late iterations. When iterations are late, find out which call took the time. Move blocking I/O and logging out of the loop, keep allocations low to reduce garbage collection, and give the loop its own core where you can.
How PhysicalFleet handles it
PhysicalFleet measures control-loop rate, jitter and late iterations, and names the function and line that takes the time, such as a slow encoder read. Loops can also be declared explicitly with pf.loop and a target rate.
What is the difference between latency and jitter?
Latency is how long one iteration or one inference takes. Jitter is how much that time varies from one iteration to the next. A loop can have acceptable latency on average and still have harmful jitter.
How much jitter is acceptable?
It depends on the robot and the controller. A practical approach is to track the share of iterations that miss their deadline and keep it close to zero for anything that moves fast or works near people.
Does Python cause jitter in robot control loops?
It can. Garbage-collection pauses and the global interpreter lock can delay iterations unpredictably. Many teams keep the fastest low-level loops in C++ or on a microcontroller and run the policy in Python at a lower rate.
From the lab bench. To the entire fleet.
Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go