Acceleration tuning: too little acc_lim_x causes sluggishness, too much causes jerks
Atlasbot · 17/8/2026 · 11 min read
The article The acceleration limit explained the trapezoidal velocity profile and the formula v(t) = v(t-1) + clamp(..., -a_max·dt, +a_max·dt). In Nav2, a_max is the two-parameter acc_lim_x/decel_lim_x.
Key concepts
FollowPath:
acc_lim_x: 1.0 # maximal linear acceleration (m/s²)
decel_lim_x: -1.5 # max decelerate (usually allowed greater than acclimx)
acc_lim_theta: 2.0 # maximum angular acceleration (rad/s²)
acc_lim_x is so low that the robot "uh" — takes so long to reach the desired speed after each stop/discharge that the total task completion time increases even though max_vel_x (past) is set high enough. acc_lim_x is so high that the controller orders speed changes faster than the motor/driver real-world ability to respond.
How it works
acc_lim_x (acceleration): limited by the torque the motor can actually generate
decel_lim_x (deceleration): can also use friction + motor braking,
so its magnitude is often larger than active acceleration
Many real-world configurations place decel_lim_x (absolute value) slightly larger than acc_lim_x — robots decelerate faster at acceleration, are reasonably safe (prioritizing the ability to stop faster than the ability to accelerate faster), and are generally more feasible mechanically.
Summarized:
acc_lim_xis so high that the controller ordering speed changes faster than the real-world ability of the motor/driver response — driver can overwhelm the immediate current (mentioned in Motor Driver ) or cause the wheel slip to distort the odometry.
Technical details
Formulas
Measuring real-world rather than guessing — how to reasonably define acc_lim_x for specific robots:
Send a step cmd_vel command to v_target and measure time t to reach the actual v_target
(using encoder/odometry, without wheel slip)
Actual_acc_lim_x ≈ v_target / t
Example: command v_target = 0.3 m/s; odometry reaches 0.3 m/s after 0.4 seconds
Actual_acc_lim_x ≈ 0.3 / 0.4 = 0.75 m/s²
Set acc_lim_x in params.yaml LOWER than this measured value
(for example, 0.6-0.7 m/s²) to leave margin and avoid exceeding actual capability
Parameters
| Parameters | Effects when too low | Effects when too high |
|---|---|---|
acc_lim_x | Robot "uh", slow to desired speed | Driver overloaded immediate line, sliding wheel |
decel_lim_x | Robot slows down, longer braking distance. | Stops quickly, may cause jerks/slips |
acc_lim_theta | Cloudy with a tendency to sway on a high - speed drive. | Twirl, easy to slide the wheel when rotating |
Practical applications
Low acceleration causes the robot to react more slowly to the emerging obstacle (the time from the decision to decelerate to the actual slowdown lasts longer) — needs to be weighed together with inflation_radius (the Costmap ): slow accelerator/decelerator robots should have a wider safety buffer (inflation) to compensate for that slow reaction time. This is a specific example where the non-independent tuning parameters — changes acc_lim_x may need to revisit both inflation_radius to keep the overall safety level equivalent.
Practical example
# Measuring the robot's real - world acceleration
ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "{linear: {x: 0.3}}" --once
ros2 topic echo /odom # observe real-world speed ascending over time
Typical measurement log:
t=0.0s: v=0.00 m/s
t=0.1s: v=0.09 m/s
t=0.2s: v=0.17 m/s
t=0.3s: v=0.24 m/s
t=0.4s: v=0.30 m/s <- reaches v_target
Actual_acc_lim_x ≈ 0.3/0.4 = 0.75 m/s²
Set in params.yaml: acc_lim_x: 0.6 (leave ~20% margin below the measurement)
Common mistakes
- Set
acc_lim_xemotionally instead of measuring the real-world— as in the Formula section, using unfounded numbers that can lead to robot "uh" (too low) or driver overload (too high). - Setting
decel_lim_xwithacc_lim_x— misses the advantage that robots typically decelerate faster than accelerates with friction + motor brakes, causing robots to brake slower than real-world capabilities allow. - Do not revisit
inflation_radiuswhen changing— acceleration as stated in the Real-world Application section, low acceleration needs wider safety buffer to compensate for slow reaction times. - Measurement of real-world acceleration on surfaces not representative of real operating environments— measuring on smooth laboratory floors then applied to warehousing environments with differential friction gives misleading results.
Conclusion
acc_lim_x/decel_lim_x is a_max of the trapezoidal velocity profile formula learned in the Acceleration limit — should determine by real-world measurement (sending cmd_vel, observing odometry), not guessing, and should be considered at the same time as inflation_radius Because the two parameters influence each other in terms of overall safety. The next article in the column goes into Tuning Rotation — the rotation parameter has its own particular phenomenon that is worthy of more discussion.
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.