Skip to content

Commit

Permalink
Merge pull request #44 from ut-amrl/navigation-bugfix-vel-tol
Browse files Browse the repository at this point in the history
Bugfix navigation.cc
  • Loading branch information
OAHC2022 authored May 1, 2023
2 parents 5374d16 + 349c2bc commit 1d66b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navigation/navigation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ bool Navigation::Run(const double& time,
prev_state = nav_state_;
if (nav_state_ == NavigationState::kGoto &&
local_target_.squaredNorm() < Sq(params_.target_dist_tolerance) &&
robot_vel_.squaredNorm() < Sq(params_.target_dist_tolerance)) {
robot_vel_.squaredNorm() < Sq(params_.target_vel_tolerance)) {
nav_state_ = NavigationState::kTurnInPlace;
} else if (nav_state_ == NavigationState::kTurnInPlace &&
AngleDist(robot_angle_, nav_goal_angle_) <
Expand Down

0 comments on commit 1d66b2e

Please sign in to comment.