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

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,
)

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

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.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

urdf2mjcf-0.0.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urdf2mjcf-0.0.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for urdf2mjcf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3d06a67fe2b5ebc6db0d20f4c1ef66f433faf999ab6c6e02df21d0c1072d7853
MD5 41e72a80f1a8fa73652abb1a88e20eb1
BLAKE2b-256 cc8f206fc9540b820ca1b16bc6211d72283dea15287af739e1882c89beca3fd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urdf2mjcf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for urdf2mjcf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0ba925af403aebce7bc65cf6ce8c802f4336cd87a841be6723709abfa8fb820e
MD5 3fc1b82997b70f4ba2a900c726a30fba
BLAKE2b-256 181ea58beaeef808701e9a5c6689c8c13c97600f357c269a91c967606c85a06a

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