summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Miller2017-03-25 16:14:23 -0500
committerMartin Miller2017-03-25 16:14:23 -0500
commit1c233f6fd05502585928e058d5d2c0ff5e23881a (patch)
treed2159930cc343820c29a265d322b94f5245e2c5c
parent5cefa66fd4782e2ecf50770888e9ae043b79c1b9 (diff)
downloadrefslam-1c233f6fd05502585928e058d5d2c0ff5e23881a.zip
refslam-1c233f6fd05502585928e058d5d2c0ff5e23881a.tar.gz
Add Feature::dx()
This function allows an incremental update of the feature state where X += dx
-rw-r--r--src/feature.cpp7
-rw-r--r--src/feature.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/feature.cpp b/src/feature.cpp
index 49a6262..136f820 100644
--- a/src/feature.cpp
+++ b/src/feature.cpp
@@ -506,3 +506,10 @@ Feature::sane ( )
return rv ;
} /* ----- end of method Feature::sane ----- */
+void
+Feature::dx ( const Vector3d &del )
+{
+ X += del;
+ return ;
+} /* ----- end of method Feature::dx ----- */
+
diff --git a/src/feature.h b/src/feature.h
index 3e99bab..b921d8b 100644
--- a/src/feature.h
+++ b/src/feature.h
@@ -33,6 +33,7 @@ class Feature
/* ==================== MUTATORS ======================================= */
void motionModel ( const Vector3d &ang, const Vector3d &vel, const double dt);
+ void dx( const Vector3d &del);
/* ==================== OPERATORS ======================================= */
bool sane();