3#include <SimoxUtility/algorithm/string.h>
7#include <RobotAPI/libraries/armem_skills/aron/Skill.aron.generated.h>
22 const std::string& prefix)
38 auto commitDataAron = std::make_shared<aron::data::Dict>(commitData);
41 skills::arondto::SkillExecutionRequest request;
42 request.fromAron(commitDataAron);
45 .skillId =
SkillID{.providerId =
ProviderID{.providerName =
""}, .skillName =
""},
58 skills::arondto::SkillExecutionRequest request;
61 auto aron = request.toAron();
64 auto& entityUpdate = comm.
add();
68 skillExecutionMemID.
entityName = request.skillId.skillName;
70 entityUpdate.entityID = skillExecutionMemID;
71 entityUpdate.instancesData = {
aron};
72 entityUpdate.confidence = 1.0;
77 auto& entityUpdate = comm.
add();
81 skillExecutionMemID.
entityName =
"All Skill Execution Requests";
83 entityUpdate.entityID = skillExecutionMemID;
84 entityUpdate.instancesData = {
aron};
85 entityUpdate.confidence = 1.0;
95 const std::string& memoryName,
99 std::size_t snapshotCount = 0;
103 coreSegment->doLockedExclusive(
106 coreSegment->forEachSnapshot(
112 slice.setName(memoryName);
118 coreSegment->clear();
121 return snapshotCount;
std::string providerSegmentName
Helps connecting a Memory server to the Ice interface.
A memory storing data on the hard drive and in mongodb (needs 'armarx memory start' to start the mong...
void directlyStore(const armem::wm::Memory &memory, bool simulatedVersion=false)
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
void setDefaultMaxHistorySize(int64_t maxHistorySize)
virtual void init() override
MemoryToIceAdapter & iceMemory
server::wm::CoreSegment * segmentPtr
Client-side working memory entity snapshot.
Client-side working memory.
std::size_t clearAndConsolidate(armem::server::ltm::Memory <m, const std::string &memoryName, bool &consolidated)
Clear all snapshots from the working memory of this core segment, consolidating them into ltm first i...
skills::SkillExecutionRequest convertCommit(const aron::data::dto::DictPtr &commitData)
static constexpr const char * CoreSegmentName
SkillExecutionRequestCoreSegment(armem::server::MemoryToIceAdapter &iceMemory)
void defineProperties(PropertyDefinitionsPtr defs, const std::string &prefix)
void addSkillExecutionRequest(const skills::SkillExecutionRequest &info)
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
void fromAron(const arondto::MemoryID &dto, MemoryID &bo)
Commit toCommit(const ContainerT &container)
void toAron(arondto::MemoryID &dto, const MemoryID &bo)
::IceInternal::Handle< Dict > DictPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
This file is part of ArmarX.
A bundle of updates to be sent to the memory.