25 #include <SimoxUtility/json.h>
40 armem::MemoryID robotEntityId{
"RobotState",
"Proprioception",
"Armar7",
"Armar7"};
42 std::vector<std::string> jointNames{
44 "Neck_2_Hemisphere_A",
45 "Neck_3_Hemisphere_B",
48 for (
const std::string& jointName : jointNames)
50 std::vector<std::string> attributes{
60 for (
const std::string& attribute : attributes)
62 properties.memoryToDebugObserver.plottedValues.push_back({
63 .entityID = robotEntityId,
64 .aronPath = {{
"joints", attribute, jointName}},
66 properties.memoryToDebugObserver.plottedValues.push_back({
67 .entityID = robotEntityId,
68 .aronPath = {{
"extraLongs", jointName +
".absoluteEncoderTicks"}},
73 simox::json::json j = properties.memoryToDebugObserver;
74 properties.memoryToDebugObserverJson = j.dump();
76 defs->optional(properties.memoryToDebugObserverJson,
77 "p.memoryToDebugObserverJson",
78 "Configuration of MemoryToDebugObserver in JSON format.");
80 defs->optional(properties.pollFrequencyHz,
"p.pollFrequencyHz");
92 return "MemoryToDebugObserver";
101 simox::json::json j = simox::json::json::parse(properties.memoryToDebugObserverJson);
102 j.get_to(properties.memoryToDebugObserver);
136 properties.memoryToDebugObserver, services};
140 while (task and not task->isStopped())
142 memoryToDebugObserver.pollOnce();
153 tab.group.setLabel(
"Todo ...");
162 if (tab.rebuild.exchange(
false))