Error in simulating contacts using API
Posted: Mon Jun 28, 2010 12:21 pm
Hi,
I am trying to run the "TugofWar6_AddContact.cpp" program provided with the OpenSim Developer's guide. However, when I run the exe generated by compiling the code I get an error "TugofWar1_CreateModel.exe has stopped working".
I'm using the recommended configuration setting "RelWithDebInfo". I have also copied the .obj file and other .vtp files in the same directory in which my model exists. However, all the codes till adding contact provided in the guide were working fine. I'm using the following procedure:
1. Use CMake to generate a visual studio solution file.
2. Load the solution file in Visual C++ 2008 Express Edition.
3. Set the configuration to "RelWithDebInfo" using Build->Configuration Manager.
4. Paste the .obj file in the same directory as .sln file (even in the .cpp file directory).
5. Build the solution (F7) to generate the .exe (Unfortunately compiling the code (Ctrl+F7) doesn't either generate the exe nor update the osim file for me.)
6. Paste the .obj and .vtp files in the same directory as the generated exe.
5. Run the .exe generated.
This is where I get the mentioned error "TugofWar1_CreateModel.exe has stopped working".
Is there anything I'm missing?
Thanks.
Regards,
Priyanshu
I am trying to run the "TugofWar6_AddContact.cpp" program provided with the OpenSim Developer's guide. However, when I run the exe generated by compiling the code I get an error "TugofWar1_CreateModel.exe has stopped working".
I'm using the recommended configuration setting "RelWithDebInfo". I have also copied the .obj file and other .vtp files in the same directory in which my model exists. However, all the codes till adding contact provided in the guide were working fine. I'm using the following procedure:
1. Use CMake to generate a visual studio solution file.
2. Load the solution file in Visual C++ 2008 Express Edition.
3. Set the configuration to "RelWithDebInfo" using Build->Configuration Manager.
4. Paste the .obj file in the same directory as .sln file (even in the .cpp file directory).
5. Build the solution (F7) to generate the .exe (Unfortunately compiling the code (Ctrl+F7) doesn't either generate the exe nor update the osim file for me.)
6. Paste the .obj and .vtp files in the same directory as the generated exe.
5. Run the .exe generated.
This is where I get the mentioned error "TugofWar1_CreateModel.exe has stopped working".
Is there anything I'm missing?
Thanks.
Regards,
Priyanshu