aboutsummaryrefslogtreecommitdiff
path: root/tools/lighthousefind_tori/main.c
diff options
context:
space:
mode:
authormwturvey <michael.w.turvey@intel.com>2017-02-14 16:47:08 -0700
committermwturvey <michael.w.turvey@intel.com>2017-02-14 16:47:08 -0700
commitc4e11bc415aa17845bad53454e89e7e0703b8c73 (patch)
treed4f95578785bd0ff8c8e64de552141005d54158c /tools/lighthousefind_tori/main.c
parentb1ccf74484f7400ebd6827fa6aa897b735f40d8e (diff)
downloadlibsurvive-c4e11bc415aa17845bad53454e89e7e0703b8c73.tar.gz
libsurvive-c4e11bc415aa17845bad53454e89e7e0703b8c73.tar.bz2
Transitioned to a gradient-descent only solution
Added empirically derived fudge factor to fitness function Eliminated dangerous spurious local minimum near the origin. Now taking into account the normals No longer using any of the point cloud stuff Huge speed improvements Huge memory usage improvements Added code smell. Will need to deodorize later.
Diffstat (limited to 'tools/lighthousefind_tori/main.c')
-rw-r--r--tools/lighthousefind_tori/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lighthousefind_tori/main.c b/tools/lighthousefind_tori/main.c
index aa51448..ee56b37 100644
--- a/tools/lighthousefind_tori/main.c
+++ b/tools/lighthousefind_tori/main.c
@@ -51,6 +51,9 @@ static void runTheNumbers()
to->sensor[sensorCount].point.x = hmd_points[i * 3 + 0];
to->sensor[sensorCount].point.y = hmd_points[i * 3 + 1];
to->sensor[sensorCount].point.z = hmd_points[i * 3 + 2];
+ to->sensor[sensorCount].normal.x = hmd_norms[i * 3 + 0];
+ to->sensor[sensorCount].normal.y = hmd_norms[i * 3 + 1];
+ to->sensor[sensorCount].normal.z = hmd_norms[i * 3 + 2];
to->sensor[sensorCount].theta = hmd_point_angles[i * 2 + 0] + LINMATHPI / 2;
to->sensor[sensorCount].phi = hmd_point_angles[i * 2 + 1] + LINMATHPI / 2;
sensorCount++;