Skip to content

Commit

Permalink
fix stop velocity threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigekazu Fukuta committed Dec 15, 2023
1 parent b59f158 commit 87ef309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/obstacle_stop_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ void ObstacleStopPlannerNode::searchObstacle(

const auto now = this->now();

if (current_velocity_ptr->twist.twist.linear.x == 0) {
if (std::fabs(current_velocity_ptr->twist.twist.linear.x) < 1e-9) {
updateObstacleHistory(now);
}

Expand Down

0 comments on commit 87ef309

Please sign in to comment.