Skip to content

Commit fe5ca33

Browse files
committed
Clean up URDF loader
1 parent ee5f547 commit fe5ca33

File tree

6 files changed

+444
-433
lines changed

6 files changed

+444
-433
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ External data loaders are executables that are available to the Rerun Viewer via
99
This example is written in Python, and uses [urdf_parser_py](https://github.com/ros/urdf_parser_py/tree/ros2) to read the files. ROS package-relative paths support both ROS 1 and ROS 2-based resolving.
1010

1111
## Installing the Rerun Viewer
12-
The simplest option is just (*this example currently requires a prerelease*):
12+
The simplest option is just:
1313
```bash
14-
pip install --pre -f https://build.rerun.io/commit/1dad7c8/wheels --upgrade rerun-sdk
14+
pip install --upgrade rerun-sdk
1515
```
1616
Read [this guide](https://www.rerun.io/docs/getting-started/installing-viewer) for more options.
1717

pyproject.toml

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
11
[project]
22
name = "rerun-loader-urdf"
3-
version = "0.1.0"
4-
requires-python = ">=3.9"
3+
description = "Example of an executable data-loader plugin for the Rerun Viewer for URDF files."
4+
version = "0.2.0"
5+
requires-python = ">=3.10"
56
dependencies = [
6-
"urdfdom-py @ git+https://github.com/ros/urdf_parser_py.git@1.2.1",
7-
"rerun-sdk>=0.14.1",
7+
"urdfdom-py",
8+
"rerun-sdk>=0.23.1",
89
"numpy>=1.26.4",
910
"trimesh>=4.2.2",
1011
"pyyaml>=6.0.1",
1112
"lxml>=5.1.0",
1213
"pillow>=10.2.0",
1314
"pycollada>=0.8",
14-
"scipy>=1.12.0",
15+
"scipy>=1.15.2",
16+
"xacro>=1.13.3",
1517
]
1618

19+
[project.scripts]
20+
rerun-loader-urdf = "rerun_loader_urdf:main"
21+
22+
[build-system]
23+
requires = ["hatchling"]
24+
build-backend = "hatchling.build"
25+
26+
[tool.uv.sources]
27+
urdfdom-py = { git = "https://github.com/ros/urdf_parser_py.git", rev = "1.2.1" }
1728

1829
[tool.ruff]
30+
line-length = 120
31+
32+
[tool.ruff.lint]
1933
ignore = [
2034
"D1",
2135
"D202",
@@ -31,7 +45,6 @@ ignore = [
3145
"UP007",
3246
]
3347

34-
line-length = 120
3548
select = [
3649
"D", # pydocstyle codes https://www.pydocstyle.org/en/latest/error_codes.html
3750
"E", # pycodestyle error codes: https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes

rerun_loader_urdf.py

-260
This file was deleted.

0 commit comments

Comments
 (0)