An example data-loader plugin that lets you view URDF files in Rerun
Project description
URDF -> Rerun plugin
This is an example data-loader plugin that lets you view URDF files in the Rerun Viewer. It uses the external data loader mechanism to add this capability to the viewer without modifying the viewer itself.
External data loaders are executables that are available to the Rerun Viewer via the PATH variable, with a name that starts with rerun-loader-.
This example is written in Python, and uses urdf_parser_py to read the files. ROS package-relative paths support both ROS 1 and ROS 2-based resolving.
Installing the Rerun Viewer
The simplest option is just:
pip install rerun-sdk==0.20.3
Read this guide for more options.
Installing the plugin
Installing pipx
The most robust way to install the plugin to your PATH is using pipx.
If you don't have pipx installed on your system, you can follow the official instructions here.
Installing the plugin with pipx
Now you can install the plugin to your PATH using
pipx install git+https://github.com/rerun-io/rerun-loader-python-example-urdf.git
pipx ensurepath
Note: you can use the --python argument to specify the Python interpreter to use with pipx.
On unix-like systems --python $(which python) will use the currently active Python.
Make sure it's installed by running it from your terminal, which should output an error and usage description:
> rerun-loader-urdf
usage: rerun-loader-urdf [-h] [--opened-application-id APPLICATION_ID] [--recording-id RECORDING_ID] [--entity-path-prefix ENTITY_PATH_PREFIX] [--static] [--time TIME] [--sequence SEQUENCE] filepath
rerun-loader-urdf: error: the following arguments are required: filepath
Try it out
Download an example URDF file
curl -OL https://github.com/rerun-io/rerun-loader-python-example-urdf/raw/main/example.urdf
Open in the Rerun Viewer
You can either first open the viewer, and then open the file from there using drag-and-drop or the menu>open… dialog, or you can open it directly from the terminal like:
rerun example.urdf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rerun_loader_urdf-0.1.1.tar.gz.
File metadata
- Download URL: rerun_loader_urdf-0.1.1.tar.gz
- Upload date:
- Size: 38.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bc3d105052de60986f30e83829b630fc34f2d86d168a70cb98320afda31ea96
|
|
| MD5 |
8ace3064a7f1ac1f304106118bb896b0
|
|
| BLAKE2b-256 |
0b4fd9a4116dd9a970f5cc10854c9593f3b4963b13cc8392d3a65a8b47c5f9ec
|
File details
Details for the file rerun_loader_urdf-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rerun_loader_urdf-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e7f63cb9a8349cd4f25feca2e2c42ab33bc1b4f7d3e00da21cc811cd82874e4
|
|
| MD5 |
ecf88f13ce0c4ac6fb15c57c2d5fcdd1
|
|
| BLAKE2b-256 |
7d6bbab1062a5173b86b802b60f71970192bbfb55a8e88ace4579553bdb24856
|