Skip to content
Snippets Groups Projects
Commit 3f29058f authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

fix missing member history()

parent a02294b8
No related branches found
No related tags found
No related merge requests found
......@@ -88,18 +88,15 @@ namespace armarx::armem
// loop over all entities and their snapshots
for (const auto &[s, entity] : entities)
{
for (const auto &[ss, entitySnapshot] : entity.history())
entity.forEachInstance([&outV](const wm::EntityInstance& entityInstance)
{
for (const auto& entityInstance : entitySnapshot.instances())
{
const auto o = tryCast<AronClass>(entityInstance);
const auto o = tryCast<AronClass>(entityInstance);
if (o)
{
outV.push_back(*o);
}
if (o)
{
outV.push_back(*o);
}
}
});
}
return outV;
......@@ -139,25 +136,15 @@ namespace armarx::armem
// loop over all entities and their snapshots
for (const auto &[s, entity] : entities)
{
if (entity.history().empty())
entity.forEachInstance([&outV, &pred](const wm::EntityInstance& entityInstance)
{
ARMARX_WARNING << "Empty history for " << s;
}
ARMARX_DEBUG << "History size: " << entity.history().size();
const auto o = tryCast<AronClass>(entityInstance);
for (const auto &[ss, entitySnapshot] : entity.history())
{
for (const auto& entityInstance : entitySnapshot.instances())
if (o)
{
const auto o = tryCast<AronClass>(entityInstance);
if (o)
{
outV.push_back(pred(*o));
}
outV.push_back(pred(*o));
}
}
});
}
return outV;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment