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
Merge requests
!413
Resolve "New ProcessorLoopClosure"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "New ProcessorLoopClosure"
398-new-processorloopclosure
into
devel
Overview
1
Commits
11
Pipelines
11
Changes
3
Merged
Joan Vallvé Navarro
requested to merge
398-new-processorloopclosure
into
devel
4 years ago
Overview
1
Commits
11
Pipelines
11
Changes
3
Expand
Closes
#398 (closed)
Edited
4 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Viewing commit
7ef34d03
Prev
Next
Show latest version
3 files
+
35
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
7ef34d03
new parameter max_loops
· 7ef34d03
Joan Vallvé Navarro
authored
4 years ago
include/core/processor/processor_loop_closure.h
+
15
−
6
Options
@@ -10,11 +10,20 @@ WOLF_STRUCT_PTR_TYPEDEFS(ParamsProcessorLoopClosure);
struct
ParamsProcessorLoopClosure
:
public
ParamsProcessorBase
{
using
ParamsProcessorBase
::
ParamsProcessorBase
;
// virtual ~ParamsProcessorLoopClosure() = default;
// add neccesery parameters for loop closure initialisation here and initialize
// them in constructor
int
max_loops
=-
1
;
ParamsProcessorLoopClosure
()
=
default
;
ParamsProcessorLoopClosure
(
std
::
string
_unique_name
,
const
ParamsServer
&
_server
)
:
ParamsProcessorBase
(
_unique_name
,
_server
)
{
max_loops
=
_server
.
getParam
<
int
>
(
prefix
+
_unique_name
+
"/max_loops"
);
}
std
::
string
print
()
const
override
{
return
"
\n
"
+
ParamsProcessorBase
::
print
()
+
"max_loops: "
+
std
::
to_string
(
max_loops
)
+
"
\n
"
;
}
};
WOLF_STRUCT_PTR_TYPEDEFS
(
MatchLoopClosure
);
@@ -74,7 +83,7 @@ protected:
/** \brief Find captures that correspond to loop closures with the given capture
*/
virtual
std
::
list
<
MatchLoopClosurePtr
>
findLoopClosures
(
CaptureBasePtr
_capture
)
=
0
;
virtual
std
::
map
<
double
,
MatchLoopClosurePtr
>
findLoopClosures
(
CaptureBasePtr
_capture
)
=
0
;
/** \brief validates a loop closure
*/
Loading