Skip to content
Snippets Groups Projects
Commit 8b777a73 authored by Fabian Peller's avatar Fabian Peller
Browse files

Merge branch 'ExampleMemoryClient_SinWaveOutput' into 'master'

Change ExampleMemoryClient

See merge request ArmarX/RobotAPI!150
parents 390f730f 5e1ff54b
No related branches found
No related tags found
1 merge request!150Change ExampleMemoryClient
......@@ -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;
......
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