Skip to content
Snippets Groups Projects
Commit 53d88288 authored by armar-user's avatar armar-user
Browse files

fixed issues with ltm storage

parent e819028f
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ namespace armarx::armem::server::ltm
virtual void _store(const armem::wm::Memory& memory) = 0;
public:
bool enabled = true;
bool enabled = false;
protected:
mutable std::recursive_mutex ltm_mutex;
......
......@@ -21,8 +21,6 @@ namespace armarx::armem::server::ltm::disk
{
ARMARX_CHECK(!p.empty());
util::ensureFolderExists(p);
MemoryID m;
m.memoryName = p.filename();
return m;
......
......@@ -32,14 +32,11 @@ namespace armarx::armem::server::plugins
}
// stuff for ltm
if (longtermMemory.enabled) // if not explicitly set to false in constructor of component (then we dont need the params)
if (not properties->hasDefinition(prefix + "ltm.enabled"))
{
if (not properties->hasDefinition(prefix + "ltm.enabled"))
{
properties->optional(longtermMemory.enabled, prefix + "ltm.enabled");
}
//longtermMemory.createPropertyDefinitions(properties, "ltm.");
properties->optional(longtermMemory.enabled, prefix + "ltm.enabled");
}
longtermMemory.createPropertyDefinitions(properties, prefix + "ltm.");
// Publish memory updates topic
properties->topic(memoryTopic, memoryTopicDefaultName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment