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
Commits
957f3427
Commit
957f3427
authored
6 years ago
by
PierreGtch
Browse files
Options
Downloads
Patches
Plain Diff
Rename class ProcessorLoopClosureBase2 to ProcessorLoopClosureBase
parent
8f1d58cc
No related branches found
No related tags found
1 merge request
!290
Resolve "ProcessorLoopClosureBase class"
Pipeline
#3740
passed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/processor/processor_loopclosure_base.h
+10
-10
10 additions, 10 deletions
include/core/processor/processor_loopclosure_base.h
src/processor/processor_loopclosure_base.cpp
+4
-4
4 additions, 4 deletions
src/processor/processor_loopclosure_base.cpp
with
14 additions
and
14 deletions
include/core/processor/processor_loopclosure_base.h
+
10
−
10
View file @
957f3427
#ifndef _WOLF_PROCESSOR_LOOPCLOSURE_BASE
2
_H
#define _WOLF_PROCESSOR_LOOPCLOSURE_BASE
2
_H
#ifndef _WOLF_PROCESSOR_LOOPCLOSURE_BASE_H
#define _WOLF_PROCESSOR_LOOPCLOSURE_BASE_H
// Wolf related headers
#include
"core/processor/processor_base.h"
namespace
wolf
{
WOLF_STRUCT_PTR_TYPEDEFS
(
ProcessorParamsLoopClosure
2
);
WOLF_STRUCT_PTR_TYPEDEFS
(
ProcessorParamsLoopClosure
);
struct
ProcessorParamsLoopClosure
2
:
public
ProcessorParamsBase
struct
ProcessorParamsLoopClosure
:
public
ProcessorParamsBase
{
using
ProcessorParamsBase
::
ProcessorParamsBase
;
// virtual ~ProcessorParamsLoopClosure
2
() = default;
// virtual ~ProcessorParamsLoopClosure() = default;
// add neccesery parameters for loop closure initialisation here and initialize
// them in constructor
...
...
@@ -42,17 +42,17 @@ struct ProcessorParamsLoopClosure2 : public ProcessorParamsBase
* which are called at the beginning and at the end of process() respectively.
*/
class
ProcessorLoopClosureBase
2
:
public
ProcessorBase
class
ProcessorLoopClosureBase
:
public
ProcessorBase
{
protected:
ProcessorParamsLoopClosure
2
Ptr
params_loop_closure_
;
ProcessorParamsLoopClosurePtr
params_loop_closure_
;
public:
ProcessorLoopClosureBase
2
(
const
std
::
string
&
_type
,
ProcessorParamsLoopClosure
2
Ptr
_params_loop_closure
);
ProcessorLoopClosureBase
(
const
std
::
string
&
_type
,
ProcessorParamsLoopClosurePtr
_params_loop_closure
);
virtual
~
ProcessorLoopClosureBase
2
()
=
default
;
virtual
~
ProcessorLoopClosureBase
()
=
default
;
virtual
void
configure
(
SensorBasePtr
_sensor
)
override
{
};
/** \brief Full processing of an incoming Capture.
...
...
@@ -151,4 +151,4 @@ protected:
}
// namespace wolf
#endif
/* _WOLF_PROCESSOR_LOOPCLOSURE_BASE
2
_H */
#endif
/* _WOLF_PROCESSOR_LOOPCLOSURE_BASE_H */
This diff is collapsed.
Click to expand it.
src/processor/processor_loopclosure_base.cpp
+
4
−
4
View file @
957f3427
/**
* \file processor_loop_closure
2
.h
* \file processor_loop_closure.h
*
* Created on: Mai 31, 2019
* \author: Pierre Guetschel
...
...
@@ -11,7 +11,7 @@
namespace
wolf
{
ProcessorLoopClosureBase
2
::
ProcessorLoopClosureBase
2
(
const
std
::
string
&
_type
,
ProcessorParamsLoopClosure
2
Ptr
_params_loop_closure
)
:
ProcessorLoopClosureBase
::
ProcessorLoopClosureBase
(
const
std
::
string
&
_type
,
ProcessorParamsLoopClosurePtr
_params_loop_closure
)
:
ProcessorBase
(
_type
,
_params_loop_closure
),
params_loop_closure_
(
_params_loop_closure
)
{
...
...
@@ -19,7 +19,7 @@ ProcessorLoopClosureBase2::ProcessorLoopClosureBase2(const std::string& _type, P
}
//##############################################################################
void
ProcessorLoopClosureBase
2
::
process
(
CaptureBasePtr
_incoming_ptr
)
void
ProcessorLoopClosureBase
::
process
(
CaptureBasePtr
_incoming_ptr
)
{
// the pre-process, if necessary, is implemented in the derived classes
preProcess
();
...
...
@@ -48,7 +48,7 @@ void ProcessorLoopClosureBase2::process(CaptureBasePtr _incoming_ptr)
* In the default implementation, we select the KF with the most recent TimeStamp
* and that is compatible with at least a Capture
*/
std
::
pair
<
FrameBasePtr
,
CaptureBasePtr
>
ProcessorLoopClosureBase
2
::
selectPairKC
()
std
::
pair
<
FrameBasePtr
,
CaptureBasePtr
>
ProcessorLoopClosureBase
::
selectPairKC
()
{
std
::
map
<
TimeStamp
,
PackKeyFramePtr
>
kf_container
=
buffer_pack_kf_
.
getContainer
();
if
(
kf_container
.
empty
()){
...
...
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