Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
laser
Merge requests
!21
Resolve "follow core:#313"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "follow core:#313"
15-follow-core-313
into
devel
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Joan Solà Ortega
requested to merge
15-follow-core-313
into
devel
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#15 (closed)
Edited
4 years ago
by
Joan Solà Ortega
0
0
Merge request reports
Compare
devel
devel (base)
and
latest version
latest version
77709a08
1 commit,
4 years ago
2 files
+
8
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/processor/processor_closeloop_icp.cpp
+
6
−
7
Options
@@ -145,13 +145,12 @@ FrameBasePtrList ProcessorCloseloopIcp::selectCandidates(FrameBasePtr _keyframe_
//Consider only key_frames from 1 to n - match_past_key_frame_
// std::copy_if(frames.begin(), frames.end(), std::back_inserter(candidates), [&](FrameBasePtr _frame) { if(_frame->isKey()) {key_frames_counter++; return (key_frames_counter % match_past_key_frame_ == 0);
// }else{ return false;};});
for
(
auto
it
=
trajectory
->
rbegin
();
it
!=
trajectory
->
rend
();
it
++
){
if
((
*
it
)
->
isKey
()){
// WOLF_DEBUG("TIMESTAMP KEY FRAME ", (*it)->id(), " ", (*it)->getTimeStamp());
key_frames_counter
++
;
if
(
key_frames_counter
>
recent_key_frames_ignored_
and
(
_keyframe_ptr
->
getP
()
->
getState
()
-
(
*
it
)
->
getP
()
->
getState
()).
norm
()
<
laser_scan_params_
.
range_max_
)
candidates
.
push_back
(
*
it
);
}
for
(
auto
it
=
trajectory
->
rbegin
();
it
!=
trajectory
->
rend
();
it
++
)
{
// WOLF_DEBUG("TIMESTAMP KEY FRAME ", (*it)->id(), " ", (*it)->getTimeStamp());
key_frames_counter
++
;
if
(
key_frames_counter
>
recent_key_frames_ignored_
and
(
_keyframe_ptr
->
getP
()
->
getState
()
-
(
*
it
)
->
getP
()
->
getState
()).
norm
()
<
laser_scan_params_
.
range_max_
)
candidates
.
push_back
(
*
it
);
}
WOLF_DEBUG
(
"%%%%%%%%%%%%%%%%%% CANDIDATES SIZE "
,
candidates
.
size
());
return
candidates
;
Loading