Go to the documentation of this file.
44 template <
typename 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)
93 const auto o = tryCast<AronClass>(entityInstance);
123 template <
typename AronClass>
125 auto pred) -> std::vector<decltype(pred(AronClass()))>
129 std::vector<decltype(pred(AronClass()))> outV;
131 if (entities.empty())
137 for (
const auto &[
s, entity] : entities)
141 const auto o = tryCast<AronClass>(entityInstance);
145 outV.push_back(pred(*o));
165 std::optional<armarx::armem::wm::Memory>
182 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.