From: hadar s. <had...@gm...> - 2019-12-25 08:02:37
|
Hi, I'm interested in saving all the solution paths. I managed to do this very easily when running ompl benchmark with my config file but I couldnt find how to do so when writing a benchmark code. writing this: ofstream myfile; b.addPlanner(std::make_shared<control::RRT>(setup.getSpaceInformation())); b.addPlanner(std::make_shared<control::KPIECE1>(setup.getSpaceInformation())); b.benchmark(request); myfile.open ("mypathB.txt", ios::out | ios::app | ios::binary); setup.getSolutionPath().asGeometric().printAsMatrix(myfile); myfile.close(); b.saveResultsToFile(); saved only the only one path instead of the two that was found. In addition, when analyzing the log file, I didnt find any saved path. I would appreciate your help. Best, Hadar. |