Anybody knows how to get the whole body angular momentum around center of mass using Matlab API?
With kind regards,
Hamed
Body angular momentum around the CoM
- Seyyed Hamed Hosseini Nasab
- Posts: 18
- Joined: Mon Jan 25, 2016 3:32 am
- Nicos Haralabidis
- Posts: 197
- Joined: Tue Aug 16, 2016 1:46 am
Re: Body angular momentum around the CoM
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
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