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
3957b540
Commit
3957b540
authored
6 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Add map corresponding to logitech dataset
parent
10728286
No related branches found
No related tags found
1 merge request
!233
WIP: Apriltag
Pipeline
#2380
passed
6 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/examples/maps/map_apriltag_logitech_1234.yaml
+46
-0
46 additions, 0 deletions
src/examples/maps/map_apriltag_logitech_1234.yaml
src/examples/test_apriltag.cpp
+4
-1
4 additions, 1 deletion
src/examples/test_apriltag.cpp
with
50 additions
and
1 deletion
src/examples/maps/map_apriltag_logitech_1234.yaml
0 → 100644
+
46
−
0
View file @
3957b540
map name
:
"
4
tags
printed
on
a
A4
sheet
vertical
recorded
at
IRI
with
logitech
webcam."
nlandmarks
:
4
# This must match the number of landmarks in the list that follows. Otherwise it is an error.
######################
# World frame is considered to be at 75cm from the sheet with RDF convention (like a camera).
# Landmarks facing the Z axis (view axis of the camera) have the same orientation as world frame.
######################
landmarks
:
-
id
:
0
# use same as tag id
type
:
"
APRILTAG"
# This must match the KEY used in the LandmarkFactory. Otherwise it is an error.
tag id
:
0
tag width
:
0.055
position
:
[
-0.061
,
-0.185
,
0.75
]
orientation
:
[
0
,
0
,
0
]
# roll pitch yaw in degrees
position fixed
:
true
orientation fixed
:
true
-
id
:
1
# use same as tag id
type
:
"
APRILTAG"
# This must match the KEY used in the LandmarkFactory. Otherwise it is an error.
tag id
:
1
tag width
:
0.055
position
:
[
0.061
,
-0.185
,
0.75
]
orientation
:
[
0
,
0
,
0
]
# roll pitch yaw in degrees
position fixed
:
true
orientation fixed
:
true
-
id
:
2
# use same as tag id
type
:
"
APRILTAG"
# This must match the KEY used in the LandmarkFactory. Otherwise it is an error.
tag id
:
2
tag width
:
0.055
position
:
[
-0.061
,
0
,
0.75
]
orientation
:
[
0
,
0
,
0
]
# roll pitch yaw in degrees
position fixed
:
true
orientation fixed
:
true
-
id
:
3
# use same as tag id
type
:
"
APRILTAG"
# This must match the KEY used in the LandmarkFactory. Otherwise it is an error.
tag id
:
3
tag width
:
0.055
position
:
[
0.061
,
0
,
0.75
]
orientation
:
[
0
,
0
,
0
]
# roll pitch yaw in degrees
position fixed
:
true
orientation fixed
:
true
This diff is collapsed.
Click to expand it.
src/examples/test_apriltag.cpp
+
4
−
1
View file @
3957b540
...
...
@@ -59,14 +59,17 @@ int main(int argc, char *argv[])
SensorCameraPtr
sen_cam
=
std
::
static_pointer_cast
<
SensorCamera
>
(
sen
);
ProcessorBasePtr
prc
=
problem
->
installProcessor
(
"TRACKER LANDMARK APRILTAG"
,
"apriltags"
,
"camera"
,
wolf_root
+
"/src/examples/processor_tracker_landmark_apriltag.yaml"
);
std
::
cout
<<
wolf_root
+
"/src/examples/maps/map_apriltag_logitech.yaml"
<<
std
::
endl
;
problem
->
loadMap
(
wolf_root
+
"/src/examples/maps/map_apriltag_logitech_1234.yaml"
);
// set prior
Eigen
::
Matrix6s
covariance
=
Matrix6s
::
Identity
();
Scalar
stdev_m
=
0.00001
;
// standard deviation on original translation
Scalar
stdev_deg
=
0.00001
;
// standard deviation on original rotation
covariance
.
topLeftCorner
(
3
,
3
)
=
stdev_m
*
stdev_m
*
covariance
.
topLeftCorner
(
3
,
3
);
covariance
.
bottomRightCorner
(
3
,
3
)
=
(
M_TORAD
*
stdev_deg
)
*
(
M_TORAD
*
stdev_deg
)
*
covariance
.
bottomRightCorner
(
3
,
3
);
FrameBasePtr
F1
=
problem
->
setPrior
((
Vector7s
()
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
).
finished
(),
covariance
,
0.0
,
0.1
);
FrameBasePtr
F1
=
problem
->
setPrior
((
Vector7s
()
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
).
finished
(),
covariance
,
0.0
,
0.1
);
// first argument is the name of the program.
// following arguments are path to image (from wolf_root)
...
...
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