diff --git a/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp b/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp index 5ed005e7a82c5c5eb24b056d0f5d71e10ebcf380..5d549351f1f6e126f57e1a459a01f95c851871a5 100644 --- a/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp +++ b/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp @@ -132,11 +132,15 @@ namespace armarx queryExampleData(); } - CycleUtil c(1000); + CycleUtil c(100); int i = 0; - while (!task->isStopped() && i++ < 100) + while (!task->isStopped()) { - commitSingleSnapshot(entityID); + commitExampleData(); + if (i++ < 100) + { + commitSingleSnapshot(entityID); + } c.waitForCycleDuration(); } } @@ -311,6 +315,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"); @@ -319,6 +324,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"); @@ -326,7 +332,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;