Skip to content

Commit

Permalink
Bugfix navigation.cc
Browse files Browse the repository at this point in the history
Update: Robot vel constrained by velocity tolerance and not distance tolerance
  • Loading branch information
sadanand1120 authored Jan 26, 2023
1 parent 7639201 commit 349c2bc
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 @@ -878,7 +878,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 349c2bc

Please sign in to comment.