Skip to main content

The urdf2mjcf project

Project description

K-Scale Open Source Robotics

License Version Discord Wiki
python black ruff
Python Checks Publish Python Package

urdf2mjcf

Example

This script converts URDF files to MJCF files, with some nice options.

Installation

pip install urdf2mjcf

Usage

Command Line

To run the conversion script from the command line, use:

urdf2mjcf path/to/your/robot.urdf

This will save the MJCF file in the same directory as the URDF file.

To see all the options, use:

urdf2mjcf -h

Python

To run the conversion script from Python, use:

from urdf2mjcf import run

run(
    urdf_path="path/to/your/robot.urdf",
    mjcf_path="path/to/save/robot.mjcf",
    copy_meshes=True,
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urdf2mjcf-0.0.4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

urdf2mjcf-0.0.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file urdf2mjcf-0.0.4.tar.gz.

File metadata

  • Download URL: urdf2mjcf-0.0.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for urdf2mjcf-0.0.4.tar.gz
Algorithm Hash digest
SHA256 59c7acea0031269f9332f092512d9e275b5c562bb265c9908d25ebac9985160d
MD5 c0da6b9591ac6648e4b9a278c02a4939
BLAKE2b-256 0a7a0c78f1d1c212e419c10966e38f84730a8e66cb3664b58ae63e2e861a3b9c

See more details on using hashes here.

File details

Details for the file urdf2mjcf-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: urdf2mjcf-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for urdf2mjcf-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bdfc7a91777d873b0af116af4cbb5d54440d3e244511e48ab05aa271f481f725
MD5 beb869a683f065cfa0b596ae1c554612
BLAKE2b-256 cd8aaf9e336384ef7d04667e252859cdcbe952b62da43d8b2c99fd64af340909

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page