Acceleration limits: why robot speed should not change instantly
Atlasbot · 17/8/2026 · 11 min read
The Speed Control article assumes that the speed controller can always immediately reach the desired speed. In fact, jumping straight from zero to full speed (or vice versa) in one control cycle is a shouldn't do, even if the motor is strong enough to do it — this is why the concept of acceleration limit (acceleration limit) always appears in Nav2 configuration and every serious robot controller.
Key concepts
- Wheel slip (wheel slip) — a sudden change in speed requires a very large instantaneous friction force between the wheel and the floor; beyond the static friction limit, the wheel slides instead of rolling — the odometry data becomes erroneous immediately
- Mechanical shock — the robot frame, sensor racks, and goods carried on the robot are all subjected to large inertial forces when accelerating suddenly — causing structural fatigue/damage in the long run
- Instant current too large — fast-changing motor requires high instantaneous current, which can exceed driver limits or cause voltage drop
How it works
Standard solution: instead of instantaneous speed change (stair form), limit Maximum rate of change per cycle — create a trapezoidal graph of velocity versus time: accelerate gradually (accel), maintain steady (cruise), gradually decelerate (decel):
v_lenh(t) = v_hien_tai + clamp(v_muc_tieu − v_hien_tai, −a_max·dt, +a_max·dt)
In short: "Immediate stop" in normal robot control software does not mean set PWM = 0 immediately within one cycle — it means start deceleration with the maximum allowable negative acceleration. Only hardware E-Stop (directly disconnecting motor power) actually stops instantaneously — that's why E-Stop is always a separate hardware circuit, not going through software.
Configuration in Nav2:
controller_server:
ros__parameters:
FollowPath:
max_vel_x: 0.5
acc_lim_x: 1.0 # linear acceleration limit (m/s²)
max_vel_theta: 1.0
acc_lim_theta: 2.0 # Angular acceleration limit (rad/s²)
Technical details
Formulas
Time needed to reach target speed from rest, calculated directly from the acceleration limit — useful to estimate before planning the trajectory (next lesson):
t_dat_toc_do = v_muc_tieu / a_max
VD: v_muc_tieu = 0.5 m/s, a_max = 1.0 m/s²
t = 0.5 / 1.0 = 0.5 seconds to reach full speed
Distance traveled during acceleration (assuming linear increase):
d = 0.5 × v_muc_tieu × t = 0.5 × 0.5 × 0.5 = 0.125m
Parameters
Typical acc_lim values vary significantly depending on the type of load the AMR is carrying:
| Robot/load type | acc_lim_x typical |
|---|---|
| AMR is light and does not carry fragile goods | 0.5 – 1.5 m/s² |
| AMR carries spillable/fragile cargo (liquids, stacked cargo) | 0.2 – 0.5 m/s² (much lower) |
Practical applications
With cargo AMRs that are particularly sensitive to vibrations (liquid tanks, high-stacked goods that easily fall), even the trapezoidal profile is not smooth enough — the "angle" of the trapezoid (sudden transition from a_max acceleration to 0 acceleration at the start of the cruise) still creates jerk (the rate of change of acceleration) large enough to cause shock. A more advanced solution is the S-curve profile — which further limits jerk, not just acceleration, smoothes the transition angles between the 3 phases of acceleration/cruise/deceleration — the trade-off is that it takes longer to reach the target speed than the regular trapezoidal profile, only worth using when really high smoothness is needed for sensitive goods.
Practical example
def trapezoidal_ramp(v_current, v_target, a_max, dt):
delta = v_target - v_current
max_change = a_max * dt
delta = max(-max_change, min(max_change, delta))
return v_current + delta
v = 0
target = 0.5
a_max = 1.0
dt = 0.1
for step in range(6):
v = trapezoidal_ramp(v, target, a_max, dt)
print(f"Step {step}: v={v:.2f} m/s")
Output:
Step 0: v=0.10 m/s
Step 1: v=0.20 m/s
Step 2: v=0.30 m/s
Step 3: v=0.40 m/s
Step 4: v=0.50 m/s
Step 5: v=0.50 m/s
The speed increases steadily by 0.1 m/s per step (correctly a_max × dt = 1.0 × 0.1), reaching the target after 5 steps and then holding steady — true to the "gradual acceleration then steady" shape of the trapezoidal profile, not jumping at the first step even though the target is known.
Common mistakes
acc_limset too high — the acceleration limit loses all meaning, the robot still jerks almost instantaneously — right back to the problem of wheel slippage/mechanical jerking mentioned in the Main Concepts section.acc_limset too low — the robot reacts too slowly to emergency situations, directly contradicting the reaction distance calculation learned in the lesson Sense-Think-Act — needs to balance between smoothness and safe response, not just optimizing one side.- Only configure the linear acceleration limit, forget the angular limit —
acc_lim_thetaalso needs to be configured separately fromacc_lim_x, without it, the robot rotates jerkily even though straight movement is smooth. - Copy raw
acc_limbetween 2 different robots mass/load — heavier robot needs lower acceleration limit to avoid wheel slippage (larger inertia with same available friction force) — always recalibrate according to the actual physical characteristics of each robot, do not use the same set of numbers.
Conclusion
Acceleration limits convert dangerous "staircase" speeds into smoother, safer "trapezoids" — at the cost of a slightly slower time to target speed. The right balance between quietness and safe response is an important design decision, not just a mere specification. The next article in the category is about Trajectory — how to plan the entire path the robot will follow, where the newly learned acceleration limit is a constraint that must be respected.
Get new articles and lessons by email
When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.
Unsubscribe any time with the link in each email. See our Privacy policy.