summaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
authorMartin Miller2018-01-28 11:45:53 -0500
committerMartin Miller2018-01-28 11:45:53 -0500
commit0663fb75c6bc42ccd093bed66820e92541ed419c (patch)
tree10eef681bdb46d213fad69d55b0c89553151ef61 /src/state.cpp
parent72faa54ddcd07972f250a53098b0ecfbd08363df (diff)
downloadrefslam-0663fb75c6bc42ccd093bed66820e92541ed419c.zip
refslam-0663fb75c6bc42ccd093bed66820e92541ed419c.tar.gz
Add define for FEATUREMAP
This will print the feature information in the unicsv so that the mapper Makefile can create a feature map.
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/state.cpp b/src/state.cpp
index c44aafe..3f2d3f4 100644
--- a/src/state.cpp
+++ b/src/state.cpp
@@ -803,10 +803,15 @@ State::velocity_covariance ( const Matrix<double,3,3> &p )
} /* ----- end of method State::velocity_covariance ----- */
void
-State::unicsv ( )
+State::unicsv ( const double time )
{
- body->unicsv();
+ body->unicsv(time);
printf(",%d\n", features.size());
+#ifdef FEATUREMAP
+ for (auto feature:features ) {
+ feature->unicsv(time,body->ned(),body->qhat());
+ }
+#endif
return ;
} /* ----- end of method State::unicsv ----- */