Go to the documentation of this file.
43 template <
typename AronClass>
44 std::optional<AronClass>
65 return AronClass::FromAron(item.
data());
80 template <
typename AronClass>
81 std::vector<AronClass>
82 allOfType(
const std::map<std::string, wm::Entity>& entities)
86 std::vector<AronClass> outV;
89 for (
const auto& [
s, entity] : entities)
91 entity.forEachInstance(
94 const auto o = tryCast<AronClass>(entityInstance);
124 template <
typename AronClass>
127 -> std::vector<decltype(pred(AronClass()))>
131 std::vector<decltype(pred(AronClass()))> outV;
133 if (entities.empty())
139 for (
const auto& [
s, entity] : entities)
141 entity.forEachInstance(
144 const auto o = tryCast<AronClass>(entityInstance);
148 outV.push_back(pred(*o));
184 std::optional<std::pair<armarx::aron::data::DictPtr, armarx::aron::type::ObjectPtr>>
A base class for aron exceptions.
auto transformAllOfType(const std::map< std::string, wm::Entity > &entities, auto pred) -> std::vector< decltype(pred(AronClass()))>
filter + transform for entities.
Client-side working entity instance.
std::vector< AronClass > allOfType(const std::map< std::string, wm::Entity > &entities)
Returns all entities that can be cast to AronClass.
Brief description of class memory.
std::optional< armarx::armem::wm::Memory > resolveID(armarx::armem::client::MemoryNameSystem &mns, const armarx::armem::MemoryID &memoryID)
resolve a single MemoryID with the given MemoryNameSystem.
std::shared_ptr< Value > value()
Client-side working memory.
The memory name system (MNS) client.
const DataT & data() const
std::optional< std::pair< armarx::aron::data::DictPtr, armarx::aron::type::ObjectPtr > > extractDataAndType(const armarx::armem::wm::Memory &memory, const armarx::armem::MemoryID &memoryID)
get the data and type of the given MemoryID in the given Memory.
double s(double t, double s0, double v0, double a0, double j)
std::optional< AronClass > tryCast(const wm::EntityInstance &item)
Tries to cast a armem::EntityInstance to AronClass.