opensim-core icon indicating copy to clipboard operation
opensim-core copied to clipboard

Scale Tool deletes markers if they are not in .trc file

Open clnsmith opened this issue 6 years ago • 5 comments

For the Scale Tool in the GUI and MATLAB scripting, if markers are not in the .trc file they are not written in the output scaled model.

clnsmith avatar Jan 24 '19 20:01 clnsmith

Ahh now I see this is a feature, not a bug...

From the gui output : "Deleted 12 unused markers from model FullBodyModel_MuscleActuatedLowerLimb_TorqueActuatedUpperBody-scaled"

In which case it would be nice to have a flag to turn this on or off.

clnsmith avatar Jan 24 '19 21:01 clnsmith

... and now I found a real bug.

Only tested in the 4.0 GUI.

I added markers to the .trc file with all zeros for x, y, z so that they would not be deleted by the marker placer (they are all "fixed" in the model). In the "Static Pose Weights" pane, these new markers are all listed as NOT enabled (with a weight of 0.0). However, the resulting static pose is disfigured (as if it is still using these markers to determine the static pose). If I repeat, but now list the markers as enabled but with a weight of 0.0, the static pose appears to be OK.

Unfortunately I am not sure that I can publically share the .trc files I am working with at the moment to make this easy to recreate.

clnsmith avatar Jan 24 '19 21:01 clnsmith

@clnsmith it does sound like a bug. Do you think you could reproduce on a simple model and send us that so you don't have to share your working files?

aseth1 avatar Jan 31 '19 21:01 aseth1

@aseth1 Yes. I'll upload an example this week.

clnsmith avatar Feb 04 '19 20:02 clnsmith