8 std::vector<StaticAffordance>
11 std::vector<StaticAffordance>
ret;
12 if (not js.contains(
"affordances"))
14 ARMARX_WARNING <<
"The affordances file has the wrong structure. Missing key "
19 for (
const auto& affordance : js[
"affordances"].get<std::vector<std::string>>())
27 std::vector<LocationAffordance>
30 std::vector<LocationAffordance>
ret;
31 if (not js.contains(
"location_affordances"))
33 ARMARX_WARNING <<
"The affordances file has the wrong structure. Missing key "
34 "'location_affordances'.";
38 for (
const auto& [locationName, affordances] :
39 js[
"location_affordances"].get<std::map<std::string, std::vector<std::string>>>())
41 for (
const auto& affordance : affordances)