Page 1 of 1
Body angular momentum around the CoM
Posted: Fri Mar 27, 2020 7:15 am
by hamed-hn
Anybody knows how to get the whole body angular momentum around center of mass using Matlab API?
With kind regards,
Hamed
Re: Body angular momentum around the CoM
Posted: Tue Mar 31, 2020 6:47 am
by nicos1993
Hello Hamed,
I don't think you can do it through the 3.3 MATLAB API, but you can through the 4.x API. Once you have loaded your model, set the states and realized to the velocity stage you can get MatterSubsystem:
smss = model.getMatterSubsystem();
From the MatterSubsystem you can the use the method calcSystemCentralMomentum:
https://simbody.github.io/simbody-3.6-d ... 5a30f13d96
The first 3 elements are the angular momentum components.
I hope that helps!
Cheers,
Nicos