Search found 999 matches

by Nicholas Bianco
Tue Aug 13, 2024 4:53 pm
Forum: OpenSim
Topic: Using a Custom OpenSim Build
Replies: 7
Views: 16337

Re: Using a Custom OpenSim Build

Hi Aaron, You'll need to modify a few files in the Bindings folder of opensim-core to include your custom classes in the bindings. 1. You need to update one of the OpenSimHeaders_*.h files to include header files for the classes you want to include in the bindings. 2. You need to update one of the *...
by Nicholas Bianco
Thu Aug 08, 2024 9:50 am
Forum: OpenSim Moco
Topic: MoCoInverse : Objective Function not Converging
Replies: 9
Views: 1302

Re: MoCoInverse : Objective Function not Converging

Hi Siva, Also, I wanted to ask, whether it can be considered to use the mocoInverse to find the Joint forces by switching off all muscles and taking just the reserve actuators. If it's possible, how can I scale to find the exact joint forces and torques, as at present it's been normalised between -1...
by Nicholas Bianco
Thu Aug 08, 2024 9:47 am
Forum: OpenSim Moco
Topic: Function based parameter optimization (for musculotendon parameters)
Replies: 6
Views: 186311

Re: Function based parameter optimization (for musculotendon parameters)

Hi Pasha,

Yes, we will make it a MocoGoal, with options to use it as a cost term or endpoint constraint.

Best,
Nick
by Nicholas Bianco
Tue Aug 06, 2024 9:39 am
Forum: OpenSim Moco
Topic: Function based parameter optimization (for musculotendon parameters)
Replies: 6
Views: 186311

Re: Function based parameter optimization (for musculotendon parameters)

We've created the following issue to track this feature request: https://github.com/opensim-org/opensim-core/issues/3860.

It shouldn't be too difficult to implement.
by Nicholas Bianco
Tue Aug 06, 2024 9:37 am
Forum: OpenSim Moco
Topic: MoCoInverse : Objective Function not Converging
Replies: 9
Views: 1302

Re: MoCoInverse : Objective Function not Converging

Hi Siva, I realized that I had a typo in my last response. I meant to say that "600 is not an unusually high number". 1. The objective function diverged to bigger values when I keep my reserve actuator limits from (-inf,inf). When i narrow it to 0 to 1. It lowers down to smaller values. If bounding ...
by Nicholas Bianco
Wed Jul 31, 2024 11:00 am
Forum: OpenSim
Topic: Saving Motion File from Non-Final Iterations in Tracking Simulation
Replies: 1
Views: 754

Re: Saving Motion File from Non-Final Iterations in Tracking Simulation

Hi Alexander, If you are referring to extracting intermediate iterations from Moco, this is a known bug that we haven't yet resolved. I tried to fix this recently, but there seems to be some issues on IPOPT's end. You can follow the linked issue to stay updated, but there's no timeline on when this ...
by Nicholas Bianco
Fri Jul 26, 2024 10:12 am
Forum: OpenSim
Topic: GeneralContactSubsystem
Replies: 1
Views: 1271

Re: GeneralContactSubsystem

Hi Andrea, I don't think that the GeneralContactSubsystem::getContacts() method is returning what you mean by "the location of the different points of contact between 2 ContactGeometry objects". Rather, it returns an array of Simbody Contact objects, which is something different. I think you want to...
by Nicholas Bianco
Fri Jul 26, 2024 9:58 am
Forum: OpenSim Moco
Topic: Parameter tuning issue with MocoTrack
Replies: 3
Views: 1399

Re: Parameter tuning issue with MocoTrack

Hi Oliver, Yes, it is possible include parameter optimization in any problem. That error message usually occurs when there is an issue with the initial guess, which can sometimes happen when using the default initial guess (i.e., the midpoint between the variable bounds). Have you check what the ini...
by Nicholas Bianco
Fri Jul 26, 2024 9:50 am
Forum: OpenSim
Topic: Moco mesh interval
Replies: 2
Views: 1431

Re: Moco mesh interval

Hi Mohammadreza,

If using the Hermite-Simpson collocation scheme (the default), then there are three time points per mesh interval. This means that there will be 2*N + 1 time points in the trajectory, where N is the number of mesh intervals.

Best,
Nick
by Nicholas Bianco
Mon Jul 22, 2024 2:53 pm
Forum: OpenSim Moco
Topic: Function based parameter optimization (for musculotendon parameters)
Replies: 6
Views: 186311

Re: Function based parameter optimization (for musculotendon parameters)

Hi Pasha, I think it's possible to have one solution for both use cases. I'm wondering if something like a "MocoExpressionBasedParameterGoal" would make sense here. You could point to a parameter in the model/problem, and write an expression (similar to classes like ExpressionBasedCoordinateForce ) ...