Skip to content

Commit 11ae6ad

Browse files
Merge pull request #350 from pollen-robotics/remove-rerun-urdf-for-pip
Remove rerun-loader-urdf as dep
2 parents 5f9c8a8 + b5f61a9 commit 11ae6ad

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

examples/rerun_viewer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Open a wav and push samples to the speaker. This is a toy example, in real
44
conditions output from a microphone or a text-to-speech engine would be
55
pushed to the speaker instead.
6+
7+
It requires the 'rerun-loader-urdf' package to be installed. It's not on PyPI,
8+
so you need to install it from the GitHub repository: pip install git+https://github.com/rerun-io/rerun-loader-python-example-urdf.git
69
"""
710

811
import logging

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ mujoco = ["mujoco==3.3.0"]
5252
nn_kinematics = ["onnxruntime==1.22.1"]
5353
placo_kinematics = ["placo==0.9.14"]
5454
gstreamer = ["PyGObject>=3.42.2,<=3.46.0"]
55-
rerun = ["rerun-sdk>=0.23.4",
56-
"rerun-loader-urdf @ git+https://github.com/rerun-io/rerun-loader-python-example-urdf.git",
55+
rerun = [
56+
"rerun-sdk>=0.23.4",
57+
# See https://github.com/rerun-io/rerun-loader-python-example-urdf/issues/12
58+
# "rerun-loader-urdf @ git+https://github.com/rerun-io/rerun-loader-python-example-urdf.git",
5759
]
5860

5961
[project.scripts]

src/reachy_mini/utils/rerun.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@
1818
import numpy as np
1919
import requests
2020
import rerun as rr
21-
from rerun_loader_urdf import URDFLogger
21+
22+
try:
23+
from rerun_loader_urdf import URDFLogger
24+
except ImportError:
25+
raise ImportError(
26+
"The 'rerun-loader-urdf' package is required for this module. "
27+
"Please install it from the GitHub repository: "
28+
"pip install git+https://github.com/rerun-io/rerun-loader-python-example-urdf.git"
29+
)
2230
from urdf_parser_py import urdf
2331

2432
from reachy_mini.kinematics.placo_kinematics import PlacoKinematics

0 commit comments

Comments
 (0)