Search found 999 matches

by Nicholas Bianco
Wed May 27, 2020 12:58 pm
Forum: OpenSim Moco
Topic: optimizing path spring variables
Replies: 1
Views: 139

Re: optimizing path spring variables

Hi Vahid, You can optimize spring stiffness and rest length using MocoParameters. To get started, check out the cheat sheet on the "User Guide" page of our documentation (https://opensim-org.github.io/opensim-moco-site/docs/). We have two solvers in Moco: MocoTropterSolver and MocoCasADiSolver. When...
by Nicholas Bianco
Tue May 12, 2020 11:38 am
Forum: OpenSim Moco
Topic: Using metabolics probe with DeGrooteFregly2016Muscle
Replies: 59
Views: 11273

Re: Using metabolics probe with DeGrooteFregly2016Muscle

Hi Iris, Part of your issue is that you need to print out the model created by the ModelProcessor so that it's compatible with your states and controls file. For example, you've added reserves to the model that the base model doesn't have and you've disabled tendon compliance but the base model hasn...
by Nicholas Bianco
Mon May 11, 2020 4:40 pm
Forum: OpenSim Moco
Topic: Using metabolics probe with DeGrooteFregly2016Muscle
Replies: 59
Views: 11273

Re: Using metabolics probe with DeGrooteFregly2016Muscle

Iris, Based on your error message, WARNING: Umberger2010MuscleMetabolicsProbe_MetabolicMuscleParameter: Muscle 'muscle name' not found in model. Ignoring...) it looks like you need to provide the muscle names for each metabolic muscle parameter. Double check your model file to make sure they all hav...
by Nicholas Bianco
Thu May 07, 2020 11:00 am
Forum: OpenSim Moco
Topic: Using metabolics probe with DeGrooteFregly2016Muscle
Replies: 59
Views: 11273

Re: Using metabolics probe with DeGrooteFregly2016Muscle

Hi Karthick, To compute muscle moments, you'll need to compute muscle moment arms. Moment arms are not available as an output since you need to provide the state AND which coordinate you want the moment arm about: coordSet = model.getCoordinateSet(); coord = coordSet.get('<desired_coord_name>'); mus...
by Nicholas Bianco
Wed May 06, 2020 12:07 pm
Forum: OpenSim Moco
Topic: Using metabolics probe with DeGrooteFregly2016Muscle
Replies: 59
Views: 11273

Re: Using metabolics probe with DeGrooteFregly2016Muscle

Ross, The DeGrooteFregly2016 muscle derives from OpenSim's base Muscle class, so you can use all the outputs available to that class. You can get fiber velocity (or normalized fiber velocity) by adding the output paths like so: outputPaths = StdVectorString() outputPaths.add('/forceset/soleus_r\|fib...
by Nicholas Bianco
Tue Apr 28, 2020 2:53 pm
Forum: OpenSim Moco
Topic: Using metabolics probe with DeGrooteFregly2016Muscle
Replies: 59
Views: 11273

Re: Using metabolics probe with DeGrooteFregly2016Muscle

Hi everyone, There is an alternative utility we built into Moco that might be more convenient than using the OpenSim AnalyzeTool. There is a method called analyze() built into Moco study that accepts a MocoTrajectory and a vector of strings to model outputs and returns a TimeSeriesTable of those out...
by Nicholas Bianco
Tue Apr 28, 2020 2:44 pm
Forum: OpenSim Moco
Topic: MocoOrientationTrackingGoal
Replies: 23
Views: 3523

Re: MocoOrientationTrackingGoal

Hi Ross,

The setFramePaths() methods accepts a vector of strings, so in MATLAB you have to do this:

Code: Select all

paths = StdVectorString()
paths.add('/bodyset/torso')
torsoGoal.setFramePaths(paths)
Let me know if that works.

Best,
-Nick
by Nicholas Bianco
Mon Apr 27, 2020 2:52 pm
Forum: OpenSim Moco
Topic: MocoOrientationTrackingGoal
Replies: 23
Views: 3523

Re: MocoOrientationTrackingGoal

Hi Ross, Thanks for the sending the attachments -- I think I've found the issue. This goal accepts reference tables that are type TimeSeriesTable_<SimTK::Rotation>. That means each "column" of the table contains rows of values of type SimTK::Rotation (not just a scalar value). I realize now that the...
by Nicholas Bianco
Thu Apr 23, 2020 1:18 pm
Forum: OpenSim Moco
Topic: MocoOrientationTrackingGoal
Replies: 23
Views: 3523

Re: MocoOrientationTrackingGoal

Hi Ross, I think you need to reorder the commands so you add the goal to the problem after you set the reference file. torsoGoal = MocoOrientationTrackingGoal('torsoGoal',weight); torsoGoal.setRotationReferenceFile('torso_orientation.csv') problem.addGoal(torsoGoal); Let me know if that doesn't work...
by Nicholas Bianco
Thu Apr 16, 2020 4:10 pm
Forum: OpenSim Moco
Topic: Walking Simulation with only static file
Replies: 4
Views: 1009

Re: Walking Simulation with only static file

Hi Mritula,

Apologies, that sentence should have been "You might be better off tracking coordinates computed from InverseKinematics in MocoTrack...".

Hope that's clear.
-Nick