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

Reverse assert and DEBUG msg for safety

parent d3a669ac
No related branches found
No related tags found
No related merge requests found
...@@ -33,8 +33,8 @@ bool ProcessorBase::permittedAuxFrame() ...@@ -33,8 +33,8 @@ bool ProcessorBase::permittedAuxFrame()
void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other) void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other)
{ {
WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": KF", _keyframe_ptr->id(), " callback received with ts = ", _keyframe_ptr->getTimeStamp());
assert(_keyframe_ptr != nullptr && "keyFrameCallback with a nullptr frame"); assert(_keyframe_ptr != nullptr && "keyFrameCallback with a nullptr frame");
WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": KF", _keyframe_ptr->id(), " callback received with ts = ", _keyframe_ptr->getTimeStamp());
// buffering anyway // buffering anyway
buffer_pack_kf_.add(_keyframe_ptr, _time_tol_other); buffer_pack_kf_.add(_keyframe_ptr, _time_tol_other);
...@@ -47,8 +47,8 @@ void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _ ...@@ -47,8 +47,8 @@ void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _
void ProcessorBase::captureCallback(CaptureBasePtr _capture_ptr) void ProcessorBase::captureCallback(CaptureBasePtr _capture_ptr)
{ {
WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": Capture ", _capture_ptr->id(), " callback received with ts = ", _capture_ptr->getTimeStamp());
assert(_capture_ptr != nullptr && "captureCallback with a nullptr capture"); assert(_capture_ptr != nullptr && "captureCallback with a nullptr capture");
WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": Capture ", _capture_ptr->id(), " callback received with ts = ", _capture_ptr->getTimeStamp());
// if trigger, process directly without buffering // if trigger, process directly without buffering
if (triggerInCapture(_capture_ptr)) if (triggerInCapture(_capture_ptr))
......
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