From: Evelien H. <E.J...@st...> - 2021-07-06 14:53:22
|
Hi Hadar, I did not run into this exception. However, I do have an example of the use of the PlannerDataStorage for storing and loading a graph: Store data: data->decoupleFromPlanner(); // necessary for doing anything with plannerdata const char *filename = "plannerdata"; ompl::base::PlannerDataStorage datastorage; datastorage.store(*data, filename); Load data: ompl::base::PlannerDataStorage datastorage; const char *filename = "plannerdata"; datastorage.load(filename, *data); Where data is: ompl::base::PlannerDataPtr Good luck! Best, Evelien ________________________________ Van: hadar sinvani <had...@gm...> Verzonden: dinsdag 6 juli 2021 16:19:38 Aan: omp...@li... Onderwerp: [ompl-users] Planner Data Storage- exception thrown Hi I am working with prm and real vector state space and I'm trying to store the graph by using the Planner Data Storage. when calling PlannerDataStorage.store(PlannerData, filename), the following code line inside PlannerDataStorage.store(PlannerData, std::ostream): boost::archive::binary_oarchive oa(out); throws an exception of access violation reading location (msvcp140.dll). Does anyone have any idea why? Also, is there a demo with an example of how to use Planner Data Storage for storing/loading graph? Best, Hadar. |