Skip to content
Snippets Groups Projects
Commit c91a4a09 authored by Your Name's avatar Your Name
Browse files

fix: armem_robot_state/client/common/RobotReader: try-catch block

parent 8ce8e11b
No related branches found
No related tags found
No related merge requests found
......@@ -220,13 +220,18 @@ namespace armarx::armem::robot_state
}
};
const auto result = transformReader.lookupTransform(query);
if (not result)
{
try {
const auto result = transformReader.lookupTransform(query);
if (not result)
{
return std::nullopt;
}
return result.transform;
} catch (...) {
ARMARX_WARNING << GetHandledExceptionString();
return std::nullopt;
}
return result.transform;
}
......
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