Skip to content
Snippets Groups Projects

Allow loading of LTM exports to the Viewer, although the memory servers have not been started

Merged Fabian Tërnava requested to merge armem_gui/allow_load_inactive_memories_ltm into master
@@ -267,7 +267,7 @@ namespace armarx::armem::gui
{
std::stringstream ss;
ss << "Memory name '" << memoryName
<< "' is unknown. Known are: " << simox::alg::to_string(simox::alg::get_keys(memoryData), ", ");
<< "' is unknown. Known are: " << simox::alg::join(simox::alg::get_keys(memoryData), ", ");
statusLabel->setText(QString::fromStdString(ss.str()));
return nullptr;
}
@@ -406,10 +406,7 @@ namespace armarx::armem::gui
TIMING_START(MemoryExport)
std::string status;
std::vector<wm::Memory> memoryDataVec;
std::transform(memoryData.begin(), memoryData.end(), std::back_inserter(memoryDataVec),
[](auto& el) { return el.second; });
std::vector<wm::Memory> memoryDataVec = simox::alg::get_values(memoryData);
diskControl->storeOnDisk(directory, memoryDataVec, &status);
statusLabel->setText(QString::fromStdString(status));
Loading