Skip to content
Snippets Groups Projects

Resolve "Revisit demos (formerly called examples) and update them"

2 files
+ 48
45
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -13,22 +13,37 @@
namespace wolf
{
WOLF_STRUCT_PTR_TYPEDEFS(ProcessorParamsTrackerLandmarkDummy);
struct ProcessorParamsTrackerLandmarkDummy : public ProcessorParamsTrackerLandmark
{
unsigned int loss_lmk_ratio; ///< ratio of loosing lmks one of each n
ProcessorParamsTrackerLandmarkDummy() = default;
ProcessorParamsTrackerLandmarkDummy(std::string _unique_name, const wolf::paramsServer & _server):
ProcessorParamsTrackerLandmark(_unique_name, _server)
{
loss_lmk_ratio = _server.getParam<unsigned int>(_unique_name + "/loss_lmk_ratio", "10");
}
};
WOLF_PTR_TYPEDEFS(ProcessorTrackerLandmarkDummy);
class ProcessorTrackerLandmarkDummy : public ProcessorTrackerLandmark
{
public:
ProcessorTrackerLandmarkDummy(ProcessorParamsTrackerLandmarkPtr _params_tracker_landmark);
ProcessorTrackerLandmarkDummy(ProcessorParamsTrackerLandmarkDummyPtr _params_tracker_landmark_dummy);
virtual ~ProcessorTrackerLandmarkDummy();
virtual void configure(SensorBasePtr _sensor) { };
protected:
ProcessorParamsTrackerLandmarkDummyPtr params_tracker_landmark_dummy_;
unsigned int n_feature_;
unsigned int landmark_idx_non_visible_;
// virtual void preProcess() { }
virtual void postProcess(); // implemented
//virtual void preProcess() { }
//virtual void postProcess();
/** \brief Find provided landmarks in the incoming capture
* \param _landmarks_in input list of landmarks to be found in incoming
@@ -74,20 +89,6 @@ class ProcessorTrackerLandmarkDummy : public ProcessorTrackerLandmark
virtual FactorBasePtr createFactor(FeatureBasePtr _feature_ptr, LandmarkBasePtr _landmark_ptr);
};
inline void ProcessorTrackerLandmarkDummy::postProcess()
{
landmark_idx_non_visible_++;
std::cout << "------- Landmarks until " << landmark_idx_non_visible_ << " are now out of scope" << std::endl
<< std::endl;
}
} // namespace wolf
// IMPLEMENTATION
namespace wolf
{
} // namespace wolf
#endif /* PROCESSOR_TRACKER_LANDMARK_DUMMY_H_ */
Loading