segment power analysis

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
User avatar
Nicholas Bianco
Posts: 1040
Joined: Thu Oct 04, 2012 8:09 pm

Re: segment power analysis

Post by Nicholas Bianco » Wed Sep 18, 2024 9:54 am

Follow the code in https://github.com/opensim-org/opensim- ... s.cpp#L310, but change the Twist (torqueY) to: Twist = torqueY_HalfPlane - CopZ*forceX_HalfPlane + CopX*forceZ_HalfPlane
I've been meaning to fix this. Just created an issue to track it: https://github.com/opensim-org/opensim-core/issues/3909.

User avatar
Carlos Gonçalves
Posts: 135
Joined: Wed Jun 08, 2016 4:56 am

Re: segment power analysis

Post by Carlos Gonçalves » Wed Sep 18, 2024 10:11 am

Great. That would be awesome.

If I could suggest, I also tried creating the .sto file for all contact forces in the model, and it worked well. Just create the .sto remember to insert [force] [Cop] [torque] for all contact geometry using only the halfplane (changing the signs of forces and torques).

https://youtu.be/DD4m82QQ7Sg?si=VtzViDkTlR7B1u6A

It would be nice to have all forces to better understand what is going on and also the resultant contact forces for each foot.

Best regards.

POST REPLY