Controller Plugin crashes OpenSim

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Musa Audu
Posts: 43
Joined: Mon Nov 24, 2008 11:30 am

Controller Plugin crashes OpenSim

Post by Musa Audu » Fri Jul 29, 2022 2:56 pm

I have a problem that started since OpenSim 4.2 and up to the current 4.4. I defined a muscle controller function and created a dll file as a plugin for it. In these versions of OpenSim, the GUI will only load the model files containing this controller if I add the file to a 'plugin' folder and put the dll file there. However, whenever I load a motion file associated with the model, OpenSim crashes and instantly closes. Any help with that? I attach here the model file containing the controller (oneleg_1.osim), the four source files I used to create the plugin - 'MuscleController.cpp', 'MuscleController.h', 'osimMuscleControllerDLL.h', 'RegisterTypes_osimMuscleController.cpp' and 'RegisterTypes_osimMuscleController.h'.
Attachments
RegisterTypes_osimMuscleController.h
(1.75 KiB) Downloaded 21 times
RegisterTypes_osimMuscleController.cpp
(2.1 KiB) Downloaded 23 times
osimMuscleControllerDLL.h
(1.71 KiB) Downloaded 6 times
MuscleController.h
(3.81 KiB) Downloaded 5 times
MuscleController.cpp
(4.07 KiB) Downloaded 7 times

Tags:

POST REPLY