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
ce881b22
Commit
ce881b22
authored
2 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Improve some doc and warn messages
parent
ee6d768d
No related branches found
No related tags found
1 merge request
!466
devel->main
Pipeline
#13827
passed
2 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_motion.cpp
+5
-5
5 additions, 5 deletions
src/processor/processor_motion.cpp
with
5 additions
and
5 deletions
src/processor/processor_motion.cpp
+
5
−
5
View file @
ce881b22
...
@@ -194,7 +194,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
...
@@ -194,7 +194,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
if
(
keyframe_from_callback
)
if
(
keyframe_from_callback
)
buffer_frame_
.
removeUpTo
(
keyframe_from_callback
->
getTimeStamp
()
);
buffer_frame_
.
removeUpTo
(
keyframe_from_callback
->
getTimeStamp
()
);
switch
(
processing_step_
)
switch
(
processing_step_
)
// Things to do before integrating motion data
{
{
case
FIRST_TIME_WITHOUT_KF
:
case
FIRST_TIME_WITHOUT_KF
:
{
{
...
@@ -229,14 +229,14 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
...
@@ -229,14 +229,14 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
}
}
// integrate data
// integrate
motion
data
// Done at this place because setPrior() needs
// Done at this place because setPrior() needs
integrateOneStep
();
integrateOneStep
();
// perform bootstrap steps (usually only IMU requires this)
// perform bootstrap steps (usually only IMU requires this)
if
(
bootstrapping_
)
bootstrap
();
if
(
bootstrapping_
)
bootstrap
();
switch
(
processing_step_
)
switch
(
processing_step_
)
// Things to do after integrating motion data
{
{
case
RUNNING_WITH_KF_BEFORE_ORIGIN
:
case
RUNNING_WITH_KF_BEFORE_ORIGIN
:
{
{
...
@@ -272,11 +272,11 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
...
@@ -272,11 +272,11 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
TimeStamp
timestamp_from_callback
=
keyframe_from_callback
->
getTimeStamp
();
TimeStamp
timestamp_from_callback
=
keyframe_from_callback
->
getTimeStamp
();
// find the capture whose buffer is affected by the new keyframe
// find the capture whose buffer is affected by the new keyframe
auto
capture_existing
=
findCaptureContainingTimeStamp
(
timestamp_from_callback
);
// k
auto
capture_existing
=
findCaptureContainingTimeStamp
(
timestamp_from_callback
);
if
(
!
capture_existing
)
if
(
!
capture_existing
)
{
{
WOLF_WARN
(
"A KF before first motion capture (TS = "
,
timestamp_from_callback
,
"). ProcessorMotion cannot do anything
."
);
WOLF_WARN
(
getName
(),
": Cannot join KF. The received KF (TS = "
,
timestamp_from_callback
,
") is older than the first motion capture
."
);
break
;
break
;
}
}
...
...
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