Skip to content

Commit

Permalink
Merge pull request #86 from tier4/chore/cherry-pick
Browse files Browse the repository at this point in the history
fix(behavior_velocity): fix segfo at for unstable clock (#1300)
  • Loading branch information
TomohitoAndo authored Jul 12, 2022
2 parents 0823848 + 18d21ab commit d5c7314
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planning/behavior_velocity_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ void BehaviorVelocityPlannerNode::onVehicleVelocity(
break;
}

if (planner_data_.velocity_buffer.empty()) {
break;
}
// Remove old data
planner_data_.velocity_buffer.pop_back();
}
Expand Down

0 comments on commit d5c7314

Please sign in to comment.