summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMartin Miller2017-03-26 16:33:20 -0500
committerMartin Miller2017-03-26 16:33:20 -0500
commitb2cba6dc96c22f35fcf0df75527868cc36e93760 (patch)
tree6973a09a6b8daa4c515e0c3c7bdc4839e3b9fabb /src/main.cpp
parent89937f85344bc389c934d15ed606645e289620d0 (diff)
downloadrefslam-b2cba6dc96c22f35fcf0df75527868cc36e93760.zip
refslam-b2cba6dc96c22f35fcf0df75527868cc36e93760.tar.gz
Fully implemented EKF.
Still needs to be debugged as the result is way off, but it is all there.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bcf6b37..85bf09f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -47,6 +47,16 @@ imgCallback(message &msg, State &mu, Camera &cam, const Quaterniond &q)
{
if (seenutm && seenpva && seencov) {
std::vector<measurement_t> z;
+
+ Vector3d tip;
+ tip << 0.6*3.43, 0, -0.34;
+ tip = q._transformVector(tip);
+
+ measurement_t height;
+ height.z_type = HEIGHT;
+ height.height = tip[2];
+ z.push_back(height);
+
int id,sx,sy,rx,ry;
strcat(msg.image_names[0],".txt");
FILE *fin;