Skip to content
6 changes: 3 additions & 3 deletions apps/lidar_odometry_step_1/lidar_odometry_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ void optimize_lidar_odometry(
bool ablation_study_use_hierarchical_rgd,
bool ablation_study_use_view_point_and_normal_vectors,
LookupStats& lookup_stats,
const bool &ablation_study_use_threshold_outer_rgd,
const double &convergence_result,
const double &convergence_delta_threshold_outer_rgd);
const bool& ablation_study_use_threshold_outer_rgd,
const double& convergence_result,
const double& convergence_delta_threshold_outer_rgd);

void optimize_sf(
std::vector<Point3Di>& intermediate_points,
Expand Down
26 changes: 13 additions & 13 deletions apps/lidar_odometry_step_1/lidar_odometry_utils_optimizers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1669,10 +1669,9 @@ static void compute_hessian(
Eigen::MatrixXd& AtPAndt,
Eigen::MatrixXd& AtPBndt,
LookupStats& stats,
const bool &ablation_study_use_threshold_outer_rgd,
const double &convergence_result,
const double &convergence_delta_threshold_outer_rgd
)
const bool& ablation_study_use_threshold_outer_rgd,
const double& convergence_result,
const double& convergence_delta_threshold_outer_rgd)
{
const double range_squared = point.point.squaredNorm();

Expand Down Expand Up @@ -1716,15 +1715,16 @@ static void compute_hessian(
bool check_threshold_outdoor_rgd = true;
if (ablation_study_use_threshold_outer_rgd)
{
//const bool ablation_study_use_threshold_outer,
//const double convergence_delta_threshold_outer_rgd,
//const double convergence_result)
// const bool ablation_study_use_threshold_outer,
// const double convergence_delta_threshold_outer_rgd,
// const double convergence_result)

//janusz
// janusz

if(convergence_result > convergence_delta_threshold_outer_rgd){
if (convergence_result > convergence_delta_threshold_outer_rgd)
{
check_threshold_outdoor_rgd = false;
//std::cout << "do not use out " << std::endl;
// std::cout << "do not use out " << std::endl;
}
}

Expand Down Expand Up @@ -1780,9 +1780,9 @@ void optimize_lidar_odometry(
bool ablation_study_use_hierarchical_rgd,
bool ablation_study_use_view_point_and_normal_vectors,
LookupStats& lookup_stats,
const bool &ablation_study_use_threshold_outer_rgd,
const double &convergence_result,
const double &convergence_delta_threshold_outer_rgd)
const bool& ablation_study_use_threshold_outer_rgd,
const double& convergence_result,
const double& convergence_delta_threshold_outer_rgd)
{
UTL_PROFILER_SCOPE("optimize_lidar_odometry");
UTL_PROFILER_BEGIN(pre_hessian, "pre_hessian");
Expand Down
4 changes: 2 additions & 2 deletions apps/lidar_odometry_step_1/toml_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ bool TomlIO::SaveParametersToTomlFile(const std::string& filepath, const LidarOd
out << "[ablacion study]" << std::endl;
out << "ablation_study_use_norm = " << (params.ablation_study_use_norm ? "true" : "false") << std::endl;
out << "ablation_study_use_hierarchical_rgd = " << (params.ablation_study_use_hierarchical_rgd ? "true" : "false") << std::endl;
out << "ablation_study_use_view_point_and_normal_vectors = " << (params.ablation_study_use_view_point_and_normal_vectors ? "true" : "false") << std::endl;
out << "ablation_study_use_view_point_and_normal_vectors = "
<< (params.ablation_study_use_view_point_and_normal_vectors ? "true" : "false") << std::endl;
out << "ablation_study_use_threshold_outdoor_rgd = " << (params.ablation_study_use_threshold_outer_rgd ? "true" : "false") << std::endl;
out << std::endl;


// Remove version_info from tbl to avoid duplication since we write it manually
tbl.erase("version_info");

Expand Down
Loading