Skip to content

Commit

Permalink
fix 16.04 compile, default should be SPARSE_QR
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbattle committed Jun 8, 2023
1 parent 2d5ed9a commit ef899cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ov_init/src/dynamic/DynamicInitializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,8 @@ bool DynamicInitializer::initialize(double &timestamp, Eigen::MatrixXd &covarian
ceres::Covariance::Options options_cov;
options_cov.null_space_rank = (!params.init_dyn_mle_opt_calib) * ((int)map_calib_cam2imu.size() * (6 + 8));
options_cov.min_reciprocal_condition_number = params.init_dyn_min_rec_cond;
options_cov.algorithm_type = ceres::CovarianceAlgorithmType::SPARSE_QR; // SPARSE_QR, DENSE_SVD
options_cov.apply_loss_function = true; // Better consistency if we use this
// options_cov.algorithm_type = ceres::CovarianceAlgorithmType::DENSE_SVD;
options_cov.apply_loss_function = true; // Better consistency if we use this
options_cov.num_threads = params.init_dyn_mle_max_threads;
ceres::Covariance problem_cov(options_cov);
bool success = problem_cov.Compute(covariance_blocks, &problem);
Expand Down

0 comments on commit ef899cd

Please sign in to comment.