mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
Fixed compilation warning of not used variables when some odom approaches are not supported
This commit is contained in:
@@ -53,10 +53,12 @@ private:
|
||||
virtual Transform computeTransform(SensorData & image, const Transform & guess = Transform(), OdometryInfo * info = 0);
|
||||
|
||||
private:
|
||||
#ifdef RTABMAP_DVO
|
||||
dvo::DenseTracker * dvo_;
|
||||
dvo::core::RgbdImagePyramid * reference_;
|
||||
dvo::core::RgbdCameraPyramid * camera_;
|
||||
bool lost_;
|
||||
#endif
|
||||
Transform motionFromKeyFrame_;
|
||||
Transform previousLocalTransform_;
|
||||
|
||||
|
||||
@@ -53,13 +53,15 @@ private:
|
||||
virtual Transform computeTransform(SensorData & image, const Transform & guess = Transform(), OdometryInfo * info = 0);
|
||||
|
||||
private:
|
||||
#ifdef RTABMAP_FOVIS
|
||||
fovis::VisualOdometry * fovis_;
|
||||
fovis::Rectification * rect_;
|
||||
fovis::StereoCalibration * stereoCalib_;
|
||||
fovis::DepthImage * depthImage_;
|
||||
fovis::StereoDepth * stereoDepth_;
|
||||
ParametersMap fovisParameters_;
|
||||
bool lost_;
|
||||
#endif
|
||||
ParametersMap fovisParameters_;
|
||||
Transform previousLocalTransform_;
|
||||
};
|
||||
|
||||
|
||||
@@ -51,9 +51,11 @@ private:
|
||||
virtual Transform computeTransform(SensorData & image, const Transform & guess = Transform(), OdometryInfo * info = 0);
|
||||
|
||||
private:
|
||||
#ifdef RTABMAP_ORB_SLAM2
|
||||
ORBSLAM2System * orbslam2_;
|
||||
ORB_SLAM2::System * system_;
|
||||
bool firstFrame_;
|
||||
#endif
|
||||
Transform originLocalTransform_;
|
||||
|
||||
};
|
||||
|
||||
@@ -47,12 +47,14 @@ private:
|
||||
virtual Transform computeTransform(SensorData & image, const Transform & guess = Transform(), OdometryInfo * info = 0);
|
||||
|
||||
private:
|
||||
#ifdef RTABMAP_VISO2
|
||||
VisualOdometryStereo * viso2_;
|
||||
int ref_frame_change_method_; // Reference frame method (defautl 0): 0=under inliers threshold, 1=min pixel motion,
|
||||
int ref_frame_inlier_threshold_; // method 0. Change the reference frame if the number of inliers is low
|
||||
double ref_frame_motion_threshold_; // method 1. Change the reference frame if last motion is small
|
||||
bool lost_;
|
||||
bool keep_reference_frame_;
|
||||
#endif
|
||||
Transform reference_motion_;
|
||||
Transform previousLocalTransform_;
|
||||
ParametersMap viso2Parameters_;
|
||||
|
||||
Reference in New Issue
Block a user