Skip to content
Snippets Groups Projects
Commit 05b17a3c authored by Médéric Fourmy's avatar Médéric Fourmy
Browse files

Merge branch '289-problem-check-more-exhaustive' into adapting-to-multiple-processor-motion-285

parents abb5b67b f4ab2fd6
No related branches found
No related tags found
1 merge request!339Adapting to multiple processor motion 285
......@@ -398,7 +398,8 @@ inline wolf::SizeStd Problem::getFactorNotificationMapSize() const
return factor_notification_map_.size();
}
} // namespace wolf
#endif // PROBLEM_H
#ifndef CHECK_LOG_HPP
#define CHECK_LOG_HPP
#include <iostream>
#include <string>
class CheckLog {
public:
bool is_consistent_;
std::string explanation_;
CheckLog() {
is_consistent_ = true;
explanation_ = "";
}
CheckLog(bool consistent, std::string explanation) {
is_consistent_ = consistent;
if (not consistent)
explanation_ = explanation;
else
explanation_ = "";
}
~CheckLog(){};
void compose(CheckLog l) {
CheckLog result_log;
is_consistent_ = is_consistent_ and l.is_consistent_;
explanation_ = explanation_ + l.explanation_;
}
};
#endif
This diff is collapsed.
......@@ -274,7 +274,7 @@ CaptureBasePtr SensorBase::lastCapture(const TimeStamp& _ts) const
{
if ((*frame_rev_it)->getTimeStamp() <= _ts)
{
CaptureBasePtr capture = (*frame_rev_it)->getCaptureOf(shared_from_this());
capture = (*frame_rev_it)->getCaptureOf(shared_from_this());
if (capture)
// found the most recent Capture made by this sensor !
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