Skip to content
Snippets Groups Projects

Resolve "New processors workflow"

Merged Joan Vallvé Navarro requested to merge 5-new-processors-workflow into devel
4 files
+ 67
4
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -44,7 +44,33 @@ class ProcessorGnssFix : public ProcessorBase
ProcessorGnssFix(ProcessorParamsGnssFixPtr _params, SensorGnssPtr _sensor_gnss_ptr);
virtual ~ProcessorGnssFix();
virtual void configure(SensorBasePtr _sensor);
virtual void process(CaptureBasePtr _capture_ptr);
protected:
/** \brief process an incoming capture
*
* Each derived processor should implement this function. It will be called if:
* - A new capture arrived and triggerInCapture() returned true.
*/
virtual void processCapture(CaptureBasePtr) override;
/** \brief process an incoming key-frame
*
* The ProcessorTracker only processes incoming captures (it is not called).
*/
virtual void processKeyFrame(FrameBasePtr _keyframe_ptr, const Scalar& _time_tolerance) override {};
/** \brief trigger in capture
*
* Returns true if processCapture() should be called after the provided capture arrived.
*/
virtual bool triggerInCapture(CaptureBasePtr) override;
/** \brief trigger in key-frame
*
* The ProcessorTracker only processes incoming captures, then it returns false.
*/
virtual bool triggerInKeyFrame(FrameBasePtr _keyframe_ptr, const Scalar& _time_tolerance) override {return false;}
virtual bool voteForKeyFrame();
private:
@@ -56,6 +82,11 @@ class ProcessorGnssFix : public ProcessorBase
};
inline bool ProcessorGnssFix::triggerInCapture(CaptureBasePtr)
{
return true;
}
} // namespace wolf
#endif //WOLF_PROCESSOR_GNSS_FIX_H
Loading