Skip to content
Snippets Groups Projects
Commit 8c52d218 authored by Fabian Reister's avatar Fabian Reister
Browse files

making sure that package path is valid

parent a0fb9426
No related branches found
No related tags found
1 merge request!313Issues with PackagePath and robot visualization
#include "Segment.h"
#include <filesystem>
#include <SimoxUtility/algorithm/string/string_tools.h>
#include <ArmarXCore/core/application/properties/PluginAll.h>
......@@ -105,6 +106,9 @@ namespace armarx::armem::server::robot_state::description
.xml = {package, robotFileRelPath}
};
// make sure that the package path is valid
ARMARX_CHECK(std::filesystem::exists(robotDescription.xml.toSystemPath()));
commitRobotDescription(robotDescription);
}
else
......
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