updated feedback

This commit is contained in:
matlabbe
2026-07-13 15:11:20 -07:00
parent e024dc053f
commit 47cb6452bf
+5
View File
@@ -344,6 +344,7 @@ int main(int argc, char * argv[])
// Synchronize WM and the optimized graph. For all nodes in WM that
// are not in optimized graph, transfer to LTM.
std::map<int, double> wm = memory.getWorkingMem();
bool alreadySync = true;
for(std::map<int, double>::iterator iter=wm.lower_bound(0);
iter!=wm.end();
++iter)
@@ -352,8 +353,12 @@ int main(int argc, char * argv[])
{
memory.deleteLocation(iter->first, 0, true);
printf("Transferred %d from WM to LTM.\n", iter->first);
alreadySync = false;
}
}
if(alreadySync) {
printf("All nodes in WM are in the optimized graph, no need to transfer anything.\n");
}
}
printf("Saving back %ld optimized poses to database.\n", optimizedPoses.size());