Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
laser_scan_utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
labrobotica
algorithms
laser_scan_utils
Commits
8beaf6cf
Commit
8beaf6cf
authored
4 years ago
by
Sergi Pujol
Browse files
Options
Downloads
Patches
Plain Diff
code guidelines
parent
49ced181
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Resolve "Implementation of Falko lib"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/loop_closure_falko.h
+4
-4
4 additions, 4 deletions
src/loop_closure_falko.h
src/scene_falko.h
+2
-2
2 additions, 2 deletions
src/scene_falko.h
test/gtest_loop_closure_falko.cpp
+2
-2
2 additions, 2 deletions
test/gtest_loop_closure_falko.cpp
with
8 additions
and
8 deletions
src/loop_closure_falko.h
+
4
−
4
View file @
8beaf6cf
...
...
@@ -110,10 +110,10 @@ public:
auto
scan_falko
=
convert2LaserScanFALKO
(
_scan
,
_scan_params
);
// Extract keypoints
extract
(
*
scan_falko
,
(
new_scene
->
keypoints
L
ist
));
extract
(
*
scan_falko
,
(
new_scene
->
keypoints
_l
ist
_
));
// Compute descriptors
extractor_
.
compute
(
*
scan_falko
,
new_scene
->
keypoints
L
ist
,
new_scene
->
descriptors
L
ist
);
extractor_
.
compute
(
*
scan_falko
,
new_scene
->
keypoints
_l
ist
_
,
new_scene
->
descriptors
_l
ist
_
);
return
new_scene
;
}
...
...
@@ -136,7 +136,7 @@ public:
sceneFalkoBSCPtr
_scene2
)
{
std
::
vector
<
std
::
pair
<
int
,
int
>>
asso_nn
;
int
matching_number
=
matcher_
.
match
(
_scene1
->
keypoints
L
ist
,
_scene2
->
keypoints
L
ist
,
asso_nn
);
matcher_
.
match
(
_scene1
->
keypoints
_l
ist
_
,
_scene2
->
keypoints
_l
ist
_
,
asso_nn
);
auto
new_match
=
std
::
make_shared
<
matchLoopClosure
<
D
>>
();
new_match
->
keypointsNumberMatch
=
matching_number
;
if
(
matching_number
>
keypoints_number_th_
)
{
...
...
This diff is collapsed.
Click to expand it.
src/scene_falko.h
+
2
−
2
View file @
8beaf6cf
...
...
@@ -33,8 +33,8 @@
namespace
laserscanutils
{
template
<
typename
D
>
struct
sceneFalko
:
public
sceneBase
{
std
::
vector
<
falkolib
::
FALKO
>
keypoints
L
ist
;
std
::
vector
<
D
>
descriptors
L
ist
;
std
::
vector
<
falkolib
::
FALKO
>
keypoints
_l
ist
_
;
std
::
vector
<
D
>
descriptors
_l
ist
_
;
};
}
/* namespace laserscanutils */
...
...
This diff is collapsed.
Click to expand it.
test/gtest_loop_closure_falko.cpp
+
2
−
2
View file @
8beaf6cf
...
...
@@ -27,8 +27,8 @@ TEST(loop_closure_falko, TestLoopClosureFalkoAllFunctions) {
// Test extractScene
auto
new_scene
=
loop_cl_falko
.
extractScene
(
scan
,
laser_params
);
int
detectedKeypoints
=
new_scene
->
keypoints
L
ist
.
size
();
int
detectedDescriptors
=
new_scene
->
descriptors
L
ist
.
size
();
int
detectedKeypoints
=
new_scene
->
keypoints
_l
ist
_
.
size
();
int
detectedDescriptors
=
new_scene
->
descriptors
_l
ist
_
.
size
();
ASSERT_EQ
(
detectedKeypoints
,
18
);
ASSERT_EQ
(
detectedDescriptors
,
18
);
...
...
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