Skip to content

Commit

Permalink
add stop vehicle check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigekazu Fukuta committed Dec 13, 2023
1 parent 14dcef0 commit e72b474
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planning/obstacle_stop_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ void ObstacleStopPlannerNode::searchObstacle(

const auto now = this->now();

updateObstacleHistory(now);
if (current_velocity_ptr ->twist.twist.linear.x == 0){
updateObstacleHistory(now);
}

for (size_t i = 0; i < decimate_trajectory.size() - 1; ++i) {
// create one step circle center for vehicle
Expand Down

0 comments on commit e72b474

Please sign in to comment.