From 200a2a44c4e21a3d906f128a224d597d15daef4b Mon Sep 17 00:00:00 2001
From: Fabian Reister <fabian.reister@kit.edu>
Date: Thu, 27 May 2021 08:27:32 +0200
Subject: [PATCH] viz::Box: initializing pose if not set explicitly

---
 source/RobotAPI/components/ArViz/Client/Elements.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/source/RobotAPI/components/ArViz/Client/Elements.h b/source/RobotAPI/components/ArViz/Client/Elements.h
index 297a22469..66f07992e 100644
--- a/source/RobotAPI/components/ArViz/Client/Elements.h
+++ b/source/RobotAPI/components/ArViz/Client/Elements.h
@@ -122,6 +122,13 @@ namespace armarx::viz
         )
             : Box(name, b)
         {}
+
+        Box(std::string const& id)
+            : ElementOps(id)
+        {
+            pose(Eigen::Matrix4f::Identity());
+        }
+
     };
 
 
-- 
GitLab