Skip to main content

A converter between URDF and PROTO files.

Project description

urdf2webots

Build Status

This tool converts URDF files into Webots PROTO files.

Install

From pip

pip install urdf2webots

On macOS, export the pip binary path to the PATH: export PATH="/Users/$USER/Library/Python/3.7/bin:$PATH"

From Sources

git clone https://github.com/cyberbotics/urdf2webots.git
cd urdf2webots
pip install -r requirements.txt

Usage

From pip

python -m urdf2webots.importer --input=someRobot.urdf [--output=outputFile] [--box-collision] [--normal] [--disable-mesh-optimization] [--multi-file] [--help]

From Sources

python demo.py --input=someRobot.urdf [--output=outputFile] [--box-collision] [--normal] [--disable-mesh-optimization] [--multi-file] [--help]

Arguments

The script accepts the following arguments:

  • -h, --help: Show the help message and exit.
  • --input=INFILE: Specifies the urdf file to convert.
  • --output=OUTFILE: Specifies the name of the resulting PROTO file.
  • --normal: If set, the normals are exported if present in the URDF definition.
  • --box-collision: If set, the bounding objects are approximated using boxes.
  • --disable-mesh-optimization: If set, the duplicated vertices are not removed from the meshes (this can speed up a lot the conversion).
  • --multi-file: If set, the mesh files are exported as separated PROTO files.

In your Python Code

from urdf2webots.importer import convert2urdf
convert2urdf('MY_PATH/MY_URDF.urd')

Notes

This tool have been tested using Webots R2020b on Ubuntu16.04 and Windows.
You can find the sources of these URDF files here:

Acknowledgement

rosin_logo

Supported by ROSIN - ROS-Industrial Quality-Assured Robot Software Components.
More information: rosin-project.eu

eu_flag

This project has received funding from the European Union’s Horizon 2020
research and innovation programme under grant agreement no. 732287.

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

urdf2webots-1.0.6.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

urdf2webots-1.0.6-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file urdf2webots-1.0.6.tar.gz.

File metadata

  • Download URL: urdf2webots-1.0.6.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for urdf2webots-1.0.6.tar.gz
Algorithm Hash digest
SHA256 1fc6bb541bf47fa5860dcba690debfadd323179084035272fba9140e61f9813e
MD5 253eb448f6c5407e43611ff246da49e8
BLAKE2b-256 7ccf4e4f468bec7cb412dd6fb78d8a8fca9e823820abe69e66c187ea6234dda3

See more details on using hashes here.

File details

Details for the file urdf2webots-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: urdf2webots-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for urdf2webots-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d0efb31cfdd2a24b215e8f69677826426279965c6d4610a8820ddf55ac61fb34
MD5 e58e2d973527c21036b6518c83528f26
BLAKE2b-256 6a9f9f3a161fa20e48f6336dc0ae5289fb44b9a34a9629db7ebace41007bf3d0

See more details on using hashes here.

Supported by

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