Skip to content

Commit

Permalink
fix(behavior_path_planner): fix reservation of predicted path (autowa…
Browse files Browse the repository at this point in the history
…refoundation#474)

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
  • Loading branch information
rej55 authored and satoshi-ota committed May 20, 2022
1 parent 70e8487 commit 4096fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/behavior_path_planner/src/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ PredictedPath convertToPredictedPath(
{
PredictedPath predicted_path{};
predicted_path.time_step = rclcpp::Duration::from_seconds(resolution);
predicted_path.path.reserve(path.points.size());
predicted_path.path.reserve(std::min(path.points.size(), static_cast<size_t>(100)));
if (path.points.empty()) {
return predicted_path;
}
Expand Down

0 comments on commit 4096fe4

Please sign in to comment.