diff --git a/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleRobotData.cpp b/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleRobotData.cpp index 3be94c7a50619cfe95ff85046d544afd032e9888..e6d317984ddc31b1c9d9bb92947ada0d700b2a4a 100644 --- a/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleRobotData.cpp +++ b/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleRobotData.cpp @@ -109,17 +109,19 @@ namespace armarx if (!robotProjectName.empty()) { CMakePackageFinder finder(robotProjectName); - Ice::StringSeq projectIncludePaths; auto pathsString = finder.getDataDir(); - boost::split(projectIncludePaths, + boost::split(includePaths, pathsString, boost::is_any_of(";,"), boost::token_compress_on); - includePaths.insert(includePaths.end(), projectIncludePaths.begin(), projectIncludePaths.end()); + ArmarXDataPath::addDataPaths(includePaths); } if (!ArmarXDataPath::getAbsolutePath(robotFileName, robotFileName, includePaths)) { - throw UserException("Could not find robot file " + robotFileName); + std::stringstream str; + str << "Could not find robot file " + robotFileName + << "\nCollected paths from RobotFileNameProject '" << robotProjectName << "':" << includePaths; + throw UserException(str.str()); } // read the robot try