Page 1 of 1

System crash using MuscleForceDirection

Posted: Tue Nov 28, 2023 7:40 am
by theresp
Hi all,

I am solving for muscle lines of action with the plugin MuscleForceDirection and when using the global frame of reference it causes a system crash (using OpenSim GUI or Matlab) in the newer OpenSim versions (4.3 and 4.4). I have seen one other post saying that any version of OpenSim newer than 4.1 crashes with this function.

I have set up everything needed with Matlab linked to 4.1 and it runs properly, but some of the additional visualization and IMU functions I need to use are in the newer versions of OpenSim. As far as I can tell, I can't switch between OpenSim versions within a Matlab script and I can't think of any other workarounds.

Has anyone else run into this issue and found a workaround to use functions available in 4.3/4.4 but also with global MuscleForceDirection? Or are there any plans to update the MuscleForceDirection plugin so that it is compatible with the latest OpenSim versions?

Thanks in advance for the help!
Reese

Re: System crash using MuscleForceDirection

Posted: Wed Nov 29, 2023 1:42 am
by kernalnet
Hi, you might want to post an issue on the plugin page: https://github.com/modenaxe/MuscleForceDirection

Also, GeometryPath::getPointForceDirections will give you muscle point of action and force direction in global frame.