Skip to content
Snippets Groups Projects
Commit ffa5738a authored by Mirko Wächter's avatar Mirko Wächter
Browse files

fixed compile error in urdf

(cherry picked from commit 9389ecac)
parent 55160069
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ namespace VirtualRobot
urdf::ModelInterfaceSharedPtr urdf_model = urdf::parseURDFFile(filename.c_str());
std::filesystem::path filenameBaseComplete(filename);
std::filesystem::path filenameBasePath = filenameBaseComplete.branch_path();
std::filesystem::path filenameBasePath = filenameBaseComplete.parent_path();
std::string basePath = filenameBasePath.string();
if (!urdf_model)
......
......@@ -33,7 +33,7 @@ int main(int argc, char* argv[])
// load model from file and convert it to the simox robot format
RobotPtr r = f.loadFromFile(urdfFile);
std::string outPath = std::filesystem::initial_path().generic_string();
std::string outPath = std::filesystem::current_path().generic_string();
cout << "Saving converted file to " << outPath << "/urdf_output.xml..." << endl;
RobotIO::saveXML(r, "urdf_output.xml", outPath);
......
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