Go to the documentation of this file.
3 #include <SimoxUtility/algorithm/string.h>
8 #include <RobotAPI/libraries/armem_skills/aron/Skill.aron.generated.h>
23 const std::string& prefix)
42 for (
const auto& [
s, d] :
skills)
44 armarx::skills::arondto::SkillDescription skillDescription;
48 auto& entityUpdate = commit.
add();
53 entityUpdate.instancesData = {skillDescription.toAron()};
54 entityUpdate.entityID = provId.withEntityName(d.skillId.skillName);
64 skills.erase(providerName);
This file is part of ArmarX.
A bundle of updates to be sent to the memory.
Helps connecting a Memory server to the Ice interface.
std::map< SkillID, SkillDescription > providedSkills
float confidence
An optional confidence, may be used for things like decay.
void removeSkillProvider(const std::string &providerName)
void toAron(arondto::MemoryID &dto, const MemoryID &bo)
MemoryID withProviderSegmentName(const std::string &name) const
virtual void init() override
MemoryToIceAdapter & iceMemory
void setDefaultMaxHistorySize(int64_t maxHistorySize)
void defineProperties(PropertyDefinitionsPtr defs, const std::string &prefix)
double s(double t, double s0, double v0, double a0, double j)
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
data::CommitResult commitLocking(const data::Commit &commitIce, Time timeArrived)
ExecutableSkillLibraryCoreSegment(armem::server::MemoryToIceAdapter &iceMemory)
void addSkillProvider(const skills::ProviderInfo &info)