Skip to content
Snippets Groups Projects
Commit a2ab70bf authored by armar-user's avatar armar-user
Browse files

fix robot descriptor filename, remove package name from path string

parent b2e9458e
No related branches found
No related tags found
1 merge request!313Issues with PackagePath and robot visualization
......@@ -83,12 +83,13 @@ namespace armarx::armem::server::robot_state::description
const std::vector<std::string> packages = armarx::CMakePackageFinder::FindAllArmarXSourcePackages();
const std::string package = armarx::ArmarXDataPath::getProject(packages, robotFilename);
ARMARX_INFO << "Robot description '" << robotFilename << "' found in package " << package;
const std::string fixedRobotFilename = robotFilename.substr(package.size() + 1, -1);
ARMARX_INFO << "Robot description '" << VAROUT(fixedRobotFilename) << "' found in package " << package;
const robot::RobotDescription robotDescription
{
.name = kinematicUnit->getRobotName(),
.xml = {package, kinematicUnit->getRobotFilename()}
.xml = {package, fixedRobotFilename}
}; // FIXME
commitRobotDescription(robotDescription);
......
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