Skip to content
Snippets Groups Projects
Commit 9332f93e authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

Merge branch 'armem/rename-time-created' into 'main'

Rename time created

See merge request !13
parents 1f1b45ee 59ad0441
No related branches found
No related tags found
1 merge request!13Rename time created
...@@ -39,7 +39,7 @@ namespace armarx::manipulation::memory::client::core ...@@ -39,7 +39,7 @@ namespace armarx::manipulation::memory::client::core
.withCoreSegmentName(std::string(coreSegmentName)) .withCoreSegmentName(std::string(coreSegmentName))
.withProviderSegmentName(clientID).withEntityName( .withProviderSegmentName(clientID).withEntityName(
entityName.has_value() ? entityName.value() : "ActionHypothesis").withTimestamp(ts); entityName.has_value() ? entityName.value() : "ActionHypothesis").withTimestamp(ts);
update.timeCreated = armem::Time(armarx::Duration::MicroSeconds(bo.observationTime)); update.referencedTime = armem::Time(armarx::Duration::MicroSeconds(bo.observationTime));
auto dto = toAron(bo); auto dto = toAron(bo);
update.instancesData = {dto.toAron()}; update.instancesData = {dto.toAron()};
return update; return update;
......
...@@ -44,7 +44,7 @@ namespace armarx::manipulation::memory::client::core ...@@ -44,7 +44,7 @@ namespace armarx::manipulation::memory::client::core
{ {
if (um.hypothesis.has_value()) if (um.hypothesis.has_value())
{ {
update.timeCreated = armem::Time( update.referencedTime = armem::Time(
armarx::core::time::Duration::MicroSeconds(um.hypothesis->observationTime)); armarx::core::time::Duration::MicroSeconds(um.hypothesis->observationTime));
time_set = true; time_set = true;
break; break;
...@@ -52,7 +52,7 @@ namespace armarx::manipulation::memory::client::core ...@@ -52,7 +52,7 @@ namespace armarx::manipulation::memory::client::core
} }
if (!time_set) if (!time_set)
{ {
update.timeCreated = armem::Time::Now(); update.referencedTime = armem::Time::Now();
} }
auto dto = toAron(bo); auto dto = toAron(bo);
update.instancesData = {dto.toAron()}; update.instancesData = {dto.toAron()};
......
...@@ -39,7 +39,7 @@ namespace armarx::manipulation::memory::client::core ...@@ -39,7 +39,7 @@ namespace armarx::manipulation::memory::client::core
.withCoreSegmentName(std::string(coreSegmentName)) .withCoreSegmentName(std::string(coreSegmentName))
.withProviderSegmentName(clientID).withEntityName( .withProviderSegmentName(clientID).withEntityName(
entityName.has_value() ? entityName.value() : "ExecutedAction").withTimestamp(ts); entityName.has_value() ? entityName.value() : "ExecutedAction").withTimestamp(ts);
update.timeCreated = *bo.startTime; update.referencedTime = *bo.startTime;
auto dto = toAron(bo); auto dto = toAron(bo);
update.instancesData = {dto.toAron()}; update.instancesData = {dto.toAron()};
return update; return update;
......
...@@ -38,7 +38,7 @@ namespace armarx::manipulation::memory::client::core ...@@ -38,7 +38,7 @@ namespace armarx::manipulation::memory::client::core
.withCoreSegmentName(std::string(coreSegmentName)) .withCoreSegmentName(std::string(coreSegmentName))
.withProviderSegmentName(clientID).withEntityName( .withProviderSegmentName(clientID).withEntityName(
entityName.has_value() ? entityName.value() : "ManipulationProcess").withTimestamp(ts); entityName.has_value() ? entityName.value() : "ManipulationProcess").withTimestamp(ts);
update.timeCreated = *bo.executedAction->startTime; update.referencedTime = *bo.executedAction->startTime;
auto dto = toAron(bo); auto dto = toAron(bo);
update.instancesData = {dto.toAron()}; update.instancesData = {dto.toAron()};
return update; return update;
......
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