From 77956873e753dbbef80fdb4f6574e13d04691203 Mon Sep 17 00:00:00 2001 From: Joana <joana.plewnia@kit.edu> Date: Tue, 30 Jul 2024 18:08:54 +0200 Subject: [PATCH] small refactoring --- .../RobotAPI/libraries/armem/server/MemoryToIceAdapter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/RobotAPI/libraries/armem/server/MemoryToIceAdapter.cpp b/source/RobotAPI/libraries/armem/server/MemoryToIceAdapter.cpp index 226b1f51c..983c16d71 100644 --- a/source/RobotAPI/libraries/armem/server/MemoryToIceAdapter.cpp +++ b/source/RobotAPI/libraries/armem/server/MemoryToIceAdapter.cpp @@ -387,20 +387,17 @@ namespace armarx::armem::server ARMARX_INFO << "Reloading of data from LTM into WM triggered"; std::array<std::string, 2> names = {"Localization", "Proprioception"}; armem::wm::Memory m; - //this->longtermMemory->loadAllReferences(m); this->longtermMemory->forEachCoreSegment( [&](auto& core) { if(std::find(names.begin(), names.end(), core.id().coreSegmentName) != names.end()){ - ARMARX_INFO << core.id().coreSegmentName; - + ARMARX_INFO << "Adding " << core.id().coreSegmentName << " from LTM to WM"; armem::wm::CoreSegment s; core.loadAllReferences(s); m.addCoreSegment(s); } } ); - armarx::armem::wm::Memory mem = this->longtermMemory->loadAllAndResolve(); auto com = armem::toCommit(m); auto res = this->commit(com); return res; -- GitLab