Output of Inertia Sensor Block

4 views (last 30 days)
Shafeeg
Shafeeg on 16 Jan 2022
Answered: Steve Miller on 12 Mar 2023
In Simscape Multibody, I connected an Inertia Sensor block to an assembled robot. I understand the block can output COM, Inertia Matrix and so on. Do I output COM and Inertia Matrix to workspace or to a scope? How can I get these two outputs from the sensor. I did try to output the Inertia Matrix to the Workspace but its a 1000x1 matrix. It would be big help if someone could explain to me how I can process the outputs of the inertia sensor block.
Thank You!
A.Shafeeg

Answers (1)

Steve Miller
Steve Miller on 12 Mar 2023
You can output the center of mass (COM) however you want. Note, though, that it will report the COM for every step of the simulation. If you only want it at the start or the end, you will have to extract that from the simulation results.
If you can use the final step of the simulation, a simple way to get that value is to limit the length of the measured results to 1. It will then only save the results from the last time step.
--Steve

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!