Search found 203 matches

by Nicos Haralabidis
Wed Jan 15, 2025 4:26 pm
Forum: OpenSim
Topic: Linear Movement of a Ball
Replies: 4
Views: 144

Re: Linear Movement of a Ball

Hello Kardelen, To set the state variables for a coordinate you would do something as follows (roughly): model = Model(); state = model.initSystem(); X = [1 0]; % getting the 0th coordinate in the model, setting its value and speed model.getCoordinateSet.get(0).setValue(state,X(1)); model.getCoordin...
by Nicos Haralabidis
Tue Jan 14, 2025 10:52 pm
Forum: OpenSim
Topic: system accelerations vector:
Replies: 2
Views: 132

Re: system accelerations vector:

Hey Musa,

I think before:

Code: Select all

act->setOverrideActuation(state, -jTorques[i]);
you need to include:

Code: Select all

act->overrideActuation(state,1);
Hopefully that works!

Nicos
by Nicos Haralabidis
Tue Jan 14, 2025 12:18 pm
Forum: OpenSim
Topic: Inverse Dynamics top-down approach
Replies: 2
Views: 182

Re: Inverse Dynamics top-down approach

Hello Alexander, Here are a couple of articles that fairly recently touched upon the points you raised in your post (hopefully they help!): [1] https://link.springer.com/article/10.1007/s11044-021-09808-7 [2] https://www.sciencedirect.com/science/article/abs/pii/S0021929024003087 [3] https://link.sp...
by Nicos Haralabidis
Tue Jan 14, 2025 12:07 pm
Forum: OpenSim
Topic: Linear Movement of a Ball
Replies: 4
Views: 144

Re: Linear Movement of a Ball

Hello Kardelen, What are you exactly trying to do? You want to apply a force with a controller to a rigid body and move it along a particular coordinate? Have you tried looking at the C++ examples for optimizing the controls of the arm_26.osim model? You could potentially also take some inspiration ...
by Nicos Haralabidis
Thu Dec 26, 2024 8:20 pm
Forum: OpenSim
Topic: Discrepancy Between Calculated Muscle Forces and Static Optimization Results
Replies: 4
Views: 477

Re: Discrepancy Between Calculated Muscle Forces and Static Optimization Results

Hello Huhu, How are you calculating the coordinate speeds when you manually try to calculate muscle forces? Perhaps differences between your coordinate speeds and those calculated by the static optimization tool differ (impacting the force-velocity multiplier) which may explain the differences you o...
by Nicos Haralabidis
Thu Dec 26, 2024 8:10 pm
Forum: OpenSim
Topic: subject orientation
Replies: 2
Views: 280

Re: subject orientation

Hello Mahshida,

Have you tried previewing your experimental marker data to see if it is as you expect?

Thanks,

Nicos
by Nicos Haralabidis
Thu Dec 05, 2024 10:22 am
Forum: OpenSim
Topic: Inverse Dynamics with and without COP
Replies: 2
Views: 578

Re: Inverse Dynamics with and without COP

Hello Mohammadreza,

Would you mind sharing the files you used to generate these results?

Thanks,

Nicos
by Nicos Haralabidis
Mon Oct 21, 2024 8:31 pm
Forum: OpenSim
Topic: Hip joint center gait 2392 model
Replies: 2
Views: 528

Re: Hip joint center gait 2392 model

Hello Madeline,

The model documentation can be found here: https://opensimconfluence.atlassian.net ... 354+Models

and the associated publication:
https://ieeexplore.ieee.org/document/102791

Hope that helps!

Nicos
by Nicos Haralabidis
Mon Oct 07, 2024 9:39 am
Forum: OpenSim
Topic: Model question: extended Rajagopal with ligaments
Replies: 2
Views: 554

Re: Model question: extended Rajagopal with ligaments

Hello Christopher, I am not 100% sure there is a model out there that attempts to model each joint with the level of detail you are describing. Researchers typically increase the complexity based on the research question. So if you are interested in the small movements between the patella and the fe...
by Nicos Haralabidis
Mon Sep 30, 2024 11:25 pm
Forum: OpenSim
Topic: Python Script to Transform Point from Rigid Body Frame to Ground Frame
Replies: 4
Views: 722

Re: Python Script to Transform Point from Rigid Body Frame to Ground Frame

Hello Max!

Are the angular coordinates in 'MyMotion.mot' in radians? They are expected to be in radians. Get and print the values of the states after you have set them for a given time point to ensure you have set them accordingly.

Thanks,

Nicos