Skip to content
Snippets Groups Projects
Commit ce15dc0e authored by Fabian Reister's avatar Fabian Reister
Browse files

RobotStateMemory: memory name via property

parent cc50883b
No related branches found
No related tags found
2 merge requests!170ArMem Viewer: Resolve Memory IDs,!164Feature/armem robot vision (previously armem_robot_mapping)
......@@ -71,9 +71,15 @@ namespace armarx::armem::server::robot_state
armarx::PropertyDefinitionsPtr RobotStateMemory::createPropertyDefinitions()
{
armarx::PropertyDefinitionsPtr defs = new ComponentPropertyDefinitions(getConfigIdentifier());
const std::string prefix = "mem.";
workingMemory.name() = "RobotState";
defs->optional(workingMemory.name(), prefix + "MemoryName", "Name of this memory server.");
const std::string robotUnitPrefix{sensorValuePrefix};
armarx::PropertyDefinitionsPtr defs = new ComponentPropertyDefinitions(getConfigIdentifier());
defs->optional(robotUnitSensorPrefix, robotUnitPrefix + "SensorValuePrefix", "Prefix of all sensor values");
defs->optional(robotUnitMemoryBatchSize, robotUnitPrefix + "MemoryBatchSize", "The size of the entity snapshot to send to the memory. Min is 1");
defs->optional(robotUnitPollFrequency, robotUnitPrefix + "UpdateFrequency", "The frequency in Hz to store values. All other values get discarded. Min is 1, max is " + std::to_string(ROBOT_UNIT_MAXIMUM_FREQUENCY));
......@@ -124,7 +130,7 @@ namespace armarx::armem::server::robot_state
ArmarXDataPath::getAbsolutePath(robotUnitConfigPath, robotUnitConfigPath, includePaths);
workingMemory.name() = workingMemoryName;
// workingMemory.name() = workingMemoryName;
}
......
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