From 0c8912c5dc1ec3c752f8648ca2a8181275ba2654 Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Tue, 4 Apr 2017 14:07:24 -0500 Subject: Use STATESIZE for Feature Replace FULLSTATE define with STATESIZE. --- src/feature.h | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'src/feature.h') diff --git a/src/feature.h b/src/feature.h index 56e0835..53eef2d 100644 --- a/src/feature.h +++ b/src/feature.h @@ -17,8 +17,7 @@ #define RANSAC_LI_THRESHOLD 4e-5 /* */ #define RANSAC_HI_THRESHOLD 5e-2 /* */ #define INITDEPTH -#define FULLSTATE - +#define STATESIZE 13 /* */ using Eigen::Dynamic; using Eigen::Matrix; @@ -59,25 +58,14 @@ class Feature /* ==================== OPERATORS ======================================= */ bool sane(); -#ifdef FULLSTATE - bool isInlier(const measurement_t &z, const Matrix &Pxx, - const Matrix &Pxy, const Matrix &Pyy, - const Vector3d &pos, const Quaterniond &q, double thr); - Matrix Fx( double dt ); - Matrix Hx( const Vector3d &pos, const Quaterniond &q); - Matrix S ( const Matrix &Pxx, - const Matrix &Pxy, const Matrix &Pyy, - const Vector3d &pos, const Quaterniond &q); -#else - bool isInlier(const measurement_t &z, const Matrix &Pxx, - const Matrix &Pxy, const Matrix &Pyy, + bool isInlier(const measurement_t &z, const Matrix &Pxx, + const Matrix &Pxy, const Matrix &Pyy, const Vector3d &pos, const Quaterniond &q, double thr); - Matrix Fx( double dt ); - Matrix Hx( const Vector3d &pos, const Quaterniond &q); - Matrix S ( const Matrix &Pxx, - const Matrix &Pxy, const Matrix &Pyy, + Matrix Fx( double dt ); + Matrix Hx( const Vector3d &pos, const Quaterniond &q); + Matrix S ( const Matrix &Pxx, + const Matrix &Pxy, const Matrix &Pyy, const Vector3d &pos, const Quaterniond &q); -#endif bool isRansacInlier(const measurement_t &z, const Vector3d &pos, const Quaterniond &q); bool inFOV(); Vector3d findDepth( const Quaterniond &q, double z, const Vector3d &xs, -- cgit v1.1