Inertia¶
- class urdfgenpy.InertiaMatrix(ixx, ixy, ixz, iyy, iyz, izz)[source]¶
Bases:
objectSymmetric 3x3 inertia tensor stored as its six unique components.
- Parameters:
ixx (
float) – Moment of inertia about the X axis (kg·m²).ixy (
float) – Product of inertia XY (kg·m²).ixz (
float) – Product of inertia XZ (kg·m²).iyy (
float) – Moment of inertia about the Y axis (kg·m²).iyz (
float) – Product of inertia YZ (kg·m²).izz (
float) – Moment of inertia about the Z axis (kg·m²).
- urdfgenpy.box_inertia(m, length, w, h, inertia_multiply=1.0)[source]¶
Compute the inertia tensor for a solid box about its centre of mass.
- Parameters:
- Return type:
- Returns:
An – class:’InertiaMatrix’ for the box.
- urdfgenpy.sphere_inertia(m, r, inertia_multiply=1.0)[source]¶
Compute the inertia tensor for a solid sphere about its centre of mass.
- Parameters:
- Return type:
- Returns:
An – class:’InertiaMatrix’ for the sphere.