Search found 26 matches

by Jiacheng Weng
Thu Jul 08, 2021 7:41 pm
Forum: OpenSim Moco
Topic: Smooth Sphere Half Space Force Parameters
Replies: 13
Views: 1219

Re: Smooth Sphere Half Space Force Parameters

When the HuntCrossleyForce is used this code works fine, but when the SmoothSphereHalfSpaceForce is used I get the following error. HI Rory, if you are using MATLAB, you can always use methodsview(variable) to check the available methods. This helps you to look up any functionality that you need. T...
by Jiacheng Weng
Thu Jul 08, 2021 7:31 pm
Forum: OpenSim Moco
Topic: How to use custom goal plugin?
Replies: 9
Views: 1518

Re: How to use custom goal plugin?

May I ask if you can elaborate a bit more on the later steps particularly 6 and 7? Hi Hojin, When a plugin is created, the main OpenSim package does not have all the plugin information built into the binary. This means that you will not be able to call the plugin directly from scripting languages l...
by Jiacheng Weng
Wed May 05, 2021 6:25 am
Forum: OpenSim
Topic: DeGrooteFregly2016Muscle scaling problem
Replies: 5
Views: 589

Re: DeGrooteFregly2016Muscle scaling problem

Hi Carlos,

Thanks for your comments. I am going to try the muscle replacement method for now :)

Cheers,
Jiacheng
by Jiacheng Weng
Tue May 04, 2021 4:09 pm
Forum: OpenSim
Topic: DeGrooteFregly2016Muscle scaling problem
Replies: 5
Views: 589

Re: DeGrooteFregly2016Muscle scaling problem

Based on the implementation of the Millard2012EquilibriumMuscle, a manual fix would be to record the scaling factor, and multiply them to the original optimal_fiber_length and tendon_slack_length. However, this is rather annoying. I guess one would take the code from Millard2012EquilibriumMuscle, pu...
by Jiacheng Weng
Tue May 04, 2021 3:59 pm
Forum: OpenSim
Topic: DeGrooteFregly2016Muscle scaling problem
Replies: 5
Views: 589

Re: DeGrooteFregly2016Muscle scaling problem

This issue has been submitted to the GitHub page: https://github.com/opensim-org/opensim-core/issues/2995

Nick commented that the DeGrooteFregly2016Muscle was missing the method for scaling the muscle related properties.

Sola
by Jiacheng Weng
Tue May 04, 2021 10:15 am
Forum: OpenSim
Topic: DeGrooteFregly2016Muscle scaling problem
Replies: 5
Views: 589

Re: DeGrooteFregly2016Muscle scaling problem

Hi Carlos,

I realized the same issue with DeGrooteFregly2016Muscle. Do you happen to know any workaround?

Thanks,
Jiacheng
by Jiacheng Weng
Wed Mar 03, 2021 12:45 pm
Forum: OpenSim Moco
Topic: How to compute cost breakdown given trajectory?
Replies: 0
Views: 195

How to compute cost breakdown given trajectory?

Hi all, Let's say I have a predictive study defined as MocoStudy with cost terms C1 and C2. After solving the problem using study.solve(), I obtain the optimal trajectory A. I can access the cost breakdown of trajectory A (values of C1 and C2 term) either in the MocoSolution, or the header of the ge...
by Jiacheng Weng
Mon Mar 01, 2021 6:02 pm
Forum: OpenSim Moco
Topic: Passive Joint Torque Minimization
Replies: 5
Views: 589

Re: Passive Joint Torque Minimization

I'd be interested in seeing that for sure. I don't know much about the licensing issues but maybe Chris or Nick can comment. Hi Ross, Please find the attached sample file for minimizing all passive joint force. In fact, it is minimizing all ExpressionBasedCoordinateForce under the component set. I ...
by Jiacheng Weng
Mon Mar 01, 2021 5:48 pm
Forum: OpenSim Moco
Topic: Divide total cost by displacement?
Replies: 4
Views: 527

Re: Divide total cost by displacement?

Hi Nick, It's probably worth including for MocoSumSquaredStateGoal, as that is often used to minimize muscle activations. It seems like you have this working for your plugin though. Let me know if you have other questions. For what you said here, what is the difference in minimizing muscle activatio...
by Jiacheng Weng
Fri Feb 19, 2021 7:55 pm
Forum: OpenSim Moco
Topic: Divide total cost by displacement?
Replies: 4
Views: 527

Re: Divide total cost by displacement?

Just for the update. I ended up reimplementing all the goals for my application using MocoCustionGoal plugin and added the option to divideByDisplacement.

Cheers,
Jiacheng