diff --git a/source/RobotAPI/libraries/PriorKnowledge/util/LocationLoader/LocationLoader.cpp b/source/RobotAPI/libraries/PriorKnowledge/util/LocationLoader/LocationLoader.cpp index ebde885d2ffcd0128385815954e0b2b5b2ecf9b3..9a667a933b40e6da8f24810862a79dd934205e6c 100644 --- a/source/RobotAPI/libraries/PriorKnowledge/util/LocationLoader/LocationLoader.cpp +++ b/source/RobotAPI/libraries/PriorKnowledge/util/LocationLoader/LocationLoader.cpp @@ -123,12 +123,19 @@ namespace armarx::priorknowledge::util extents, framedOrientedBox.at("extents").get<std::vector<float>>()); // load the 4x4 matrix + std::optional<Names> names; + if (auto it = j.find("names"); it != j.end()) + { + it->get_to(names.emplace()); + } + FramedBoxedLocationPtr loc(new FramedBoxedLocation(LocationId(source, locationName), LocationType::FRAMED_BOXED_LOCATION, frame, agent, pose, - extents)); + extents, + names)); return loc; }