Go to the documentation of this file.
30 #include <VisionX/libraries/armem_human/aron/Profile.aron.generated.h>
36 namespace fs = std::filesystem;
47 Base(iceMemory, CORE_SEGMENT_NAME,
armarx::human::arondto::
Profile::ToAronType(), 64)
61 "Load profiles from prior knowledge on startup.");
63 prefix +
"pk.packageName",
64 "ArmarX package to load human profiles from.");
88 Finder finder(dataPackageName);
89 const std::vector<Info> infos = finder.
findAll();
91 ARMARX_INFO <<
"Loading " << infos.size() <<
" human profiles ...";
93 for (
const Info& info : infos)
95 if (std::optional<Profile> profile = info.loadProfile())
103 update.instancesData = {profile->toAron()};
Segment(armem::server::MemoryToIceAdapter &iceMemory)
A bundle of updates to be sent to the memory.
Helps connecting a Memory server to the Ice interface.
Used to find human profiles in the Prior Knowledge Data repository [1].
static const std::string CORE_SEGMENT_NAME
std::string coreSegmentName
std::vector< EntityUpdate > updates
The entity updates.
MemoryID withProviderSegmentName(const std::string &name) const
wm::CoreSegment & getCoreSegment()
virtual void init() override
armarx::human::arondto::Profile Profile
An update of an entity for a specific point in time.
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
std::vector< Info > findAll(bool checkPaths=true) const
Represents a point in time.
MemoryID withEntityName(const std::string &name) const
MemoryToIceAdapter & iceMemory
const armem::MemoryID ProfileCoreSegmentID
void loadPriorKnowledge()
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
This file offers overloads of toIce() and fromIce() functions for STL container types.
data::CommitResult commit(const data::Commit &commitIce, Time timeArrived)
static const std::string DefaultPackageName
Accessor for human profile files.
PriorKnowledge priorKnowledge