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
!419
Resolve "Processor motion model"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Processor motion model"
407-processor-motion-model
into
devel
Overview
0
Commits
19
Pipelines
16
Changes
2
Merged
Joan Vallvé Navarro
requested to merge
407-processor-motion-model
into
devel
3 years ago
Overview
0
Commits
19
Pipelines
16
Changes
2
Expand
Closes
#407 (closed)
Edited
3 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Viewing commit
451aba0a
Prev
Next
Show latest version
2 files
+
116
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
451aba0a
new processor created
· 451aba0a
Joan Vallvé Navarro
authored
3 years ago
include/core/processor/processor_frame_factor.h
0 → 100644
+
80
−
0
Options
/*
* processor_frame_factor.h
*
* Created on: Sep 6, 2021
* Author: joanvallve
*/
#ifndef INCLUDE_CORE_PROCESSOR_PROCESSOR_FRAME_FACTOR_H_
#define INCLUDE_CORE_PROCESSOR_PROCESSOR_FRAME_FACTOR_H_
#include
"core/processor/processor_base.h"
namespace
wolf
{
WOLF_STRUCT_PTR_TYPEDEFS
(
ParamsProcessorFrameFactor
);
struct
ParamsProcessorFrameFactor
:
public
ParamsProcessorBase
{
ParamsProcessorFrameFactor
()
=
default
;
ParamsProcessorFrameFactor
(
std
::
string
_unique_name
,
const
wolf
::
ParamsServer
&
_server
)
:
ParamsProcessorBase
(
_unique_name
,
_server
)
{
}
std
::
string
print
()
const
override
{
return
ParamsProcessorBase
::
print
();
}
};
WOLF_PTR_TYPEDEFS
(
ProcessorFrameFactor
);
class
ProcessorFrameFactor
:
public
ProcessorBase
{
public:
ProcessorFrameFactor
(
ParamsProcessorMotionModelPtr
);
// Factory method for high level API
WOLF_PROCESSOR_CREATE
(
ProcessorFrameFactor
,
ParamsProcessorFrameFactor
);
virtual
~
ProcessorFrameFactor
()
override
;
void
configure
(
SensorBasePtr
_sensor
)
override
{};
protected
:
/** \brief process an incoming capture NEVER CALLED
*/
virtual
void
processCapture
(
CaptureBasePtr
)
override
{};
/** \brief process an incoming key-frame: applies the motion model between consecutive keyframes
*/
virtual
void
processKeyFrame
(
FrameBasePtr
_keyframe_ptr
,
const
double
&
_time_tolerance
)
override
;
/** \brief trigger in capture
*/
virtual
bool
triggerInCapture
(
CaptureBasePtr
)
const
override
{
return
false
;};
/** \brief trigger in key-frame
*/
virtual
bool
triggerInKeyFrame
(
FrameBasePtr
_keyframe_ptr
,
const
double
&
_time_tolerance
)
const
override
{
return
true
;};
/** \brief store key frame
*/
virtual
bool
storeKeyFrame
(
FrameBasePtr
)
override
{
return
false
;};
/** \brief store capture
*/
virtual
bool
storeCapture
(
CaptureBasePtr
)
override
{
return
false
;};
/** \brief Vote for KeyFrame generation
*/
virtual
bool
voteForKeyFrame
()
const
override
{
return
false
;};
// ATTRIBUTES
ParamsProcessorFrameFactorPtr
params_processor_
;
};
}
/* namespace wolf */
#endif
/* INCLUDE_CORE_PROCESSOR_PROCESSOR_FRAME_FACTOR_H_ */
Loading