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
!219
Formatting and doc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Formatting and doc
hello_wolf
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Joan Solà Ortega
requested to merge
hello_wolf
into
master
6 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
cebc8da0
1 commit,
6 years ago
1 file
+
12
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/hello_wolf/hello_wolf.cpp
+
12
−
9
Options
@@ -100,7 +100,7 @@ int main()
* - Second, using random values
* Both solutions must produce the same exact values as in the sketches above.
*
* Optionally, the user can opt to self-calibrate the sensor's orientation (see NOTE within the code around Line 1
42
)
* Optionally, the user can opt to self-calibrate the sensor's orientation (see NOTE within the code around Line 1
51
)
*
* (c) 2017 Joan Sola @ IRI-CSIC
*/
@@ -137,20 +137,23 @@ int main()
intrinsics_rb
->
noise_bearing_degrees_std
=
1.0
;
SensorBasePtr
sensor_rb
=
problem
->
installSensor
(
"RANGE BEARING"
,
"sensor RB"
,
Vector3s
(
1
,
1
,
0
),
intrinsics_rb
);
// processor Range and Bearing
ProcessorParamsRangeBearingPtr
params_rb
=
std
::
make_shared
<
ProcessorParamsRangeBearing
>
();
params_rb
->
voting_active
=
false
;
params_rb
->
time_tolerance
=
0.01
;
ProcessorBasePtr
processor_rb
=
problem
->
installProcessor
(
"RANGE BEARING"
,
"processor RB"
,
sensor_rb
,
params_rb
);
// SELF CALIBRATION ===================================================
// NOTE: SELF-CALIBRATION OF SENSOR ORIENTATION
// Uncomment this line below to achieve sensor self-calibration (of the orientation only, since the position is not observable)
//
sensor_rb->getOPtr()->unfix();
sensor_rb
->
getOPtr
()
->
unfix
();
// NOTE: SELF-CALIBRATION OF SENSOR POSITION
// The position is however not observable, and thus self-calibration would not work. You can try uncommenting it too.
// sensor_rb->getPPtr()->unfix();
// processor Range and Bearing
ProcessorParamsRangeBearingPtr
params_rb
=
std
::
make_shared
<
ProcessorParamsRangeBearing
>
();
params_rb
->
voting_active
=
false
;
params_rb
->
time_tolerance
=
0.01
;
ProcessorBasePtr
processor_rb
=
problem
->
installProcessor
(
"RANGE BEARING"
,
"processor RB"
,
sensor_rb
,
params_rb
);
// CONFIGURE ==========================================================
@@ -276,7 +279,7 @@ int main()
*
* - Observe that all other KFs and Lmks are correct.
*
* - Try self-calibrating the sensor orientation by uncommenting line 1
42
(well, around 1
42
)
* - Try self-calibrating the sensor orientation by uncommenting line 1
51
(well, around 1
51
)
*
*/
Loading