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]

From Sources

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

In your Python Code

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

Arguments

Outputs: someRobot_textures (folder), someRobot.proto.
Use in Webots: put the outputs in the protos folder of your Webots project.

Notes

This tool have been tested with ur5, pr2, motoman and kinova using Webots R2019a on Ubuntu16.04.
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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

urdf2webots-1.0.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urdf2webots-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for urdf2webots-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d2f595251f99eb2066db90885e5733bd1c9aa38d560549cdca323dc020f55f5
MD5 17b2ec3710ebfae18477f562833d0cd6
BLAKE2b-256 1ac6f7df6ea6359217d9737612ff7b3d26c7cf96e4192690f97d6b3a529cd9ab

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