mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Fixed Stereo parameters not used for OdometryBOW. Saving parameters in Memory and Feature2D to re-use old parameters when underlaying algorithm strategies are re-created.
This commit is contained in:
@@ -148,6 +148,7 @@ public:
|
||||
const std::vector<cv::KeyPoint> & keypoints) const;
|
||||
|
||||
virtual void parseParameters(const ParametersMap & parameters);
|
||||
virtual const ParametersMap & getParameters() const {return parameters_;}
|
||||
virtual Feature2D::Type getType() const = 0;
|
||||
|
||||
protected:
|
||||
@@ -158,6 +159,7 @@ private:
|
||||
virtual cv::Mat generateDescriptorsImpl(const cv::Mat & image, std::vector<cv::KeyPoint> & keypoints) const = 0;
|
||||
|
||||
private:
|
||||
ParametersMap parameters_;
|
||||
int maxFeatures_;
|
||||
float _wordsMaxDepth; // 0=inf
|
||||
float _wordsMinDepth;
|
||||
|
||||
@@ -67,6 +67,7 @@ public:
|
||||
virtual ~Memory();
|
||||
|
||||
virtual void parseParameters(const ParametersMap & parameters);
|
||||
virtual const ParametersMap & getParameters() const {return parameters_;}
|
||||
bool update(const SensorData & data,
|
||||
Statistics * stats = 0);
|
||||
bool update(const SensorData & data,
|
||||
@@ -222,6 +223,7 @@ protected:
|
||||
|
||||
private:
|
||||
// parameters
|
||||
ParametersMap parameters_;
|
||||
float _similarityThreshold;
|
||||
bool _rawDataKept;
|
||||
bool _binDataKept;
|
||||
|
||||
@@ -112,6 +112,7 @@ public:
|
||||
void dumpPrediction() const;
|
||||
void dumpData() const;
|
||||
void parseParameters(const ParametersMap & parameters);
|
||||
const ParametersMap & getParameters() const {return _parameters;}
|
||||
void setWorkingDirectory(std::string path);
|
||||
void rejectLoopClosure(int oldId, int newId);
|
||||
void get3DMap(std::map<int, Signature> & signatures,
|
||||
@@ -215,7 +216,7 @@ private:
|
||||
EpipolarGeometry * _epipolarGeometry;
|
||||
BayesFilter * _bayesFilter;
|
||||
Optimizer * _graphOptimizer;
|
||||
ParametersMap _modifiedParameters;
|
||||
ParametersMap _parameters;
|
||||
|
||||
Memory * _memory;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user