diff options
author | Martin Miller | 2017-04-11 10:57:04 -0500 |
---|---|---|
committer | Martin Miller | 2017-04-11 10:57:04 -0500 |
commit | 1c543489862cd0bf9c559cee6575baf20f84b2d0 (patch) | |
tree | d968bf97d9d6a6bd444fd97b24054f720456c84f /src/feature.h | |
parent | 16972c736994fa49b04d1e967516278660e4be2d (diff) | |
download | refslam-1c543489862cd0bf9c559cee6575baf20f84b2d0.zip refslam-1c543489862cd0bf9c559cee6575baf20f84b2d0.tar.gz |
Remove features after 5 timesteps without measurements
Diffstat (limited to 'src/feature.h')
-rw-r--r-- | src/feature.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature.h b/src/feature.h index 65850af..c0d3ac6 100644 --- a/src/feature.h +++ b/src/feature.h @@ -60,6 +60,8 @@ class Feature void asVector(const Vector3d &m); void motionModel ( const Vector3d &ang, const Vector3d &vel, const double dt); void dx( const Vector3d &del); + void seen(); + bool since(int N) const; /* ==================== OPERATORS ======================================= */ bool sane(); @@ -98,6 +100,7 @@ class Feature /* ==================== DATA MEMBERS ======================================= */ int _id; Mat _patch; + unsigned int lastseen; Quaterniond q0; Vector3d X; Vector3d X0; |