Skip to content

Commit 0e83907

Browse files
kenomocorot
authored andcommitted
bugfix: max_vel_y >= vy, unless proportional saturation
1 parent 56e0e0f commit 0e83907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/teb_local_planner_ros.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ void TebLocalPlannerROS::saturateVelocity(double& vx, double& vy, double& omega,
878878

879879
// limit strafing velocity
880880
if (vy > max_vel_y || vy < -max_vel_y)
881-
ratio_y = std::abs(vy / max_vel_y);
881+
ratio_y = std::abs(max_vel_y / vy);
882882

883883
// Limit angular velocity
884884
if (omega > max_vel_theta || omega < -max_vel_theta)

0 commit comments

Comments
 (0)