Skip to content
Snippets Groups Projects

Change ExampleMemoryClient

Merged Raphael Grimm requested to merge ExampleMemoryClient_SinWaveOutput into master
1 file
+ 10
4
Compare changes
  • Side-by-side
  • Inline
@@ -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;
Loading