Skip to content

Commit 4ffd41c

Browse files
authored
refactor(ndt_scan_matcher): remove unread variable (#7061)
remove unread variable Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent bf4edc5 commit 4ffd41c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -464,17 +464,14 @@ bool NDTScanMatcher::callback_sensor_points_main(
464464
diagnostics_scan_points_->addKeyValue("transform_probability", ndt_result.transform_probability);
465465
diagnostics_scan_points_->addKeyValue(
466466
"nearest_voxel_transformation_likelihood", ndt_result.nearest_voxel_transformation_likelihood);
467-
std::string score_name = "";
468467
double score = 0.0;
469468
double score_threshold = 0.0;
470469
if (param_.score_estimation.converged_param_type == ConvergedParamType::TRANSFORM_PROBABILITY) {
471-
score_name = "Transform Probability";
472470
score = ndt_result.transform_probability;
473471
score_threshold = param_.score_estimation.converged_param_transform_probability;
474472
} else if (
475473
param_.score_estimation.converged_param_type ==
476474
ConvergedParamType::NEAREST_VOXEL_TRANSFORMATION_LIKELIHOOD) {
477-
score_name = "Nearest Voxel Transformation Likelihood";
478475
score = ndt_result.nearest_voxel_transformation_likelihood;
479476
score_threshold =
480477
param_.score_estimation.converged_param_nearest_voxel_transformation_likelihood;

0 commit comments

Comments
 (0)