Skip to content

Commit

Permalink
apply termination criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Apr 8, 2024
1 parent ae2f3cb commit 7b9b760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ if(BUILD_BENCHMARKS)
src/benchmark/odometry_benchmark_fast_gicp.cpp
src/benchmark/odometry_benchmark_fast_vgicp.cpp
src/benchmark/odometry_benchmark_small_gicp.cpp
src/benchmark/odometry_benchmark_small_gicp_pcl.cpp
src/benchmark/odometry_benchmark_small_gicp_omp.cpp
src/benchmark/odometry_benchmark_small_vgicp_omp.cpp
src/benchmark/odometry_benchmark_small_gicp_tbb.cpp
Expand Down
2 changes: 2 additions & 0 deletions include/small_gicp/pcl/pcl_registration_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ void RegistrationPCL<PointSource, PointTarget>::computeTransformation(PointCloud
}

Registration<GICPFactor, ParallelReductionOMP> registration;
registration.criteria.rotation_eps = rotation_epsilon_;
registration.criteria.translation_eps = transformation_epsilon_;
registration.reduction.num_threads = num_threads_;
registration.rejector.max_dist_sq = corr_dist_threshold_ * corr_dist_threshold_;
registration.optimizer.verbose = verbose_;
Expand Down

0 comments on commit 7b9b760

Please sign in to comment.