I'm trying to model the parts of a biped robot, but for simulation purposes using Simmechanics it is required to get the inertia tensor and the center of gravity of the parts. I found here in the forum that there're some instructions that can do the work, but I have some doubts about the results I'm getting.
The first thing I saw here in the forum was this topic: viewtopic.php?f=10&t=330&start=20 where I found the following code:
Code: Select all
>>> import Part
>>> b = Part.makeBox(10,10,10)
>>> s = Part.Solid(b)
>>> s.CenterOfMass
Vector (5, 5, 5)
>>>
Here is my Freecad's info and one of the parts I'm trying to get the calculations from:
OS: Ubuntu 14.04 LTS
Platform: 64-bit
Version: 0.14.3672 (Git)
Branch: master
Hash: b0c157a5ea97dd2bd11658f98f53fc1edefcd456
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
Best regards,
Charlie