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
Commits
01618463
Commit
01618463
authored
4 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
demos...
parent
792aca61
No related branches found
No related tags found
1 merge request
!383
Resolve "CeresManager params/autoconf"
Pipeline
#5707
failed
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
demos/demo_analytic_autodiff_factor.cpp
+6
-4
6 additions, 4 deletions
demos/demo_analytic_autodiff_factor.cpp
demos/hello_wolf/hello_wolf.cpp
+3
-4
3 additions, 4 deletions
demos/hello_wolf/hello_wolf.cpp
with
9 additions
and
8 deletions
demos/demo_analytic_autodiff_factor.cpp
+
6
−
4
View file @
01618463
...
...
@@ -62,12 +62,14 @@ int main(int argc, char** argv)
SensorBasePtr
sensor
=
new
SensorBase
(
"ODOM 2d"
,
std
::
make_shared
<
StateBlock
>
(
Eigen
::
VectorXd
::
Zero
(
2
)),
std
::
make_shared
<
StateBlock
>
(
Eigen
::
VectorXd
::
Zero
(
1
)),
std
::
make_shared
<
StateBlock
>
(
Eigen
::
VectorXd
::
Zero
(
2
)),
2
);
// Ceres wrapper
ceres
::
Solver
::
Options
ceres_options
;
ceres_options
.
minimizer_type
=
ceres
::
TRUST_REGION
;
//ceres::TRUST_REGION;LINE_SEARCH
ceres_options
.
max_line_search_step_contraction
=
1e-3
;
ceres_options
.
max_num_iterations
=
1e4
;
SolverCeres
*
ceres_manager_autodiff
=
new
SolverCeres
(
wolf_problem_autodiff
,
ceres_options
);
SolverCeres
*
ceres_manager_analytic
=
new
SolverCeres
(
wolf_problem_analytic
,
ceres_options
);
ceres_manager_autodiff
.
getSolverOptions
().
minimizer_type
=
ceres
::
TRUST_REGION
;
//ceres::TRUST_REGION;LINE_SEARCH
ceres_manager_autodiff
.
getSolverOptions
().
max_line_search_step_contraction
=
1e-3
;
ceres_manager_autodiff
.
getSolverOptions
().
max_num_iterations
=
1e4
;
ceres_manager_analytic
.
getSolverOptions
().
minimizer_type
=
ceres
::
TRUST_REGION
;
//ceres::TRUST_REGION;LINE_SEARCH
ceres_manager_analytic
.
getSolverOptions
().
max_line_search_step_contraction
=
1e-3
;
ceres_manager_analytic
.
getSolverOptions
().
max_num_iterations
=
1e4
;
// load graph from .txt
offLineFile_
.
open
(
file_path_
.
c_str
(),
std
::
ifstream
::
in
);
...
...
This diff is collapsed.
Click to expand it.
demos/hello_wolf/hello_wolf.cpp
+
3
−
4
View file @
01618463
...
...
@@ -104,12 +104,11 @@ int main()
// Wolf problem and solver
ProblemPtr
problem
=
Problem
::
create
(
"PO"
,
2
);
ceres
::
Solver
::
Options
options
;
options
.
max_num_iterations
=
1000
;
// We depart far from solution, need a lot of iterations
SolverCeresPtr
ceres
=
std
::
make_shared
<
SolverCeres
>
(
problem
,
options
);
SolverCeresPtr
ceres
=
std
::
make_shared
<
SolverCeres
>
(
problem
);
ceres
.
getSolverOptions
().
max_num_iterations
=
1000
;
// We depart far from solution, need a lot of iterations
// sensor odometer 2d
ParamsSensorOdom2dPtr
intrinsics_odo
=
std
::
make_shared
<
ParamsSensorOdom2d
>
();
ParamsSensorOdom2dPtr
intrinsics_odo
=
std
::
make_shared
<
ParamsSensorOdom2d
>
();
SensorBasePtr
sensor_odo
=
problem
->
installSensor
(
"SensorOdom2d"
,
"sensor odo"
,
Vector3d
(
0
,
0
,
0
),
intrinsics_odo
);
// processor odometer 2d
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment