Skip to content
Snippets Groups Projects
Commit cb74eaed authored by Nikolaus Vahrenkamp's avatar Nikolaus Vahrenkamp
Browse files

Merge branch 'master' of https://gitlab.com/Simox/simox

parents 911932e8 fde04cb2
No related branches found
No related tags found
No related merge requests found
......@@ -167,9 +167,18 @@ namespace VirtualRobot
if (part1 != "package://")
{
// No ROS package structure, just try to find the file in the data directory
boost::filesystem::path p_base(basePath);
boost::filesystem::path p_f(f);
result = (p_base / p_f).string();
if (!VirtualRobot::RuntimeEnvironment::getDataFileAbsolute(result))
{
VR_ERROR << "Could not determine absolute path of " << result << endl;
result = f;
if (!VirtualRobot::RuntimeEnvironment::getDataFileAbsolute(result))
{
VR_ERROR << "Could not determine absolute path of " << result << endl;
}
}
}
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