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

allow lists in affordance.json

parent 49cef082
No related branches found
No related tags found
No related merge requests found
......@@ -36,11 +36,14 @@ namespace armarx::priorknowledge::util
return ret;
}
for (const auto& [affordance, locationId] :
js["locatable_affordances"].get<std::map<std::string, std::string>>())
for (const auto& [affordance, locationIds] :
js["locatable_affordances"].get<std::map<std::string, std::vector<std::string>>>())
{
LocatableAffordance a(sourceId, affordance, locationId);
ret.push_back(a);
for (const auto& locationId : locationIds)
{
LocatableAffordance a(sourceId, affordance, locationId);
ret.push_back(a);
}
}
return ret;
}
......
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