Skip to content
Snippets Groups Projects
Commit e90a11ec authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Fix code to generate the robot

parent 40cd6367
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ int main(int argc, char* argv[])
const std::string robotName = "randomboxbot-" + std::to_string(gen());
std::cout << "generating " << robotName << "\n";
std::filesystem::create_directories(robotName);
std::filesystem::current_path(robotName);
VirtualRobot::RobotPtr robot(new VirtualRobot::LocalRobot(robotName, robotType));
......@@ -84,7 +85,7 @@ int main(int argc, char* argv[])
allNodes.front());
std::cout << "save robot\n";
VirtualRobot::RobotIO::saveXML(robot, robotName + ".xml", robotName, "models",
VirtualRobot::RobotIO::saveXML(robot, robotName + ".xml", "", "models",
true, true, true, true);
return 0;
}
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