Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
-
Maria Cordero
- Posts: 4
- Joined: Mon Jun 17, 2024 12:38 am
Post
by Maria Cordero » Fri Feb 07, 2025 1:56 am
Hello,
I'm currently trying to work with one of the models provided, Arm26. I was trying to access it through C++, but haven't been able to. I was using the same line as in the examples, but when executing the file, it just crashes. This is the line I was using:
I was also testing some of the other similar examples that access a model's instance, like OptimizationExample_Arm26 or SimpleOptimizationExample, and although it is able to build the .exe, it just crashes afterwards.
Any help would be appreciated!
Best regards,
Maria C.
Tags:
-
Thomas Uchida
- Posts: 1804
- Joined: Wed May 16, 2012 11:40 am
Post
by Thomas Uchida » Mon Feb 10, 2025 5:17 am
To confirm that OpenSim works at all, you could try just creating a new model ("Model osimModel;"). If that works, the issue may be that Arm26.osim is in the wrong directory; you could try including the full path or copying the file into the directory containing the executable. Using a try/catch block or RelWithDebInfo might provide more information.