Search found 9 matches

by Therese Parr
Tue Nov 28, 2023 7:40 am
Forum: OpenSim
Topic: System crash using MuscleForceDirection
Replies: 1
Views: 336

System crash using MuscleForceDirection

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 th...
by Therese Parr
Fri Sep 15, 2023 6:11 am
Forum: OpenSim
Topic: MATLAB visualizer- muscle coloration and saving
Replies: 2
Views: 365

MATLAB visualizer- muscle coloration and saving

Hi all, Is there a way to visualize the muscle coloration from the activation file in the MATLAB API? I can do it with the kinematics, but also want the muscles to be changing colors in the video. I have looked through the VisualizerUtilities but don't see anything mentioning the coloration or the s...
by Therese Parr
Fri Aug 18, 2023 7:20 am
Forum: OpenSim
Topic: Using a plugin Analyze Tool in Matlab
Replies: 2
Views: 468

Re: Using a plugin Analyze Tool in Matlab

Hi John, Thanks so much for the guidance and code- this was a huge help! I implemented the code you gave for MuscleForceDirection and it runs great within Matlab. I did start with the MuscleForceDirection template and tacked on the other two analyses (static optimization and muscle analysis) all und...
by Therese Parr
Wed Aug 16, 2023 7:15 am
Forum: OpenSim
Topic: Using a plugin Analyze Tool in Matlab
Replies: 2
Views: 468

Using a plugin Analyze Tool in Matlab

Hi all, I am trying to use the plugin 'MuscleForceDirection' within a Matlab code. I have tried two options and want to know if there is any way this can work better. 1. I would love to be able to use the AnalyzeTool within Matlab to run StaticOptimization, MuscleAnalysis, and MuscleForceDirection a...
by Therese Parr
Mon Jun 20, 2022 9:53 am
Forum: OpenSim
Topic: OpenSense- downweighing sensors in Matlab API
Replies: 2
Views: 360

Re: OpenSense- downweighing sensors in Matlab API

Thank you, Carmichael! This worked great.
by Therese Parr
Mon Jun 13, 2022 9:13 am
Forum: OpenSim
Topic: OpenSense- downweighing sensors in Matlab API
Replies: 2
Views: 360

OpenSense- downweighing sensors in Matlab API

Hello, I'd like to downweigh the tibia and foot IMU sensors for the IK calculation in OpenSense. I know how to do this on the GUI, but want to be able to do it on Matlab for faster processing. Here's what I currently have: imuIK = IMUInverseKinematicsTool(); imuIK.set_orientation_weights(); I am uns...
by Therese Parr
Tue Apr 12, 2022 7:13 am
Forum: OpenSim
Topic: OpenSense- single sensor rotation
Replies: 1
Views: 317

OpenSense- single sensor rotation

I have an OpenSense IMU model that seems like it is running into issues because one single sensor needs to be rotated in relation to the set. Is it possible to rotate a single sensor? I cannot find the option on the GUI (only can rotate all sensors in relation to OpenSense coordinate system). If the...
by Therese Parr
Thu Mar 24, 2022 8:17 am
Forum: OpenSim
Topic: OpenSense- sensor to earth angle (trunk flexion angle)
Replies: 2
Views: 1293

Re: OpenSense- sensor to earth angle (trunk flexion angle)

Thanks for the quick response, Ayman! That gave me a good start. Here is the code I currently have running. import org.opensim.modeling.* addpath ('C:/OpenSim 4.3/bin') modelFileName = 'Rajagopal2015_opensense_calibrated.osim'; % The path to an input model model = Model(modelFileName); state = model...
by Therese Parr
Mon Mar 21, 2022 8:04 am
Forum: OpenSim
Topic: OpenSense- sensor to earth angle (trunk flexion angle)
Replies: 2
Views: 1293

OpenSense- sensor to earth angle (trunk flexion angle)

I am looking to find trunk flexion angle with OpenSense during sit-to-stand trials. The model runs great and simulation looks correct. However, I would like to find the angle of the torso to the earth (OpenSim coordinate system) and do not see it in the motion output from OpenSim. The only outputs s...