Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Merge requests
!109
Ceres new api
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Ceres new api
ceres_new_api
into
master
Overview
0
Commits
4
Pipelines
0
Changes
2
Merged
Joan Vallvé Navarro
requested to merge
ceres_new_api
into
master
7 years ago
Overview
0
Commits
4
Pipelines
0
Changes
2
Expand
TODO: check if it works with your old ceres version (I have new one and it works fine).
0
0
Merge request reports
Compare
master
version 2
5aaf57de
7 years ago
version 1
78f26a69
7 years ago
master (base)
and
latest version
latest version
c82d9e1b
4 commits,
7 years ago
version 2
5aaf57de
3 commits,
7 years ago
version 1
78f26a69
2 commits,
7 years ago
2 files
+
9
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/ceres_wrapper/ceres_manager.cpp
+
8
−
3
Options
@@ -11,15 +11,20 @@ CeresManager::CeresManager(ProblemPtr _wolf_problem, const ceres::Solver::Option
use_wolf_auto_diff_
(
_use_wolf_auto_diff
)
{
ceres
::
Covariance
::
Options
covariance_options
;
#if CERES_VERSION_MINOR >= 10
covariance_options
.
algorithm_type
=
ceres
::
SPARSE_QR
;
//ceres::DENSE_SVD;
#else
covariance_options
.
algorithm_type
=
ceres
::
SUITE_SPARSE_QR
;
//ceres::DENSE_SVD;
covariance_options
.
num_threads
=
8
;
//ceres::DENSE_SVD;
#endif
covariance_options
.
num_threads
=
8
;
covariance_options
.
apply_loss_function
=
false
;
//covariance_options.null_space_rank = -1;
covariance_
=
new
ceres
::
Covariance
(
covariance_options
);
ceres
::
Problem
::
Options
problem_options
;
problem_options
.
cost_function_ownership
=
ceres
::
TAKE_OWNERSHIP
;
problem_options
.
loss_function_ownership
=
ceres
::
TAKE_OWNERSHIP
;
//ceres::DO_NOT_TAKE_OWNERSHIP;
problem_options
.
cost_function_ownership
=
ceres
::
DO_NOT_TAKE_OWNERSHIP
;
problem_options
.
loss_function_ownership
=
ceres
::
TAKE_OWNERSHIP
;
problem_options
.
local_parameterization_ownership
=
ceres
::
DO_NOT_TAKE_OWNERSHIP
;
ceres_problem_
=
new
ceres
::
Problem
(
problem_options
);
}
Loading