Search found 45 matches

by John Rogers
Wed Oct 24, 2018 9:44 am
Forum: 2018 Fall OpenSim Virtual Workshop
Topic: IMU vs. camera/marker mocap
Replies: 1
Views: 679

IMU vs. camera/marker mocap

Hello, What is your experience with inertial measurement as an alternative to camera/marker systems for motion capture? Do you like it? Why? What would you say are the advantages/disadvantages? Is it easier? Is it less accurate? There are several systems, see e.g: https://www.xsens.com/tags/motion-c...
by John Rogers
Fri Jun 24, 2016 8:18 am
Forum: OpenSim
Topic: metabolic probe output grows with each successive CMC run
Replies: 1
Views: 552

Re: metabolic probe output grows with each successive CMC run

This happened because I had multiple metabolic probes in the models.
I deleted the extras via the OpenSim GUI.
by John Rogers
Wed Jun 22, 2016 12:17 pm
Forum: OpenSim
Topic: Opening .sto File in MATLAB
Replies: 2
Views: 1790

Re: Opening .sto File in MATLAB

Hi Alison, Matlab importdata() works for text files. Try this code; save it as an .m file. Change the file name, and change "muscleVarname" (the header name) to match your data. Then run it. It extracts one column, saves it as a .mat file, and plots it. Regards, John %% Import and Save OpenSim Data ...
by John Rogers
Mon Jun 20, 2016 11:48 am
Forum: OpenSim
Topic: metabolic probe output grows with each successive CMC run
Replies: 1
Views: 552

metabolic probe output grows with each successive CMC run

Hello OpenSim Team, I am running a series of CMC simulations with the metabolic probe. This is done via MATLAB in a loop like this: command1 = ['cmc -S ', setupFileName] system(command1); With each run, the metabolic probe output gets larger. I see that the number of columns is greater by 94 each ti...
by John Rogers
Thu Jun 25, 2015 2:05 pm
Forum: OpenSim
Topic: How to add prescribed force
Replies: 2
Views: 633

How to add prescribed force

Hello, How do I add a prescribed torque to a model? I know the function of time I want. I know the bodies to apply the force to. I see the xml code for <PrescribedForce>, I see a place for <FunctionSet name="torqueFunctions">, but how do I enter the time-torque pairs? I found the Doxygen documentati...
by John Rogers
Sat Apr 25, 2015 9:18 am
Forum: OpenSim
Topic: No metaolic output from probe while running CMC
Replies: 1
Views: 642

Re: No metaolic output from probe while running CMC

Julie, There is a script that adds a metabolic probe to every muscle. Also See the “Simulation-Based Design to Reduce Metabolic Cost” tutorial at: http://simtk-confluence.stanford.edu:9555/display/OpenSim/Simulation-Based+Design+to+Reduce+Metabolic+Cost#Simulation-BasedDesigntoReduceMetabolicCost-VI...
by John Rogers
Sun Mar 29, 2015 12:56 pm
Forum: OpenSim
Topic: Running Static Optimization in Matlab?
Replies: 15
Views: 6353

Re: Running Static Optimization in Matlab?

James and all,
This post is helpful, but I still have a question:
I have a metabolic probe set to integrate.
I want to attach an analysis (ProbeReporter) when I run CMC tool.
Do I copy-paste the XML code for the analysis into the CMC setup file?
Thanks,
John
by John Rogers
Wed Mar 11, 2015 5:05 am
Forum: OpenSim
Topic: relative path in CMC setup
Replies: 3
Views: 766

Re: relative path in CMC setup

Thanks Ayman, that IS the problem.
It's unfortunate--I wish there was a way to get windows to work around it.
Do you know if this is a problem n Linux?
John
by John Rogers
Tue Mar 10, 2015 12:44 pm
Forum: OpenSim
Topic: relative path in CMC setup
Replies: 3
Views: 766

relative path in CMC setup

Hello, I am trying to use relative paths in my CMC setup file (attached). CMC seems to have difficulty finding the files it needs. I am running CMC from Matlab (attached). Matlab gets as far as searching for the GRF xml file. Matlab output: Running tool subject01_Run_20002_cycle1. Error: failed to c...
by John Rogers
Mon Jun 23, 2014 8:34 am
Forum: OpenSim
Topic: Plotting Muscle Fiber Length and Force outside Opensim
Replies: 6
Views: 2411

Re: Plotting Muscle Fiber Length and Force outside Opensim

Rachel,
Please try the attached script for plotting and let me know how it goes.
Cheers,
John