printing model to xml file in cpp error
Posted: Tue Dec 19, 2017 8:48 am
I am having trouble with the OpenSim::Object::print function in the opensim api for cpp.
I have a project for forward dynamic simulation of a lower extremity standing model in which i have modified the feet to add contact spheres using hunt crossley. When i try to export the modified model to an xml file by using the command osimModel.print("NewModel.osim") the code compiles but crashes while running.
When i look at the NewModel.osim file, it is incomplete which led me to believe that the aforementioned command was crashing it. In addition, when I commented out that line, the program compiled and ran without crashing. I've also tried commenting out the code for the modifications to the model and just tried to export the same model but it still crashes.
When I ran the same project on someone else's computer, the print function did not crash on there, so that leads me to believe that the code is correct, but there is an issue with my computer or build.
I tried performing a fresh install of OpenSim33-source but that did not resolve the issue.
Has anybody come across this issue or possibly no the reason behind it or a solution to the problem.
Thank You,
Naji Alibeji
I have a project for forward dynamic simulation of a lower extremity standing model in which i have modified the feet to add contact spheres using hunt crossley. When i try to export the modified model to an xml file by using the command osimModel.print("NewModel.osim") the code compiles but crashes while running.
When i look at the NewModel.osim file, it is incomplete which led me to believe that the aforementioned command was crashing it. In addition, when I commented out that line, the program compiled and ran without crashing. I've also tried commenting out the code for the modifications to the model and just tried to export the same model but it still crashes.
When I ran the same project on someone else's computer, the print function did not crash on there, so that leads me to believe that the code is correct, but there is an issue with my computer or build.
I tried performing a fresh install of OpenSim33-source but that did not resolve the issue.
Has anybody come across this issue or possibly no the reason behind it or a solution to the problem.
Thank You,
Naji Alibeji