urdf-mesh-inertia
Compute inertial parameters for a mesh using pymeshlab and return the URDF inertial tag for links.
Installation
Using pipx
The best way to install urdf-mesh-inertia is using pipx:
$ pipx install urdf-mesh-inertia
Using pip
When using pip it's suggested to work inside a virtualenv.
$ python -m pip install urdf-mesh-inertia
From source
urdf-mesh-inertia uses Poetry as dependency management and packaging tool, you need to install it first.
Then:
- Clone this repository.
- From the root of the repository run:
$ poetry build
- Install using pipx or pip (it's better to use pipx):
$ pipx install dist/urdf_mesh_inertia-0.1.0-py3-none-any.whl
Usage
Usage: urdf-mesh-inertia [OPTIONS] MESH_PATH MASS
Compute inertial parameters for a mesh.
Calculation is made using pymeshlab and the URDF inertial tag for links is
returned.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * mesh_path PATH Path of the mesh. [default: None] [required] │
│ * mass FLOAT Mass of the mesh in kg. [default: None] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --precision INTEGER Rounding at specified decimal digit. │
│ [default: None] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
For example:
$ urdf-mesh-inertia --precision 8 ~/devel/ros/darwin_description/meshes/head_coll.stl 0.158
Will give us:
<inertial>
<origin xyz="0.0025258 -0.0244761 6.7e-07"/>
<mass value="0.158"/>
<inertia ixx="0.0001567" ixy="2.494e-05" ixz="-0.0" iyy="0.00016806" iyz="0.0" izz="0.00017144"/>
</inertial>
--precision round at the specified decimal position. If you don't want
rounding run the command without it.
Metadata
Release files for urdf-mesh-inertia 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| urdf_mesh_inertia-0.2.0.tar.gz | 3.9 kB | Without provenance | Details for urdf_mesh_inertia-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| urdf_mesh_inertia-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for urdf_mesh_inertia-0.2.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / urdf_mesh_inertia-0.2.0.tar.gz
| Download URL | urdf_mesh_inertia-0.2.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11a729b2db68c1201f1c37777827fe05216eea0bd50477779be42c37b7f19338
|
|
BLAKE2b-256 checksum How to use checksums |
8b63de99c3fdc9ee2e23695f60649e8ac5841806511afaff2f613bf8b6712103
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.9 Linux/6.7.12-amd64
|
Release files / urdf_mesh_inertia-0.2.0-py3-none-any.whl
| Download URL | urdf_mesh_inertia-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d22a15add5ff4d6f25239e2040659b40dd934f42ed5db77d4e0812ff9ed16b51
|
|
BLAKE2b-256 checksum How to use checksums |
82fa7cdab071be72e5b6e84dc8d3597d0aad6edaad701dd5981d365ea458a8c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.9 Linux/6.7.12-amd64
|
Security for urdf-mesh-inertia 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.