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
!278
Resolve "Revisit demos (formerly called examples) and update them"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Revisit demos (formerly called examples) and update them"
209-revisit-demos-formerly-called-examples-and-update-them
into
devel
Overview
1
Commits
29
Pipelines
8
Changes
2
Merged
Joan Vallvé Navarro
requested to merge
209-revisit-demos-formerly-called-examples-and-update-them
into
devel
6 years ago
Overview
1
Commits
29
Pipelines
8
Changes
2
Expand
Closes
#209 (closed)
Edited
6 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Viewing commit
dc5ecd72
Prev
Next
Show latest version
2 files
+
48
−
45
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
dc5ecd72
processor_tracker_landmark_dummy working with LandmarkBase and FactorLandmarkDummy
· dc5ecd72
Joan Vallvé Navarro
authored
6 years ago
include/core/processor/processor_tracker_landmark_dummy.h
+
19
−
18
Options
@@ -13,22 +13,37 @@
namespace
wolf
{
WOLF_STRUCT_PTR_TYPEDEFS
(
ProcessorParamsTrackerLandmarkDummy
);
struct
ProcessorParamsTrackerLandmarkDummy
:
public
ProcessorParamsTrackerLandmark
{
unsigned
int
loss_lmk_ratio
;
///< ratio of loosing lmks one of each n
ProcessorParamsTrackerLandmarkDummy
()
=
default
;
ProcessorParamsTrackerLandmarkDummy
(
std
::
string
_unique_name
,
const
wolf
::
paramsServer
&
_server
)
:
ProcessorParamsTrackerLandmark
(
_unique_name
,
_server
)
{
loss_lmk_ratio
=
_server
.
getParam
<
unsigned
int
>
(
_unique_name
+
"/loss_lmk_ratio"
,
"10"
);
}
};
WOLF_PTR_TYPEDEFS
(
ProcessorTrackerLandmarkDummy
);
class
ProcessorTrackerLandmarkDummy
:
public
ProcessorTrackerLandmark
{
public:
ProcessorTrackerLandmarkDummy
(
ProcessorParamsTrackerLandmarkPtr
_params_tracker_landmark
);
ProcessorTrackerLandmarkDummy
(
ProcessorParamsTrackerLandmark
Dummy
Ptr
_params_tracker_landmark
_dummy
);
virtual
~
ProcessorTrackerLandmarkDummy
();
virtual
void
configure
(
SensorBasePtr
_sensor
)
{
};
protected
:
ProcessorParamsTrackerLandmarkDummyPtr
params_tracker_landmark_dummy_
;
unsigned
int
n_feature_
;
unsigned
int
landmark_idx_non_visible_
;
// virtual void preProcess() { }
virtual
void
postProcess
();
// implemented
//virtual void preProcess() { }
//virtual void postProcess();
/** \brief Find provided landmarks in the incoming capture
* \param _landmarks_in input list of landmarks to be found in incoming
@@ -74,20 +89,6 @@ class ProcessorTrackerLandmarkDummy : public ProcessorTrackerLandmark
virtual
FactorBasePtr
createFactor
(
FeatureBasePtr
_feature_ptr
,
LandmarkBasePtr
_landmark_ptr
);
};
inline
void
ProcessorTrackerLandmarkDummy
::
postProcess
()
{
landmark_idx_non_visible_
++
;
std
::
cout
<<
"------- Landmarks until "
<<
landmark_idx_non_visible_
<<
" are now out of scope"
<<
std
::
endl
<<
std
::
endl
;
}
}
// namespace wolf
// IMPLEMENTATION
namespace
wolf
{
}
// namespace wolf
#endif
/* PROCESSOR_TRACKER_LANDMARK_DUMMY_H_ */
Loading