Skip to content

fix: use relative paths inside pip package (drop ../YCB_sim/ prefix)#1

Merged
Vittorio-Caggiano merged 2 commits into
mainfrom
fix/pip-relative-paths
May 11, 2026
Merged

fix: use relative paths inside pip package (drop ../YCB_sim/ prefix)#1
Vittorio-Caggiano merged 2 commits into
mainfrom
fix/pip-relative-paths

Conversation

@Vittorio-Caggiano
Copy link
Copy Markdown

Problem

includes/*.xml files reference meshes and textures via ../YCB_sim/meshes/ and ../YCB_sim/textures/. When installed as a pip package, the sibling YCB_sim/ directory does not exist — MuJoCo cannot resolve these paths and asset loading fails at runtime.

Fix

Replace ../YCB_sim/ with ../ in all includes/*.xml files. From the includes/ subdirectory, ../meshes/ and ../textures/ correctly resolve to the package root's meshes/ and textures/ directories.

Impact

This is required for ycb_sim to work when installed via pip without a full git-submodule checkout. Without this fix, downstream consumers (e.g. MyoSuite) must apply runtime XML patching to rewrite these paths on every model load.

includes/*.xml referenced meshes and textures via ../YCB_sim/meshes/ and
../YCB_sim/textures/. When installed as a pip package the sibling YCB_sim/
directory does not exist — the actual assets are at ../meshes/ and
../textures/ relative to the includes/ subdirectory.

Fixes path resolution when ycb_sim is imported from a virtual environment
without a git-submodule checkout of the full repo tree.
@Vittorio-Caggiano Vittorio-Caggiano merged commit a032ab9 into main May 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant