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

Add setTimeTolerance()

parent 513332f3
No related branches found
No related tags found
1 merge request!101Visual SLAM starts to work.
......@@ -10,7 +10,6 @@ ProcessorBase::ProcessorBase(const std::string& _type, const Scalar& _time_toler
NodeBase("PROCESSOR"),
sensor_ptr_(),
processor_id_(++processor_id_count_),
// type_id_(_tp),
time_tolerance_(_time_tolerance)
{
setType(_type);
......
......@@ -67,6 +67,8 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
ProblemPtr getProblem();
void setTimeTolerance(Scalar _time_tolerance);
private:
static unsigned int processor_id_count_;
......@@ -117,6 +119,11 @@ inline const SensorBasePtr ProcessorBase::getSensorPtr() const
return sensor_ptr_.lock();
}
inline void ProcessorBase::setTimeTolerance(Scalar _time_tolerance)
{
time_tolerance_ = _time_tolerance;
}
} // namespace wolf
#endif
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