Search found 24 matches

by Matthew Millard
Wed Feb 17, 2016 6:06 am
Forum: OpenSim
Topic: Segfault on initSystem
Replies: 11
Views: 1151

Re: Segfault on initSystem

Thank you for the detailed responses Sherm! Though now our two systems behave differently. When I update line 128 to this modelState = new SimTK::State(model->initSystem()); I get a segfault at this line when the program is run. In addition, when I change modelState from a pointer to an object SimTK...
by Matthew Millard
Fri Jan 15, 2016 3:44 am
Forum: OpenSim
Topic: Segfault on initSystem
Replies: 11
Views: 1151

Re: Segfault on initSystem

I pulled from the master branches of both OpenSim and Simbody on git hub, so I should have:
OpenSim 4.0
Simbody 3.6
As a double check I looked at the version numbers mentioned in doxygen, and everything is consistent.

Cheers, Matt
by Matthew Millard
Thu Jan 14, 2016 1:53 am
Forum: OpenSim
Topic: Segfault on initSystem
Replies: 11
Views: 1151

Segfault on initSystem

Hello, I would like to use an OpenSim model with an optimal control code. The OpenSim header file and the header file of the optimal control code do not play nicely together. In an effort to isolate the two codes from each other I've made a separate class for the OpenSim model (OpenSimPendulum) and ...
by Matthew Millard
Mon Jul 27, 2015 11:32 am
Forum: OpenSim
Topic: moment vs angle plot for thelen and millard model
Replies: 4
Views: 411

Re: moment vs angle plot for thelen and millard model

Hello Frederic, As far as equilibrium vs. acceleration model is concerned in almost all cases the equilibrium model is a better choice: it will give you the same answers faster. If you're doing optimal control the acceleration model is a better choice because you can make fiber length, fiber velocit...
by Matthew Millard
Fri Jul 24, 2015 10:55 pm
Forum: OpenSim
Topic: moment vs angle plot for thelen and millard model
Replies: 4
Views: 411

Re: moment vs angle plot for thelen and millard model

Hello Frédéric, Have you checked the fiber lengths and the value of the active-force-length multiplier? My guess is that the normalized fiber length is less than 0.6 or greater than 1.5. In these regions the active-force-length-curve of the Millard2012 model is substantially weaker than the Thelen20...
by Matthew Millard
Fri Jul 10, 2015 1:57 am
Forum: OpenSim
Topic: Passive Fiber force-length curve problem
Replies: 5
Views: 445

Re: Passive Fiber force-length curve problem

I think I see the problem: Tug Of War is completely defined in its *.osim file, and so everything about that model is hidden from you in your C++ program. To learn how to edit a model there are two paths you can take: editing the model using the C++ api, or editing the model using the OpenSim GUI + ...
by Matthew Millard
Thu Jul 09, 2015 4:42 am
Forum: OpenSim
Topic: Passive Fiber force-length curve problem
Replies: 5
Views: 445

Re: Passive Fiber force-length curve problem

Perhaps I should back up a bit: what programming language are you using?
by Matthew Millard
Thu Jul 09, 2015 12:06 am
Forum: OpenSim
Topic: Passive Fiber force-length curve problem
Replies: 5
Views: 445

Re: Passive Fiber force-length curve problem

1. Make a new temporary FiberForceLengthCurve object using the detailed constructor: FiberForceLengthCurve fpeCurve = FiberForceLengthCurve ( strainAtZeroForce, strainAtOneNormForce, stiffnessAtLowForce, stiffnessAtOneNormForce, curviness ); *Make sure you check out the doxygen for the FiberForceLen...
by Matthew Millard
Wed Feb 20, 2013 3:06 pm
Forum: OpenSim
Topic: prescribing muscle activation
Replies: 3
Views: 713

Re: prescribing muscle activation

I wholeheartedly agree - it should be clearer which models implement the 'ignore' flags and which do not.
by Matthew Millard
Tue Feb 19, 2013 4:07 pm
Forum: OpenSim
Topic: prescribing muscle activation
Replies: 3
Views: 713

Re: prescribing muscle activation

Hello Ilan, Responses interspersed ... I've been running a forward dynamic simulation with constant prescribed activations with four muscles. I used Millard2012EquilibriumMuscle and set the flag "ignore_activation_dynamics" to true, and created a PrescribedController with Constant functions which eq...