Nav2's velocity smoother can constrain command changes from either its previous output or an odometry-derived velocity. The OPEN_LOOP and CLOSED_LOOP labels describe that starting evidence. They do not guarantee that CLOSED_LOOP is better. If odometry arrives slowly or represents old motion, the smoother can repeatedly constrain a new command from a stale state.
The official Nav2 configuration guide makes the timing requirement explicit: closed-loop odometry should be high rate and low latency relative to the smoothing frequency. That relationship, rather than the mode name, should drive the integration review.
Follow one timer cycle
The smoother runs at smoothing_frequency. On each timer invocation, it selects a current velocity, applies configured velocity and acceleration or deceleration limits toward the requested command, applies deadband handling, and publishes a smoothed command.
In open loop, the current value is the last smoothed command. In closed loop, the implementation obtains a twist from the odometry smoother, which uses the configured odom_topic and odom_duration. The two modes therefore have different failure signatures.
Open loop can be internally consistent while the base slips, stalls, or is modified by a downstream controller. Closed loop can observe physical response, but its usefulness depends on the age, rate, filtering, and provenance of that observation.
Measure age, not just topic frequency
A nominal 50-hertz odometry topic can still be late. Transport queues, device interfaces, filtering, timestamp errors, scheduling, or a bridge can deliver frequent messages whose measurements describe an older state.
Record at least four times: the physical or device measurement time if available, the ROS message stamp, callback receipt time, and the smoother timer time. Distinguish latency from inter-arrival period. A steady stream with 200 milliseconds of delay differs from a fresh stream that occasionally drops an update.
Compare the effective age distribution with the smoothing period. At 20 hertz, timer cycles are nominally 50 milliseconds apart. An odometry estimate that remains unchanged for several cycles causes multiple output decisions to use the same evidence. This is not automatically wrong, but it must be tested with the commanded dynamics.
Understand the averaging window
odom_duration controls the interval buffered to estimate velocity in closed-loop mode. A longer interval can reduce noise, but it can also make a rapid change appear later or smaller. A short interval can follow dynamics more closely while exposing quantization and measurement noise.
Do not call odom_duration a delay value or a freshness timeout. It is an averaging or smoothing window in the odometry path. Measure the actual effective lag with the selected source and window.
Separate command timeout from feedback freshness
velocity_timeout addresses the age of the incoming command. When no command arrives for longer than that interval, the implementation substitutes a zero target and publishes constrained deceleration until stopped. It does not certify that odometry is fresh.
A system can therefore have a current command and stale odometry, or an expired command and current odometry. Monitor both clocks. A single green status named velocity healthy hides two independent conditions.
Design a repeatable timing test
Feed a known command sequence through the smoother while recording requested command, smoothed output, odometry measurement stamp, receipt time, and physical velocity from an independent reference when possible. Include acceleration, steady motion, deceleration, reversal, and a command timeout.
Run the same sequence with controlled odometry delay and update rate. Keep the smoother limits and frequency fixed. For each timer cycle, calculate odometry age and whether a new feedback sample entered the averaging window. Plot these beside the selected current velocity and output command.
The goal is not to pick a universal maximum delay. It is to find where the installed dynamics, limits, and feedback chain stop producing stable, traceable behavior.
Test stops and reversals carefully
Stale feedback matters most when velocity changes quickly. During deceleration, old odometry can say the robot is moving faster than it now is. During acceleration, it can say the robot is slower. Around zero and direction reversals, filter lag and sign changes can alter which acceleration or deceleration constraint applies.
Test a zero command after steady motion, then a reversal after a complete stop and before a complete stop. Verify the sign of every axis and the downstream hardware interpretation. Do not infer braking distance from the smoother trace; measure physical stopping separately.
Check odometry provenance
Closed loop adds value only to the extent that odometry contains meaningful motion evidence. Identify whether the source uses wheel encoders, motor state, visual or lidar odometry, fused estimates, or the command itself. If an odometry producer largely echoes commands, routing it back does not create independent observation.
Document frames, covariance, filtering, and synchronization. A correctly named odom topic can still carry unsuitable twist data for the smoother's purpose.
Watch downstream modifications
Collision monitors, base drivers, rate limiters, and embedded controllers may change the smoothed command before actuation. Compare the smoother output with the final command accepted by the base. Otherwise, closed-loop differences may be blamed on the smoother when another component is imposing the change.
Make switching a controlled change
The implementation supports updating the feedback parameter and recreates the odometry smoother when CLOSED_LOOP is selected. Treat a mode change as a configuration event. Test the transition at rest first, then under bounded motion if operationally required. Record the first current-velocity value after the change and confirm the odometry window has valid data.
Do not switch modes automatically in response to one delayed sample without a designed state machine. A fallback should define thresholds, hysteresis, stop behavior, operator visibility, and recovery criteria.
State the evidence precisely
A defensible report says that, under named smoothing frequency, odometry source, averaging duration, latency distribution, and command limits, closed-loop output remained stable and physical response met measured criteria. It does not say that CLOSED_LOOP inherently tracks better or that a higher publication rate creates fresher evidence.
Choose the mode whose assumptions you can verify. Open loop assumes commanded changes are achieved closely enough. Closed loop assumes odometry is timely and meaningful. Both require an explicit timing contract between software cycles and the robot that ultimately moves.