Good find, just fixed it. Now you get an Exception thrown that:
 
Cooridnate xxx is locked and can't be varied... Aborting.
 
-Ayman
----- Original Message -----
From: Tim Dorn
To: opensim-testers@simtk.org
Sent: Sunday, April 18, 2010 5:51 PM
Subject: [Opensim-testers] muscle analysis bug with locked coordinates

When running a MuscleAnalysis on a model with locked joints and the locked joint is included in the <moment_arm_coordinate_list>, the program crashes (in the GUI and command prompt).

TO REPRODUCE BUG (in GUI)
Load ARM26 model
Lock a coordinate (i.e. r_shoulder_elev)
Run the attached analysis

I suppose if a coordinate is locked, then it does not make sense to obtain moment arms or moments about that joint, but perhaps an error message would suffice (rather than crashing).

Tim


_______________________________________________
Opensim-testers mailing list
Opensim-testers@simtk.org
https://simtk.org/mailman/listinfo/opensim-testers