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

Update usages

parent 32ace0cd
No related branches found
No related tags found
2 merge requests!171Periodic merge of armem/dev into master,!170ArMem Viewer: Resolve Memory IDs
......@@ -92,12 +92,12 @@ namespace armarx
// Subscribe to example_entity updates
// Using a lambda:
memoryReader.subscribe(exampleEntityID, [&](const armem::MemoryID & exampleEntityID, const std::vector<armem::MemoryID>& snapshotIDs)
memoryNameSystem.subscribe(exampleEntityID, [&](const armem::MemoryID & exampleEntityID, const std::vector<armem::MemoryID>& snapshotIDs)
{
ARMARX_INFO << "Entity " << exampleEntityID << " was updated by " << snapshotIDs.size() << " snapshots.";
});
// Using a member function:
memoryReader.subscribe(exampleEntityID, this, &ExampleMemoryClient::processExampleEntityUpdate);
memoryNameSystem.subscribe(exampleEntityID, this, &ExampleMemoryClient::processExampleEntityUpdate);
task = new RunningTask<ExampleMemoryClient>(this, &ExampleMemoryClient::run);
......
......@@ -41,7 +41,7 @@ namespace armarx::armem::client::util
/**
* Subscribe with a class member function:
* @code
* reader.subscribe(entityID, this, &This::myCallback);
* listener.subscribe(entityID, this, &This::myCallback);
* @endcode
*/
template <class CalleeT>
......
......@@ -60,7 +60,7 @@ namespace armarx::armem::articulated_object
id.coreSegmentName = properties.coreClassSegmentName;
// listen to all provider segments!
memoryReader.subscribe(id, this, &Reader::updateKnownObjects);
memoryNameSystem.subscribe(id, this, &Reader::updateKnownObjects);
}
void Reader::updateKnownObject(const armem::MemoryID& snapshotId)
......
......@@ -70,7 +70,7 @@ namespace armarx::armem::articulated_object
id.setCoreSegmentID(refId); // listen to all provider segments!
updateKnownObjects();
memoryReader.subscribe(id, this, &Writer::updateKnownObjects);
memoryNameSystem.subscribe(id, this, &Writer::updateKnownObjects);
}
void Writer::updateKnownObject(const armem::MemoryID& snapshotId)
......
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