From 8c3e1e57edd7c1c5a3fff6b8b9835a46c74d5bc1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20Gr=C3=B6ger?= <tobias.groeger@student.kit.edu>
Date: Tue, 16 Aug 2022 03:07:21 +0200
Subject: [PATCH] Use eigen conversions

---
 .../components/dynamic_scene_provider/HumanTracker.cpp         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/source/armarx/navigation/components/dynamic_scene_provider/HumanTracker.cpp b/source/armarx/navigation/components/dynamic_scene_provider/HumanTracker.cpp
index a63f8a30..4adc1106 100644
--- a/source/armarx/navigation/components/dynamic_scene_provider/HumanTracker.cpp
+++ b/source/armarx/navigation/components/dynamic_scene_provider/HumanTracker.cpp
@@ -3,6 +3,7 @@
 
 #include "ArmarXCore/core/exceptions/local/ExpressionException.h"
 
+#include <armarx/navigation/conversions/eigen.h>
 #include <range/v3/range/conversion.hpp>
 #include <range/v3/view/transform.hpp>
 
@@ -29,7 +30,7 @@ namespace armarx::navigation::components::dynamic_scene_provider
         centerPos /= size;
 
         core::Pose2D pose = core::Pose2D::Identity();
-        pose.translation() = centerPos.head(2);
+        pose.translation() = conv::to2D(centerPos);
         //TODO: angle
         pose.linear() = Eigen::Rotation2Df(0).toRotationMatrix();
 
-- 
GitLab