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
c318529d
Commit
c318529d
authored
6 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Debug info
parent
087f62ee
No related branches found
No related tags found
1 merge request
!233
WIP: Apriltag
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processors/processor_tracker_landmark_apriltag.cpp
+10
-1
10 additions, 1 deletion
src/processors/processor_tracker_landmark_apriltag.cpp
with
10 additions
and
1 deletion
src/processors/processor_tracker_landmark_apriltag.cpp
+
10
−
1
View file @
c318529d
...
@@ -168,6 +168,13 @@ void ProcessorTrackerLandmarkApriltag::preProcess()
...
@@ -168,6 +168,13 @@ void ProcessorTrackerLandmarkApriltag::preProcess()
// M_april = umich_pose_estimation(det, cv_K_, tag_width);
// M_april = umich_pose_estimation(det, cv_K_, tag_width);
//////////////////
//////////////////
WOLF_DEBUG
(
"ippe1
\n
"
,
M_ippe1
.
matrix
());
WOLF_DEBUG
(
"ippe2
\n
"
,
M_ippe2
.
matrix
());
// WOLF_DEBUG("M_PnP\n", M_PnP .matrix());
// WOLF_DEBUG("M_april\n", M_april .matrix());
c_M_t
=
M_ippe1
;
// set the measured pose vector
// set the measured pose vector
Eigen
::
Vector3s
translation
(
c_M_t
.
translation
()
);
// translation vector in apriltag meters
Eigen
::
Vector3s
translation
(
c_M_t
.
translation
()
);
// translation vector in apriltag meters
Eigen
::
Vector7s
pose
;
Eigen
::
Vector7s
pose
;
...
@@ -182,9 +189,11 @@ void ProcessorTrackerLandmarkApriltag::preProcess()
...
@@ -182,9 +189,11 @@ void ProcessorTrackerLandmarkApriltag::preProcess()
// Put a very high covariance on angles measurements
// Put a very high covariance on angles measurements
cov
.
bottomRightCorner
(
3
,
3
)
=
1000000
*
Eigen
::
Matrix3s
::
Identity
();
cov
.
bottomRightCorner
(
3
,
3
)
=
1000000
*
Eigen
::
Matrix3s
::
Identity
();
}
}
WOLF_TRACE
(
"cov
\n
"
,
cov
);
WOLF_TRACE
(
"cov
diagonal: ["
,
cov
.
diagonal
(),
"]"
);
// add to detected features list
// add to detected features list
detections_incoming_
.
push_back
(
std
::
make_shared
<
FeatureApriltag
>
(
pose
,
cov
.
inverse
(),
tag_id
,
*
det
,
FeatureBase
::
UncertaintyType
::
UNCERTAINTY_IS_INFO
));
detections_incoming_
.
push_back
(
std
::
make_shared
<
FeatureApriltag
>
(
pose
,
cov
.
inverse
(),
tag_id
,
*
det
,
FeatureBase
::
UncertaintyType
::
UNCERTAINTY_IS_INFO
));
WOLF_TRACE
(
"---------------------
\n
"
);
}
}
apriltag_detections_destroy
(
detections
);
apriltag_detections_destroy
(
detections
);
...
...
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