Skip to content

Commit

Permalink
feat(pull_out): change pull out finish deviation threshold (#3917)
Browse files Browse the repository at this point in the history
feat(pull_out): change pull out finish deviation threshould

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored Jun 7, 2023
1 parent 8a44d44 commit 68f6f2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,13 +686,13 @@ bool StartPlannerModule::hasFinishedPullOut() const
// are also running at the same time.
const double lateral_offset_to_path =
motion_utils::calcLateralOffset(getCurrentPath().points, current_pose.position);
constexpr double lateral_offset_threshold = 0.5;
constexpr double lateral_offset_threshold = 0.2;
if (std::abs(lateral_offset_to_path) > lateral_offset_threshold) {
return false;
}
const double yaw_deviation =
motion_utils::calcYawDeviation(getCurrentPath().points, current_pose);
constexpr double yaw_deviation_threshold = 0.5;
constexpr double yaw_deviation_threshold = 0.087; // 5deg
if (std::abs(yaw_deviation) > yaw_deviation_threshold) {
return false;
}
Expand Down

0 comments on commit 68f6f2f

Please sign in to comment.