Skip to content
Snippets Groups Projects
Commit 8bb87070 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Also load names for FramedBoxedLocation

parent f8bbcd9c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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