summaryrefslogtreecommitdiff
path: root/src/filter.h
diff options
context:
space:
mode:
authorMartin Miller2017-03-31 15:48:37 -0500
committerMartin Miller2017-03-31 15:48:37 -0500
commit118c14ed88ed76b892071638156dcb10cc69fd42 (patch)
tree49651a4a9497095045fd16f16446211d46b8edaf /src/filter.h
parentf310d54b2e7dc59405390d002876ccc28082c74f (diff)
downloadrefslam-118c14ed88ed76b892071638156dcb10cc69fd42.zip
refslam-118c14ed88ed76b892071638156dcb10cc69fd42.tar.gz
Add Filter class.
This is not tested to be working yet.
Diffstat (limited to 'src/filter.h')
-rw-r--r--src/filter.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/filter.h b/src/filter.h
new file mode 100644
index 0000000..fdd7777
--- /dev/null
+++ b/src/filter.h
@@ -0,0 +1,50 @@
+#ifndef filter_INC
+#define filter_INC
+
+#include <Eigen/Dense>
+#include <iostream>
+#include <list>
+
+using Eigen::Dynamic;
+using Eigen::Matrix;
+using Eigen::MatrixXd;
+using Eigen::VectorXd;
+using Eigen::Vector3d;
+using std::list;
+
+/*
+ * =====================================================================================
+ * Class: Filter
+ * Description:
+ * =====================================================================================
+ */
+class Filter
+{
+ public:
+ /* ==================== LIFECYCLE ======================================= */
+ Filter (const VectorXd &b, const VectorXd &a); /* constructor */
+
+ /* ==================== ACCESSORS ======================================= */
+ MatrixXd listToMatrix();
+
+ /* ==================== MUTATORS ======================================= */
+
+ /* ==================== OPERATORS ======================================= */
+ Vector3d update( const Vector3d &x);
+
+ protected:
+ /* ==================== METHODS ======================================= */
+
+ /* ==================== DATA MEMBERS ======================================= */
+
+ private:
+ /* ==================== METHODS ======================================= */
+
+ /* ==================== DATA MEMBERS ======================================= */
+ Matrix<double, Dynamic, 3> y;
+ Matrix<double,Dynamic,1> F;
+ list<Vector3d> X,Y;
+
+}; /* ----- end of class Filter ----- */
+
+#endif /* ----- #ifndef filter_INC ----- */