Go to the documentation of this file.
16 #include <armarx/navigation/human/aron/Human.aron.generated.h>
28 const std::string& providerName,
31 std::lock_guard g{writeMutex};
36 if (not result.success)
45 const auto entityID = providerId.withEntityName(
"humans").withTimestamp(
timestamp);
48 update.entityID = entityID;
52 std::back_inserter(
update.instancesData),
55 navigation::human::arondto::Human dto;
69 if (not updateResult.success)
74 return updateResult.success;
80 const std::string& providerName,
83 std::lock_guard g{writeMutex};
88 if (not result.success)
97 const auto entityID = providerId.withEntityName(
"groups").withTimestamp(
timestamp);
100 update.entityID = entityID;
104 std::back_inserter(
update.instancesData),
107 navigation::human::arondto::HumanGroup dto;
121 if (not updateResult.success)
126 return updateResult.success;
132 return "mem.nav.human.";
135 armarx::armem::client::util::SimpleWriterBase::SimpleWriterBase::Properties
data::AddSegmentResult addSegment(const std::string &coreSegmentName, const std::string &providerSegmentName, bool clearWhenExists=false) const
Result of an EntityUpdate.
const std::string NavigationMemoryName
std::vector< Human > Humans
bool store(const armarx::navigation::human::Humans &humans, const std::string &providerName, const armem::Time ×tamp)
armem::client::Writer & memoryWriter()
An update of an entity for a specific point in time.
Properties defaultProperties() const override
CommitResult commit(const Commit &commit) const
Writes a Commit to the memory.
const std::string HumanCoreSegmentName
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
auto transform(const Container< InputT, Alloc > &in, OutputT(*func)(InputT const &)) -> Container< OutputT, typename std::allocator_traits< Alloc >::template rebind_alloc< OutputT >>
Convenience function (with less typing) to transform a container of type InputT into the same contain...
Represents a point in time.
std::shared_ptr< Dict > DictPtr
std::vector< HumanGroup > HumanGroups
std::string propertyPrefix() const override
const armem::MemoryID MemoryID