Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
objectslam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
plugins
objectslam
Commits
5be31508
Commit
5be31508
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Resolve merge conflict leftover
parent
d9ee5a95
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/gtest_processor_tracker_landmark_object.cpp
+4
-26
4 additions, 26 deletions
test/gtest_processor_tracker_landmark_object.cpp
with
4 additions
and
26 deletions
test/gtest_processor_tracker_landmark_object.cpp
+
4
−
26
View file @
5be31508
...
...
@@ -402,37 +402,15 @@ TEST_F(ProcessorTrackerLandmarkObject_fixture, matchingRANSAC)
Quaterniond
quat_cam
(
cl_M_ci
.
linear
());
Vector3d
pos_cam
=
cl_M_ci
.
translation
();
<<<<<<<
HEAD
Quaterniond
quat_cam_RANSAC
;
Eigen
::
Matrix3d
wRf_R
=
best_model
.
linear
();
quat_cam_RANSAC
.
coeffs
()
=
R2q
(
wRf_R
).
coeffs
().
transpose
();
Quaterniond
quat_cam_RANSAC
(
best_model
.
linear
());
Vector3d
pos_cam_RANSAC
=
best_model
.
translation
();
//Check if isometry deduced in matching RANSAC is the same as cl_M_ci given
for
(
int
i
=
0
;
i
<
pos_cam
.
size
();
i
++
)
{
ASSERT_TRUE
(
abs
(
pos_cam
[
i
]
-
pos_cam_RANSAC
[
i
])
<
0.0001
);
}
ASSERT_TRUE
(
abs
(
quat_cam
.
x
()
-
quat_cam_RANSAC
.
x
())
<
0.0001
);
ASSERT_TRUE
(
abs
(
quat_cam
.
y
()
-
quat_cam_RANSAC
.
y
())
<
0.0001
);
ASSERT_TRUE
(
abs
(
quat_cam
.
z
()
-
quat_cam_RANSAC
.
z
())
<
0.0001
);
ASSERT_TRUE
(
abs
(
quat_cam
.
w
()
-
quat_cam_RANSAC
.
w
())
<
0.0001
);
//Check if detections of outliers is correct
ASSERT_TRUE
(
outliers_idx
.
size
()
==
2
);
ASSERT_TRUE
(
outliers_idx
[
0
]
==
2
);
ASSERT_TRUE
(
outliers_idx
[
1
]
==
4
);
=======
Quaterniond
quat_cam_RANSAC
(
outliers
.
second
.
linear
());
Vector3d
pos_cam_RANSAC
=
outliers
.
second
.
translation
();
ASSERT_MATRIX_APPROX
(
pos_cam
,
pos_cam_RANSAC
,
1e-6
)
ASSERT_MATRIX_APPROX
(
quat_cam
.
coeffs
(),
quat_cam_RANSAC
.
coeffs
(),
1e-6
)
ASSERT_TRUE
(
outliers
.
first
.
size
()
==
2
);
ASSERT_TRUE
(
outliers
.
first
[
0
]
==
2
);
ASSERT_TRUE
(
outliers
.
first
[
1
]
==
4
);
>>>>>>>
cf5c29b8a52806842bc3265580ac6f701156dba8
ASSERT_TRUE
(
outliers_idx
.
size
()
==
2
);
ASSERT_TRUE
(
outliers_idx
[
0
]
==
2
);
ASSERT_TRUE
(
outliers_idx
[
1
]
==
4
);
}
TEST
(
ProcessorTrackerLandmarkObject
,
isInliers
)
...
...
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