Search found 30 matches

by Dhruv Gupta
Mon Jan 25, 2021 1:01 pm
Forum: OpenSim Moco
Topic: Calculations in SmoothSphereHalfSpaceForce
Replies: 2
Views: 370

Re: Calculations in SmoothSphereHalfSpaceForce

Thanks Nicos, that helped!
by Dhruv Gupta
Sat Dec 05, 2020 11:52 am
Forum: OpenSim Moco
Topic: Calculations in SmoothSphereHalfSpaceForce
Replies: 2
Views: 370

Calculations in SmoothSphereHalfSpaceForce

Hello, Thank you for OpenSim Moco. It is a great platform for faster simulations. I am using the Hunt Crossley Force using the SmoothSphereHalfSpaceForce in Moco. On Github, I was trying to find the code where all the calculations in this code, but I could not find them. For example, the code https:...
by Dhruv Gupta
Mon Mar 30, 2020 8:54 am
Forum: OpenSim Moco
Topic: HuntCrossleyForce Implementation in Moco
Replies: 5
Views: 890

Re: HuntCrossleyForce Implementation in Moco

Something that I did observe was that if I add the hunt crossley force in a function and call that function again and again, MATLAB tends to crash after a few calls if the safeDownCasts are there. If I remove the safeDownCasts, it works fine. I do not know what causes that, it could be just my compu...
by Dhruv Gupta
Thu Mar 19, 2020 12:09 pm
Forum: OpenSim Moco
Topic: extract generaliseSpringForce from optimal solution
Replies: 5
Views: 468

Re: extract generaliseSpringForce from optimal solution

Thanks Nicos, that helped! :D
by Dhruv Gupta
Wed Mar 18, 2020 1:01 pm
Forum: OpenSim Moco
Topic: HuntCrossleyForce Implementation in Moco
Replies: 5
Views: 890

Re: HuntCrossleyForce Implementation in Moco

Thanks for the answer Aaron. It seems to work. Cheers! :D

Chris, Thanks for response as well. I will post if I find that one works better than the other. :)
by Dhruv Gupta
Mon Mar 16, 2020 2:33 pm
Forum: OpenSim Moco
Topic: HuntCrossleyForce Implementation in Moco
Replies: 5
Views: 890

HuntCrossleyForce Implementation in Moco

Hello Moco admin, First of all, Thanks for creating Moco. It makes direct collocation so much more user friendly. I am trying to use the Hunt Crossley Force. Based on the reading some literature (Serrancoli et al 2019 [Subject-Exoskeleton Contact Model Calibration Leads to Accurate Interaction Force...
by Dhruv Gupta
Tue Oct 23, 2018 7:03 pm
Forum: 2018 Fall OpenSim Virtual Workshop
Topic: how to get states from .mot file using API commands?
Replies: 6
Views: 690

Re: how to get states from .mot file using API commands?

Thank You, Christopher. It seems to work, but I have a question though. I calculated the moment arm using three different ways 1. In the plotter in GUI using the _ik.mot file 2. In MATLAB using the _ik.mot file 3. In MATLAB using the _states.sto file (exported by performing RRA on the same motion). ...
by Dhruv Gupta
Tue Oct 23, 2018 5:44 pm
Forum: 2018 Fall OpenSim Virtual Workshop
Topic: how to get states from .mot file using API commands?
Replies: 6
Views: 690

Re: how to get states from .mot file using API commands?

Thanks Christopher. I looked up in the API documentation and is said that the use in python is something like this: import opensim model = opensim.Model("subject01.osim") sto = opensim.Storage("subject01_states.sto") states = opensim.StatesTrajectory.createFromStatesStorage(model, sto) so for MATLAB...
by Dhruv Gupta
Tue Oct 23, 2018 3:17 pm
Forum: 2018 Fall OpenSim Virtual Workshop
Topic: how to get states from .mot file using API commands?
Replies: 6
Views: 690

Re: how to get states from .mot file using API commands?

Thanks for the response, Christopher. Based on the link, it seems like I need to use StatesTrajectory.createFromStatesStorage(). So is it anything like this? import org.opensim.modeling.* modelFile = 'ULB.osim'; osimModel = Model(modelFile); motFile='mymotion_ik.mot'; coordinateSto = Storage(motFile...
by Dhruv Gupta
Tue Oct 23, 2018 2:23 pm
Forum: 2018 Fall OpenSim Virtual Workshop
Topic: how to get states from .mot file using API commands?
Replies: 6
Views: 690

how to get states from .mot file using API commands?

Hello all,

This might be trivial for a lot of you, but I am new to using API/Doxygen commands in MATLAB. I am trying to find muscle moment arms using the command
Muscle.computeMomentArm(state, coordinate);
How can I find the "state" from a .mot file?

Thanks!
Dhruv