summaryrefslogtreecommitdiff
path: root/src/body.cpp
diff options
context:
space:
mode:
authorMartin Miller2017-03-22 15:47:00 -0500
committerMartin Miller2017-03-22 15:47:00 -0500
commit50834b4ba0904a13242476cc515f85fda4f30844 (patch)
tree4f8fa5f22710482d5b9df394185921ad4889a44c /src/body.cpp
parentd020ec03598b90fb8d78194554471b1cfb4794dd (diff)
downloadrefslam-50834b4ba0904a13242476cc515f85fda4f30844.zip
refslam-50834b4ba0904a13242476cc515f85fda4f30844.tar.gz
Add feature handling to state
Diffstat (limited to 'src/body.cpp')
-rw-r--r--src/body.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/body.cpp b/src/body.cpp
index 2a907a1..caa7cb9 100644
--- a/src/body.cpp
+++ b/src/body.cpp
@@ -207,7 +207,6 @@ Body::skewSymmetric ( const Vector3d &x )
return y;
} /* ----- end of method Body::skewSymmetric ----- */
-
void
Body::unicsv ( )
{
@@ -225,3 +224,16 @@ Body::accelerometer_bias ( const Vector3d &b )
return ;
} /* ----- end of method State::accelerometer_bias ----- */
+/*
+ *--------------------------------------------------------------------------------------
+ * Class: Body
+ * Method: Body :: ned
+ * Description: Returns the body position in NED coordinates.
+ *--------------------------------------------------------------------------------------
+ */
+Vector3d
+Body::ned ( )
+{
+ return X.segment(0,3) ;
+} /* ----- end of method Body::ned ----- */
+