Skip to content

Commit

Permalink
fix(simple pure pursuit): last stop (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhisaki authored Nov 29, 2023
1 parent 3309c90 commit 27763db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ void SimplePurePursuit::onTimer()
if (
(closet_traj_point_idx == trajectory_->points.size() - 1) ||
(trajectory_->points.size() <= 5)) {
cmd.longitudinal.speed = 0.0;
cmd.longitudinal.acceleration = -10.0;
RCLCPP_INFO_THROTTLE(get_logger(), *get_clock(), 1000 /*ms*/, "reached to the goal");
} else {
// get closest trajectory point from current position
Expand Down

0 comments on commit 27763db

Please sign in to comment.