Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inertia value does not match the box size #4606

Open
A-qingtongxiaoyou opened this issue Apr 21, 2024 · 0 comments
Open

Inertia value does not match the box size #4606

A-qingtongxiaoyou opened this issue Apr 21, 2024 · 0 comments

Comments

@A-qingtongxiaoyou
Copy link

'pybullet_examples/inverse_dynamics.py' relates to the urdf file 'pybullet_data/TwoJointRobot_wo_fixedJoints.urdf'.
In the urdf,

<link name="link_1">
    <visual>
      <geometry>
        <box size="1.0 0.1 0.05"/>
      </geometry>
      <origin rpy="0 0 0" xyz="0.5 0 0"/>
      <material name="blue"/>
    </visual>
    <collision>
      <geometry>
        <box size="1.0 0.1 0.05"/>
      </geometry>
      <origin rpy="0 0 0" xyz="0.5 0 0"/>
    </collision>
    <inertial>
      <mass value="0.5"/>
      <inertia ixx="0.00208333333333" ixy="0.0125" ixz="0.00625" iyy="0.167083333333" iyz="0.000625" izz="0.168333333333"/>
    </inertial>
According to the formula for the inertia tensor of a rectangular body: ixx=(1/12) * 0.5 * (0.1*0.1+0.05*0.05)=0.0005208, and ixz, ixy, iyz =0. Why are the results does not match with       <inertia ixx="0.00208333333333" ixy="0.0125" ixz="0.00625" iyy="0.167083333333" iyz="0.000625" izz="0.168333333333"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant