diff --git a/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp b/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp index 0d68747a5921a40555c9a53e7eee610694b9c5b7..c25599eaa8b78205d1cfe5129471aca2c5d05df9 100644 --- a/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp +++ b/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp @@ -140,7 +140,11 @@ namespace armarx int i = 0; while (!task->isStopped()) { - commitSingleSnapshot(entityID); + commitExampleData(); + if (i++ < 100) + { + commitSingleSnapshot(entityID); + } c.waitForCycleDuration(); } } @@ -335,6 +339,7 @@ namespace armarx armem::Time time = armem::Time::now(); armem::Commit commit; + //default { armem::EntityUpdate& update = commit.updates.emplace_back(); update.entityID = providerID.withEntityName("default"); @@ -343,6 +348,7 @@ namespace armarx armem::example::ExampleData primitive; update.instancesData = { primitive.toAron() }; } + //the answer { armem::EntityUpdate& update = commit.updates.emplace_back(); update.entityID = providerID.withEntityName("the answer"); @@ -350,7 +356,7 @@ namespace armarx armem::example::ExampleData data; data.the_bool = true; - data.the_double = 2 * 42.42; + data.the_double = std::sin(time.toSecondsDouble()); data.the_float = 21.5; data.the_int = 42; data.the_long = 424242;