Skip to content

Commit

Permalink
bugfix: max_vel_y >= vy, unless proportional saturation
Browse files Browse the repository at this point in the history
  • Loading branch information
kenomo authored and corot committed Jun 1, 2022
1 parent de2ecde commit 9d91cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/teb_local_planner_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ void TebLocalPlannerROS::saturateVelocity(double& vx, double& vy, double& omega,

// limit strafing velocity
if (vy > max_vel_y || vy < -max_vel_y)
ratio_y = std::abs(vy / max_vel_y);
ratio_y = std::abs(max_vel_y / vy);

// Limit angular velocity
if (omega > max_vel_theta || omega < -max_vel_theta)
Expand Down

0 comments on commit 9d91cf2

Please sign in to comment.