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
10640b9e
Commit
10640b9e
authored
6 years ago
by
PierreGtch
Browse files
Options
Downloads
Patches
Plain Diff
Add captureCallback and a BufferCapture to ProcessorBase
parent
9df657fc
No related branches found
No related tags found
1 merge request
!290
Resolve "ProcessorLoopClosureBase class"
Pipeline
#3573
passed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/processor/processor_base.h
+2
-0
2 additions, 0 deletions
include/core/processor/processor_base.h
src/processor/processor_base.cpp
+7
-0
7 additions, 0 deletions
src/processor/processor_base.cpp
with
9 additions
and
0 deletions
include/core/processor/processor_base.h
+
2
−
0
View file @
10640b9e
...
...
@@ -191,6 +191,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
unsigned
int
processor_id_
;
ProcessorParamsBasePtr
params_
;
PackKeyFrameBuffer
kf_pack_buffer_
;
BufferCapture
buffer_capture_
;
private:
SensorBaseWPtr
sensor_ptr_
;
...
...
@@ -249,6 +250,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
FrameBasePtr
emplaceFrame
(
FrameType
_type
,
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
);
virtual
void
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tol_other
);
virtual
void
captureCallback
(
CaptureBasePtr
_capture_ptr
);
SensorBasePtr
getSensor
();
const
SensorBasePtr
getSensor
()
const
;
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_base.cpp
+
7
−
0
View file @
10640b9e
...
...
@@ -57,6 +57,13 @@ void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _
kf_pack_buffer_
.
add
(
_keyframe_ptr
,
_time_tol_other
);
}
void
ProcessorBase
::
captureCallback
(
CaptureBasePtr
_capture_ptr
)
{
WOLF_DEBUG
(
"P"
,
isMotion
()
?
"M "
:
"T "
,
getName
(),
": Capture"
,
_capture_ptr
->
id
(),
" callback received with ts = "
,
_capture_ptr
->
getTimeStamp
());
if
(
_capture_ptr
!=
nullptr
)
buffer_capture_
.
add
(
_capture_ptr
,
_capture_ptr
->
getTimeStamp
());
}
void
ProcessorBase
::
remove
()
{
if
(
!
is_removing_
)
...
...
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