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
bbbf6ce4
Commit
bbbf6ce4
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Reduce API of PM::splitBuffer
parent
8a21a73f
No related branches found
No related tags found
2 merge requests
!436
Release to start wolf public
,
!433
After 2nd RA-L submission
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/core/processor/processor_motion.h
+1
-2
1 addition, 2 deletions
include/core/processor/processor_motion.h
src/processor/processor_motion.cpp
+3
-4
3 additions, 4 deletions
src/processor/processor_motion.cpp
test/gtest_processor_motion.cpp
+0
-6
0 additions, 6 deletions
test/gtest_processor_motion.cpp
with
4 additions
and
12 deletions
include/core/processor/processor_motion.h
+
1
−
2
View file @
bbbf6ce4
...
...
@@ -272,8 +272,7 @@ class ProcessorMotion : public ProcessorBase, public MotionProvider
void
integrateOneStep
();
void
reintegrateBuffer
(
CaptureMotionPtr
_capture_ptr
)
const
;
void
splitBuffer
(
const
wolf
::
CaptureMotionPtr
&
capture_source
,
TimeStamp
ts_split
,
const
FrameBasePtr
&
keyframe_target
,
const
TimeStamp
ts_split
,
const
wolf
::
CaptureMotionPtr
&
capture_target
)
const
;
/** Pre-process incoming Capture
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_motion.cpp
+
3
−
4
View file @
bbbf6ce4
...
...
@@ -116,8 +116,7 @@ void ProcessorMotion::mergeCaptures(CaptureMotionConstPtr cap_prev,
}
void
ProcessorMotion
::
splitBuffer
(
const
CaptureMotionPtr
&
_capture_source
,
TimeStamp
_ts_split
,
const
FrameBasePtr
&
_keyframe_target
,
const
TimeStamp
_ts_split
,
const
CaptureMotionPtr
&
_capture_target
)
const
{
/** we are doing this:
...
...
@@ -300,7 +299,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
// split the buffer
// and give the part of the buffer before the new keyframe to the capture for the KF callback
splitBuffer
(
capture_existing
,
timestamp_from_callback
,
keyframe_from_callback
,
capture_for_keyframe_callback
);
splitBuffer
(
capture_existing
,
timestamp_from_callback
,
capture_for_keyframe_callback
);
// create motion feature and add it to the capture
auto
feature_new
=
emplaceFeature
(
capture_for_keyframe_callback
);
...
...
@@ -393,7 +392,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
// split the buffer
// and give the part of the buffer before the new keyframe to the capture for the KF callback
splitBuffer
(
capture_existing
,
timestamp_from_callback
,
keyframe_from_callback
,
capture_for_keyframe_callback
);
splitBuffer
(
capture_existing
,
timestamp_from_callback
,
capture_for_keyframe_callback
);
// create motion feature and add it to the capture
auto
feature_for_keyframe_callback
=
emplaceFeature
(
capture_for_keyframe_callback
);
...
...
This diff is collapsed.
Click to expand it.
test/gtest_processor_motion.cpp
+
0
−
6
View file @
bbbf6ce4
...
...
@@ -49,12 +49,10 @@ class ProcessorOdom2dPublic : public ProcessorOdom2d
void
splitBuffer
(
const
wolf
::
CaptureMotionPtr
&
capture_source
,
TimeStamp
ts_split
,
const
FrameBasePtr
&
keyframe_target
,
const
wolf
::
CaptureMotionPtr
&
capture_target
)
{
ProcessorOdom2d
::
splitBuffer
(
capture_source
,
ts_split
,
keyframe_target
,
capture_target
);
}
};
...
...
@@ -347,7 +345,6 @@ TEST_F(ProcessorMotion_test, mergeCaptures)
processor
->
splitBuffer
(
C_source
,
t_target
,
F_target
,
C_target
);
C_target
->
getBuffer
().
print
(
1
,
1
,
1
,
0
);
...
...
@@ -421,7 +418,6 @@ TEST_F(ProcessorMotion_test, splitBufferAutoPrior)
processor
->
splitBuffer
(
C_source
,
t_target
,
F_target
,
C_target
);
C_target
->
getBuffer
().
print
(
1
,
1
,
1
,
0
);
...
...
@@ -466,7 +462,6 @@ TEST_F(ProcessorMotion_test, splitBufferFactorPrior)
processor
->
splitBuffer
(
C_source
,
t_target
,
F_target
,
C_target
);
C_target
->
getBuffer
().
print
(
1
,
1
,
1
,
0
);
...
...
@@ -511,7 +506,6 @@ TEST_F(ProcessorMotion_test, splitBufferFixPrior)
processor
->
splitBuffer
(
C_source
,
t_target
,
F_target
,
C_target
);
C_target
->
getBuffer
().
print
(
1
,
1
,
1
,
0
);
...
...
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