diff --git a/scenarios/ArMemObjectMemory/config/ObjectMemory.cfg b/scenarios/ArMemObjectMemory/config/ObjectMemory.cfg index 77b3f690f0906f31315d4f51d744bc02ab0bfe8c..df483eb31778702f71c8a1ff6c13bf260f86c605 100644 --- a/scenarios/ArMemObjectMemory/config/ObjectMemory.cfg +++ b/scenarios/ArMemObjectMemory/config/ObjectMemory.cfg @@ -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. diff --git a/source/RobotAPI/libraries/armem_objects/server/instance/Segment.h b/source/RobotAPI/libraries/armem_objects/server/instance/Segment.h index 54314054a38f5f104552c045fe37eb8b401651ae..5b7c268bb28530b82906bc07cee31431d6738f5c 100644 --- a/source/RobotAPI/libraries/armem_objects/server/instance/Segment.h +++ b/source/RobotAPI/libraries/armem_objects/server/instance/Segment.h @@ -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;