Search found 40 matches

by Tylan Templin
Fri Mar 04, 2022 3:45 pm
Forum: OpenSim Moco
Topic: Maximize Velocity of a Body Segment
Replies: 13
Views: 1228

Re: Maximize Velocity of a Body Segment

Hi everyone, I am now trying to write a custom goal for this objective and I have been able to do so by modifying the example in "opensim-moco-0.4.0-win\Resources\Code\CPP\Plugins\exampleMocoCustomEffortGoal" with the help from this forum post: https://simtk.org/plugins/phpBB/viewtopicPhpbb.php?f=18...
by Tylan Templin
Tue Jan 11, 2022 3:22 pm
Forum: OpenSim Moco
Topic: Maximize Velocity of a Body Segment
Replies: 13
Views: 1228

Re: Maximize Velocity of a Body Segment

Thanks Nick! I believe I would need to use MocoTranslationTrackingGoal since I am trying to maximize the velocity of a body instead of a specific coordinate. However, it seems that to do so I would have to provide a guess for the trajectory for the entire motion. I would like to avoid this so I don'...
by Tylan Templin
Tue Jan 11, 2022 7:04 am
Forum: OpenSim Moco
Topic: Constrain Center of Mass to Follow Projectile motion
Replies: 18
Views: 1240

Re: Constrain Center of Mass to Follow Projectile motion

I am not sure if there is a way to get all the outputs of the model, but you can use the API reference to look up the outputs of specific components of a model. For example, bodies inherit frame outputs ( https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1Frame.html ), joint outputs are lis...
by Tylan Templin
Mon Jan 10, 2022 1:19 pm
Forum: OpenSim Moco
Topic: Maximize Velocity of a Body Segment
Replies: 13
Views: 1228

Re: Maximize Velocity of a Body Segment

Thank you for the helpful suggestions! I have a couple of follow up questions: 1. Thank you Pasha for pointing me to the outputs of Frame. I am now using 'linear_velocity' which is a Vec3 instead of a SpatialVec. This still doesn't eliminate the problem of being a non-scalar, but does get one step c...
by Tylan Templin
Tue Jan 04, 2022 3:49 pm
Forum: OpenSim Moco
Topic: Maximize Velocity of a Body Segment
Replies: 13
Views: 1228

Maximize Velocity of a Body Segment

Hi everyone, I would like to use Moco to maximize the velocity of a certain body segment using MocoOutputGoal. I am currently adding this as a goal to a tracking simulation with the following lines of code: study = track.initialize() problem = study.updProblem() bodySet = model.getBodySet() hand = b...
by Tylan Templin
Wed Nov 24, 2021 11:07 am
Forum: OpenSim Moco
Topic: Constrain Center of Mass to Follow Projectile motion
Replies: 18
Views: 1240

Re: Constrain Center of Mass to Follow Projectile motion

We already have a MocoOutputGoal, which allows you to minimize any OpenSim Model output value. OpenSim Models provide an output for the whole-body center-of-mass position, velocity, and acceleration Can you explain in a little more detail how you would minimize/maximize the velocity of center-of-ma...
by Tylan Templin
Wed Nov 10, 2021 3:05 pm
Forum: OpenSim
Topic: Static Optimization with muscles from MuscleExample
Replies: 2
Views: 296

Re: Static Optimization with muscles from MuscleExample

Thank you! I was hoping to use Static Optimization because it solves relatively quickly, but that makes sense that the muscle won't fatigue with SO because there is no forward integration. CMC seems to work just fine other than taking quite a bit longer.

Thanks again,

Ty
by Tylan Templin
Mon Nov 08, 2021 1:51 pm
Forum: OpenSim
Topic: Static Optimization with muscles from MuscleExample
Replies: 2
Views: 296

Static Optimization with muscles from MuscleExample

Hi OpenSim community, I am trying to run a Static Optimization simulation using the FatigableMuscle model given in OpenSim 4.1\Resources\Code\CPP\MuscleExample. I was able to create a plugin for the FatigableMuscle, load the plugin into the GUI, load the model with updated FatigableMuscles, and run ...
by Tylan Templin
Fri Sep 10, 2021 1:09 pm
Forum: OpenSim
Topic: Exporting Simbody visualizer "movie" directly from MATLAB API
Replies: 3
Views: 803

Re: Exporting Simbody visualizer "movie" directly from MATLAB API

Were you able to figure out a solution for this? I am also interested in making a video using the API visualizer without having to select View> Save Movie

Best,

Ty