Skip to content
Utility to convert URDF files to Webots PROTO nodes
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add Founding Nov 5, 2019
tests Simplified tests Feb 4, 2020
urdf2webots Removed useless variable Feb 4, 2020
.gitignore Update gitignore Sep 25, 2019
.gitmodules Add motoman submodule. Mar 13, 2019
.travis.yml Add Python 3.8 test Jan 31, 2020
CONTRIBUTING.md Update CONTRIBUTING.md Oct 25, 2018
LICENSE Create LICENSE Oct 24, 2018
README.md Move Badges Feb 18, 2020
demo.py Fixed PEP8 line lengths Jan 31, 2020
requirements.txt final version Jan 31, 2020
setup.py Update version number Feb 3, 2020

README.md

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 using Webots R2020a 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.

You can’t perform that action at this time.