Skip to content
Snippets Groups Projects
Commit a1ea8924 authored by Dominik Prossel's avatar Dominik Prossel
Browse files

fix querying object descriptions with instance name

parent d89b5b6e
No related branches found
No related tags found
1 merge request!357fix querying object descriptions with instance name
......@@ -120,11 +120,11 @@ namespace armarx::armem::articulated_object
const std::string className = splits.at(0) + "/" + splits.at(1); // `DATASET/NAME`
const std::string instanceName = splits.at(2);
const auto description = queryDescription(name, timestamp);
const auto description = queryDescription(className, timestamp);
if (not description)
{
ARMARX_WARNING << "Unknown object " << name;
ARMARX_WARNING << "Unknown object " << className;
return std::nullopt;
}
......@@ -204,16 +204,14 @@ namespace armarx::armem::articulated_object
std::optional<robot::RobotDescription>
Reader::queryDescription(const std::string& name, const armem::Time& timestamp)
{
// FIXME: why is `name` unused?
// Query all entities from provider.
armem::client::query::Builder qb;
// clang-format off
qb
.coreSegments().withName(properties.coreClassSegmentName)
.providerSegments().withName(properties.providerName)
.entities().all() // withName(name)
.providerSegments().all() //withName(properties.providerName)
.entities().withName(name)
.snapshots().latest();
// clang-format on
......
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