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
9bb1be54
Commit
9bb1be54
authored
4 years ago
by
Sergi Pujol
Browse files
Options
Downloads
Patches
Plain Diff
work in progress
parent
c0889682
No related branches found
No related tags found
1 merge request
!4
Resolve "Implementation of Falko lib"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/loop_closure_falko.h
+13
-7
13 additions, 7 deletions
src/loop_closure_falko.h
src/match_loop_closure.h
+0
-1
0 additions, 1 deletion
src/match_loop_closure.h
with
13 additions
and
8 deletions
src/loop_closure_falko.h
+
13
−
7
View file @
9bb1be54
...
...
@@ -63,7 +63,7 @@ struct ParameterLoopClosureFalko {
// matcher threshold Default
double
matcher_distance_th_
=
0.2
;
int
keypoints_number_th_
=
5
;
int
match_type
=
1
;
// match_type=1-> uses keypoints and descriptors for
int
match_type
_
=
1
;
// match_type=1-> uses keypoints and descriptors for
// matching. match_type=2-> uses only keypoints for
// matching
...
...
@@ -110,6 +110,7 @@ public:
matcher_
.
setDistanceThreshold
(
_param
.
matcher_distance_th_
);
//matcher_desc_.setDistanceThreshold(_param.matcher_distance_th_);
keypoints_number_th_
=
_param
.
keypoints_number_th_
;
match_type_
=
_param
.
match_type_
;
};
/** \brief Destructor
...
...
@@ -152,23 +153,24 @@ public:
std
::
vector
<
std
::
pair
<
int
,
int
>>
asso_nn
;
auto
scene_1_falko
=
std
::
static_pointer_cast
<
SceneFalko
<
D
>>
(
_scene_1
);
auto
scene_2_falko
=
std
::
static_pointer_cast
<
SceneFalko
<
D
>>
(
_scene_2
);
int
match_type
=
1
;
int
matching_number
;
if
(
match_type
=
1
)
{
if
(
match_type
_
=
=
1
)
{
matching_number
=
matcher_
.
match
(
scene_1_falko
->
keypoints_list_
,
scene_2_falko
->
keypoints_list_
,
asso_nn
);
}
else
if
(
match_type
=
2
)
{
std
::
cout
<<
"AAAA"
<<
std
::
endl
;
}
else
if
(
match_type
_
=
=
2
)
{
matching_number
=
matcher_
.
match
(
scene_1_falko
->
keypoints_list_
,
scene_1_falko
->
descriptors_list_
,
scene_2_falko
->
keypoints_list_
,
scene_2_falko
->
descriptors_list_
,
asso_nn
);
std
::
cout
<<
"BBB"
<<
std
::
endl
;
}
/*else if (match_type = 3) {
}
/*else if (match_type
_
= 3) {
matching_number = matcher_desc_.match(scene_1_falko->descriptors_list_,
scene_2_falko->descriptors_list_, asso_nn);
}
*/
std
::
cout
<<
"matching_number : "
<<
matching_number
<<
std
::
endl
;
auto
new_match
=
std
::
make_shared
<
MatchLoopClosure
>
();
new_match
->
keypoints_number_match
=
matching_number
;
if
(
matching_number
>
keypoints_number_th_
)
{
...
...
@@ -182,7 +184,10 @@ public:
new_match
->
score
=
(
double
)
matching_number
/
(
double
)
std
::
min
(
scene_1_falko
->
keypoints_list_
.
size
(),
scene_2_falko
->
keypoints_list_
.
size
());
std
::
cout
<<
"score : "
<<
new_match
->
score
<<
std
::
endl
;
std
::
cout
<<
"matching_number : "
<<
matching_number
<<
std
::
endl
;
std
::
cout
<<
"kp1 : "
<<
scene_1_falko
->
keypoints_list_
.
size
()
<<
std
::
endl
;
std
::
cout
<<
"kp2 : "
<<
scene_2_falko
->
keypoints_list_
.
size
()
<<
std
::
endl
;
return
new_match
;
}
...
...
@@ -206,6 +211,7 @@ public:
}
*/
int
keypoints_number_th_
;
int
match_type_
;
};
...
...
This diff is collapsed.
Click to expand it.
src/match_loop_closure.h
+
0
−
1
View file @
9bb1be54
...
...
@@ -13,7 +13,6 @@
#include
<memory>
#include
<tuple>
#include
"scene_base.h"
namespace
laserscanutils
{
...
...
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