Skip to content
Snippets Groups Projects
Commit 304bc970 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Limit history size of object instance segment by default

parent c59124b3
No related branches found
No related tags found
No related merge requests found
......@@ -215,6 +215,22 @@ ArmarX.AdditionalPackages = ArmarXObjects
# ArmarX.ObjectMemory.mem.articulated.inst.MaxHistorySize = -1
# ArmarX.ObjectMemory.mem.attachments.CoreSegmentName: Name of the object instance core segment.
# Attributes:
# - Default: Attachments
# - Case sensitivity: yes
# - Required: no
# ArmarX.ObjectMemory.mem.attachments.CoreSegmentName = Attachments
# ArmarX.ObjectMemory.mem.attachments.MaxHistorySize: Maximal size of object poses history (-1 for infinite).
# Attributes:
# - Default: -1
# - Case sensitivity: yes
# - Required: no
# ArmarX.ObjectMemory.mem.attachments.MaxHistorySize = -1
# ArmarX.ObjectMemory.mem.cls.CoreSegmentName: Name of the object clazz core segment.
# Attributes:
# - Default: Class
......@@ -303,10 +319,10 @@ ArmarX.AdditionalPackages = ArmarXObjects
# ArmarX.ObjectMemory.mem.inst.MaxHistorySize: Maximal size of object poses history (-1 for infinite).
# Attributes:
# - Default: -1
# - Default: 25
# - Case sensitivity: yes
# - Required: no
# ArmarX.ObjectMemory.mem.inst.MaxHistorySize = -1
# ArmarX.ObjectMemory.mem.inst.MaxHistorySize = 25
# ArmarX.ObjectMemory.mem.inst.calibration.offset: Offset for the node to be calibrated.
......
......@@ -159,7 +159,8 @@ namespace armarx::armem::server::obj::instance
struct Properties
{
std::string coreSegmentName = "Instance";
long maxHistorySize = -1;
// -1 would be infinite, but this can let the RAM grow quickly.
long maxHistorySize = 25;
bool discardSnapshotsWhileAttached = true;
};
Properties p;
......
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