Skip to content

Commit b5f61a9

Browse files
Add info on installing rerun-urdf-loader
1 parent 9119326 commit b5f61a9

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
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

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)