Skip to content

Commit 63289a5

Browse files
authored
Merge pull request #23 from EzraBrooks/add-more-detail-about-unpacking
Add more README detail about unpacking
2 parents bc425c7 + 8187c47 commit 63289a5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ This will extract the URDF and all mesh files to the current directory.
3030

3131
## How does it work?
3232

33-
URDFZ treats your URDF as an archive manifest for your URDFZ archive. It looks up all the URIs listed in the URDF, resolves them to absolute paths, and copies them into the archive. It then creates a copy of your URDF that has its URIs rewritten to a `urdfz://` scheme that points to the asset's path within the archive, and places that modified URDF at the root of the archive.
33+
Upon packing, URDFZ treats your URDF as an archive manifest for your URDFZ archive.
34+
It looks up all the URIs listed in the URDF, resolves them to absolute paths, and copies them into the archive.
35+
It then creates a copy of your URDF that has its URIs rewritten to a `urdfz://` scheme that points to the asset's path within the archive, and places that modified URDF at the root of the archive.
36+
37+
Upon unpacking, URDFZ unzips its archive and replaces the `urdfz://` URI scheme with the resulting absolute path on-disk after extraction.
38+
A side effect of this is that `urdfz pack` -> `urdfz unpack` can additionally be used as a way to sever your connection to upstream robot description packages, as the `package://` URLs are currently deliberately not persisted.
39+
If you've ever had an upstream description change break your production robot during a distro upgrade, you know what I'm talking about!
40+
41+
3442

3543
## Things URDFZ aims to support
3644

0 commit comments

Comments
 (0)