Skip to content
Snippets Groups Projects
Commit ce881b22 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Improve some doc and warn messages

parent ee6d768d
No related branches found
No related tags found
1 merge request!466devel->main
Pipeline #13827 passed
...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment