summaryrefslogtreecommitdiff
path: root/src/feature.cpp
diff options
context:
space:
mode:
authorMartin Miller2017-03-29 12:28:45 -0500
committerMartin Miller2017-03-29 12:28:45 -0500
commitaf8856394e8284462cd0e0c9e25d01a01a4ff551 (patch)
tree39c79a7ac6728e3a7c07684adf176008bbcd3d5f /src/feature.cpp
parent411797b9a53d3865193bf4f45889c100ea4bc895 (diff)
downloadrefslam-af8856394e8284462cd0e0c9e25d01a01a4ff551.zip
refslam-af8856394e8284462cd0e0c9e25d01a01a4ff551.tar.gz
Change hardcoded values to defines
Diffstat (limited to 'src/feature.cpp')
-rw-r--r--src/feature.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/feature.cpp b/src/feature.cpp
index 9dce1d1..fc08ee7 100644
--- a/src/feature.cpp
+++ b/src/feature.cpp
@@ -132,7 +132,7 @@ Feature::Q ( const double dt )
{
Matrix<double,3,3> Q;
Q = Matrix<double,3,3>::Identity();
- Q *= dt*dt;//*1e-1;
+ Q *= dt*dt*FEATURE_NOISE;//*1e-1;
return Q;
} /* ----- end of method Feature::q ----- */
@@ -141,7 +141,9 @@ Feature::R ( )
{
Matrix<double,6,6> R;
R = Matrix<double,6,6>::Identity();
- R *= 1e-4;
+ R.block<2,2>(0,0) *= VIEW_NOISE;
+ R.block<2,2>(2,2) *= INITIAL_VIEW_NOISE;
+ R.block<2,2>(4,4) *= REFLECTION_VIEW_NOISE;
return R;
} /* ----- end of method Feature::R ----- */
@@ -492,11 +494,12 @@ Matrix<double,3,3>
Feature::P0 ( )
{
Matrix<double,3,3> P;
- double p0 = 1e-4;
- double p1 = 1e-4;
+ double p0 = FEATURECOVX;
+ double p1 = FEATURECOVY;
+ double p2 = FEATURECOVRHO;
P << p0, 0., 0.,
- 0., p0, 0.,
- 0., 0., p1;
+ 0., p1, 0.,
+ 0., 0., p2;
return P;
} /* ----- end of method Feature::P0 ----- */