Skip to content

Commit

Permalink
fix(autoware_behavior_path_sampling_planner_module): fix cppcheck unu…
Browse files Browse the repository at this point in the history
…sedVariable (#9190)

Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored Nov 6, 2024
1 parent 312004f commit 22157a0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ bool SamplingPlannerModule::isReferencePathSafe() const
sampling_planner_data.left_bound, sampling_planner_data.right_bound);
}

std::vector<bool> hard_constraints_results;
auto transform_to_sampling_path = [](const PlanResult plan) {
autoware::sampler_common::Path path;
for (size_t i = 0; i < plan->points.size(); ++i) {
Expand Down Expand Up @@ -592,13 +591,11 @@ BehaviorModuleOutput SamplingPlannerModule::plan()
soft_constraints_input.closest_lanelets_to_goal = {closest_lanelet_to_goal};

debug_data_.footprints.clear();
std::vector<std::vector<bool>> hard_constraints_results_full;
std::vector<std::vector<double>> soft_constraints_results_full;
for (auto & path : frenet_paths) {
const auto footprint = autoware::sampler_common::constraints::buildFootprintPoints(
path, internal_params_->constraints);
std::vector<bool> hard_constraints_results =
evaluateHardConstraints(path, internal_params_->constraints, footprint, hard_constraints_);
evaluateHardConstraints(path, internal_params_->constraints, footprint, hard_constraints_);
path.constraint_results.valid_curvature = true;
debug_data_.footprints.push_back(footprint);
std::vector<double> soft_constraints_results = evaluateSoftConstraints(
Expand Down

0 comments on commit 22157a0

Please sign in to comment.