Skip to content

Commit 0381e2f

Browse files
committed
Comments
1 parent 36767a6 commit 0381e2f

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ project(EKFSlam)
33

44
set(CMAKE_CXX_STANDARD 11)
55

6-
add_executable(EKFSlam main.cpp EKFSlammer.h EKFSlammer.cpp Utils.h Robot.cpp)
6+
add_executable(EKFSlam main.cpp EKFSlammer.h EKFSlammer.cpp Utils.h Robot.cpp Robot.h)

EKFSlammer.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class EKFSlammer {
1919

2020
int n; //Number of stored landmark features
2121

22-
//TODO make this smarter than a simple distance
23-
double newFeatureThreshold; //Distance threshold for classifying observed features as new
22+
//Mahalanobis distance threshold for classifying observed features as new
23+
double newFeatureThreshold;
2424

2525

2626
public:
@@ -66,7 +66,7 @@ class EKFSlammer {
6666

6767
void kinectUpdate(Eigen::VectorXd &z);
6868

69-
void accelerometerUpdate((Eigen::Vector2d &previousS, Eigen::Vector2d &gamma);
69+
void accelerometerUpdate(Eigen::Vector2d &previousS, Eigen::Vector2d &gamma, Eigen::Vector2d encoder);
7070

7171
void gyroUpdate(double &previousTheta, double &beta);
7272

Robot.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//Robot Simulation Class to simulate performance of SLAM
1+
//Robot Simulation Class to simulate performance of SLAM

Robot.h

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// Created by Swapnil on 4/27/2018.
3+
//
4+
5+
#ifndef EKFSLAM_ROBOT_H
6+
#define EKFSLAM_ROBOT_H
7+
8+
9+
#include "Eigen/Dense"
10+
#include "Utils.h"
11+
12+
class EKFSlammer {
13+
private:
14+
15+
16+
17+
#endif //EKFSLAM_ROBOT_H

0 commit comments

Comments
 (0)