Skip to content

Commit 7ca6109

Browse files
authored
Clarify Docker and native uv installation and commands (#97)
* docs: distinguish Docker and native uv workflows * docs: trim repeated runtime setup guidance * docs: link cuRobo rebuild steps when updating native installs * docs: restore container boundary notes and simplify runtime prose State that host-only steps run outside the development container for Docker, restore natural quickstart prerequisite wording, and drop sentences that describe tab synchronization. * docs: clarify where Docker steps run in runtime instructions Tell Docker readers to start or attach to the container from the host, outside any container, and to leave the container before rebuilding or setting up host devices. Reword the native uv runtime text, place the Docker update steps under the Docker installation, clarify conda verification and drop a repeated installation-choice sentence.
1 parent db7ddae commit 7ca6109

27 files changed

Lines changed: 512 additions & 301 deletions

‎README.md‎

Lines changed: 67 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@ the amount of manual collection needed to produce datasets for policy training.
5858

5959
## Quick Start
6060

61+
Choose **one** installation method: [Docker (recommended)](#docker-installation-recommended) or
62+
[native uv](#native-uv-installation). Both start with the shared prerequisites and clone steps below.
63+
6164
### Prerequisites
6265

6366
- Linux with an NVIDIA GPU and driver that meet the
6467
[Isaac Sim requirements](https://docs.isaacsim.omniverse.nvidia.com/latest/installation/requirements.html)
6568
- Git and [Git LFS](https://git-lfs.com/)
66-
- For the recommended Docker installation: [Docker](https://docs.docker.com/engine/install/), the
67-
[NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html),
68-
and an [NGC](https://catalog.ngc.nvidia.com/) account for the Isaac Sim container image
69-
- For the native installation instead: Linux x86_64,
70-
[uv](https://docs.astral.sh/uv/getting-started/installation/) 0.12.21 or newer, CMake, and a C++ compiler
7169

7270
### Installation
7371

@@ -80,7 +78,13 @@ git lfs install
8078
git lfs pull
8179
```
8280

83-
Log in to NGC and launch the development container:
81+
#### Docker installation (recommended)
82+
83+
This method requires [Docker](https://docs.docker.com/engine/install/), the
84+
[NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html),
85+
and an [NGC](https://catalog.ngc.nvidia.com/) account for the Isaac Sim container image.
86+
87+
From the repository root **on the host**, outside any container, log in to NGC and launch the development container:
8488

8589
```bash
8690
docker login nvcr.io
@@ -92,31 +96,47 @@ The first launch builds the development image and opens a shell in the repositor
9296
for SkillGen workflows. Docker reuses the base image's Isaac Sim; other dependencies use the same repository
9397
`uv.lock` as the native installation.
9498

95-
For the native installation, skip Docker and install the locked environment at the repository root instead:
99+
#### Native uv installation
100+
101+
This method does **not** require Docker. On Linux x86_64, install
102+
[uv](https://docs.astral.sh/uv/getting-started/installation/) **0.12.21 or newer**, CMake, and a C++ compiler.
103+
From the repository root **on the host**, install the locked environment:
96104

97105
```bash
98106
uv sync --locked
99107
```
100108

109+
For cuRobo/SkillGen and additional native prerequisites, see the
110+
[native uv installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html?autodata-runtime=uv#optional-native-uv-installation).
111+
112+
#### Updating an existing checkout
113+
101114
This checkout uses Isaac Sim 6.1.0, Arena 0.3.0 at commit
102115
`c7edf3a9d5d8276565208f72422f8f8a0806d6cf`, and its nested Isaac Lab at commit
103-
`91a0906f93802eb859192dcb0bca879f891e92d6`. After updating an existing clone, run
104-
`git submodule update --init --recursive` and rebuild with `./docker/run_docker.sh -c -r`, or rerun
105-
`uv sync --locked` for the native installation.
116+
`91a0906f93802eb859192dcb0bca879f891e92d6`. After updating the checkout, run
117+
`git submodule update --init --recursive`, then update only your chosen runtime:
118+
119+
- **Docker:** exit the development container, then rebuild on the host with `./docker/run_docker.sh -r`, or
120+
`./docker/run_docker.sh -c -r` for SkillGen.
121+
- **Native uv:** run `uv sync --locked`; include `--group curobo` if you use SkillGen.
122+
SkillGen users must [rebuild cuRobo](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html?autodata-runtime=uv#installation-uv-curobo)
123+
after changing their GPU or the locked PyTorch version.
124+
106125
Commands, environment profiles, and source dataset metadata use Lab 3.0's `IsaacContrib-*`
107126
task names directly. For example, Franka recording uses
108127
`--task IsaacContrib-Stack-Cube-Franka-IK-Rel`.
109128

110-
The [installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html) covers the
111-
[native uv installation](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html#optional-native-uv-installation)
112-
including cuRobo, a
113-
[conda installation](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html#optional-conda-installation)
114-
with `./conda_installer.sh -c -i`, and additional container options.
129+
The [installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html) also covers
130+
additional container options and the optional
131+
[conda installation](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html#optional-conda-installation).
115132

116133
### Generate Your First Dataset
117134

118-
Inside the container, generate ten Franka cube-stacking demonstrations from the pre-annotated dataset. In the uv
119-
environment, start each Python command with `uv run --locked`:
135+
Generate ten Franka cube-stacking demonstrations from the pre-annotated dataset. Expand the commands for
136+
**your chosen runtime** and run them from the repository root.
137+
138+
<details>
139+
<summary>Docker — inside the development container</summary>
120140

121141
```bash
122142
python scripts/generate_dataset.py \
@@ -131,14 +151,41 @@ python scripts/generate_dataset.py \
131151
--output_file ./datasets/generated_dataset_franka_quickstart.hdf5
132152
```
133153

134-
Validate the generated dataset:
154+
Validate the generated dataset in the same container:
135155

136156
```bash
137157
python scripts/validate_dataset.py ./datasets/generated_dataset_franka_quickstart.hdf5
138158
```
139159

140-
See [Your First Data Generation](https://isaac-sim.github.io/AutoData/main/pages/quickstart/first_data_generation.html)
141-
for an explanation of each step and instructions for replaying the result.
160+
[Continue with the Docker quickstart and replay instructions](https://isaac-sim.github.io/AutoData/main/pages/quickstart/first_data_generation.html?autodata-runtime=docker).
161+
162+
</details>
163+
164+
<details>
165+
<summary>Native uv — on the host</summary>
166+
167+
```bash
168+
uv run --locked python scripts/generate_dataset.py \
169+
--viz kit \
170+
--env_name IsaacContrib-Stack-Cube-Franka-IK-Rel \
171+
--alg mimicgen \
172+
--generation_num_trials 10 \
173+
--num_envs 10 \
174+
--task_descriptor autodata_examples/tasks/franka_cube_stack.yaml \
175+
--embodiment autodata_examples/embodiments/franka_ik_rel.yaml \
176+
--input_file ./datasets/annotated_datasets/dataset_franka_annotated.hdf5 \
177+
--output_file ./datasets/generated_dataset_franka_quickstart.hdf5
178+
```
179+
180+
Validate the generated dataset on the host:
181+
182+
```bash
183+
uv run --locked python scripts/validate_dataset.py ./datasets/generated_dataset_franka_quickstart.hdf5
184+
```
185+
186+
[Continue with the native uv quickstart and replay instructions](https://isaac-sim.github.io/AutoData/main/pages/quickstart/first_data_generation.html?autodata-runtime=uv).
187+
188+
</details>
142189

143190
## Example Workflows
144191

‎docs/README.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,25 @@ xdg-open _build/index.html
6464
- `` :autodata_code_link:`<path/to/file.py>` `` — links to a file on GitHub.
6565
- `:autodata_git_clone_code_block:` — inserts the clone command.
6666
- Images go in `images/` and are referenced with relative paths (see the Arena docs for examples).
67+
68+
## Runtime command tabs
69+
70+
Use `autodata-python` for one Python invocation that applies to both Docker and native uv. Give only the
71+
script/module arguments; the directive supplies `python` or `uv run --locked python`:
72+
73+
```rst
74+
.. autodata-python::
75+
76+
scripts/validate_dataset.py datasets/generated.hdf5
77+
```
78+
79+
For diagnostics that inspect an existing installation, add `:no-sync:` to avoid installing or replacing
80+
packages before the check.
81+
82+
Use `.. autodata-runtime::` where a workflow prepares its execution environment. Add `:curobo:` for SkillGen.
83+
These directives share the Sphinx-design `autodata-runtime` sync group, so the choice persists across pages
84+
during the browser session without changing robot or physics tabs.
85+
86+
Keep host commands and method-specific installation/administration commands as ordinary code blocks. Do not
87+
put shell setup or multiple independent commands into `autodata-python`. Check paths and environment assumptions
88+
before sharing arguments: a Docker-only path such as `/workspaces/autodata` is not a native host path.

‎docs/_ext/autodata_doc_tools.py‎

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
"""Small source-read macros for the AutoData docs.
5-
6-
Mirrors the Arena docs tooling (``isaaclab_arena_doc_tools``): text substitutions applied to every
7-
RST page before parsing, so recurring snippets (docker commands, code links, clone URLs) are defined
8-
in one place and can switch between internal/external targets on release.
9-
"""
4+
"""Reusable commands, runtime tabs and source-derived tables for the AutoData docs."""
105

116
import ast
127
import re
138
from pathlib import Path
9+
from textwrap import indent
1410
from typing import Any
1511

12+
from docutils import nodes
13+
from docutils.parsers.rst import directives
1614
from sphinx.application import Sphinx
15+
from sphinx.util.docutils import SphinxDirective
1716

1817

1918
def autodata_git_clone_code_block(app: Sphinx, _: Any, source: list[str]) -> None:
@@ -71,6 +70,56 @@ def curobo_replacer(_: Any) -> str:
7170
source[0] = re.sub(r":docker_run_curobo:", curobo_replacer, source[0])
7271

7372

73+
def _runtime_tabs(docker: str, uv: str) -> str:
74+
parts = [".. tab-set::\n :sync-group: autodata-runtime\n"]
75+
for label, key, content in (("Docker", "docker", docker), ("Native uv", "uv", uv)):
76+
parts.append(f" .. tab-item:: {label}\n :sync: {key}\n\n{indent(content, ' ')}\n")
77+
return "\n".join(parts)
78+
79+
80+
def _shell_block(command: str) -> str:
81+
return f".. code-block:: bash\n\n{indent(command, ' ')}"
82+
83+
84+
class AutoDataPythonDirective(SphinxDirective):
85+
"""Render one Python invocation's arguments for Docker and native uv."""
86+
87+
has_content = True
88+
option_spec = {"no-sync": directives.flag}
89+
90+
def run(self) -> list[nodes.Node]:
91+
self.assert_has_content()
92+
arguments = "\n".join(self.content)
93+
uv_mode = "--no-sync" if "no-sync" in self.options else "--locked"
94+
return self.parse_text_to_nodes(
95+
_runtime_tabs(_shell_block(f"python {arguments}"), _shell_block(f"uv run {uv_mode} python {arguments}"))
96+
)
97+
98+
99+
class AutoDataRuntimeDirective(SphinxDirective):
100+
"""Show where workflow commands run for each installation method."""
101+
102+
option_spec = {"curobo": directives.flag}
103+
104+
def run(self) -> list[nodes.Node]:
105+
curobo = "curobo" in self.options
106+
container = "the cuRobo container" if curobo else "a development container"
107+
docker = (
108+
f"If you are not already in {container}, run this from the repository root in a terminal on the host, "
109+
"outside any container:\n\n"
110+
+ _shell_block("./docker/run_docker.sh" + (" -c" if curobo else ""))
111+
+ "\n\nIf the container is already running, this opens another shell in it. "
112+
"Continue inside the container at ``/workspaces/autodata``."
113+
)
114+
installation = "installation-uv-curobo" if curobo else "installation-uv"
115+
label = "uv environment with cuRobo" if curobo else "uv environment"
116+
uv = (
117+
"Run commands from the repository root in a terminal on the host. "
118+
f"``uv run`` uses your installed :ref:`{label} <{installation}>`, so you don't need to activate it."
119+
)
120+
return self.parse_text_to_nodes(_runtime_tabs(docker, uv))
121+
122+
74123
def _declarations(app: Sphinx, decorator: str) -> list[tuple[str, dict[str, Any], str]]:
75124
"""Name, options and summary line of every function in ``autodata_metrics/`` registered with ``decorator``.
76125
@@ -130,6 +179,9 @@ def autodata_checks_table(app: Sphinx, _: Any, source: list[str]) -> None:
130179

131180

132181
def setup(app: Sphinx) -> None:
182+
app.add_js_file("runtime-tabs.js")
183+
app.add_directive("autodata-python", AutoDataPythonDirective)
184+
app.add_directive("autodata-runtime", AutoDataRuntimeDirective)
133185
app.connect("source-read", autodata_git_clone_code_block)
134186
app.connect("source-read", autodata_code_link)
135187
app.connect("source-read", docker_run_command_replacer)

‎docs/_static/runtime-tabs.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
// Sphinx-design synchronizes label clicks; keyboard radio changes need the same event.
5+
document.addEventListener("change", (event) => {
6+
const input = event.target;
7+
if (!(input instanceof HTMLInputElement) || input.type !== "radio" || !input.checked) return;
8+
const label = input.nextElementSibling;
9+
if (label?.matches('.sd-tab-label[data-sync-group="autodata-runtime"]')) label.click();
10+
});

‎docs/pages/advanced/testing_and_ci.rst‎

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ Testing and CI
44
Test Suite
55
----------
66

7-
The test suite lives in ``autodata_tests/`` and runs inside the dev container, or in the native uv
8-
environment with ``uv run --locked pytest``. It is
9-
organized in tiers of increasing cost:
7+
The test suite lives in ``autodata_tests/`` and runs inside the dev container or in the native uv
8+
environment. Run commands from the repository root in your installed runtime:
9+
10+
.. autodata-runtime::
11+
12+
The suite is organized in tiers of increasing cost:
1013

1114
.. list-table::
1215
:widths: 30 70
@@ -29,26 +32,37 @@ organized in tiers of increasing cost:
2932
- Pre-annotated source datasets (Git LFS) used by the tests — and handy as quickstart
3033
inputs.
3134

32-
Common invocations:
35+
Fast unit tests only (seconds):
3336

34-
.. code-block:: bash
37+
.. autodata-python::
3538

36-
# Fast unit tests only (seconds)
37-
pytest autodata_tests -m "not with_subprocess"
39+
-m pytest autodata_tests -m "not with_subprocess"
3840

39-
# One end-to-end generation test, streaming Isaac Sim output live
40-
pytest -s autodata_tests/e2e/test_mimicgen_data_generation.py::test_franka_cube_stack_mimicgen_data_generation_single_env_cuda
41+
One end-to-end generation test, streaming Isaac Sim output live:
4142

42-
# Everything that launches Isaac Sim (long)
43-
pytest autodata_tests -m with_subprocess
43+
.. autodata-python::
4444

45-
# All tests, including the success-rate benchmarks (use the cuRobo image)
46-
pytest -s autodata_tests
45+
-m pytest -s autodata_tests/e2e/test_mimicgen_data_generation.py::test_franka_cube_stack_mimicgen_data_generation_single_env_cuda
4746

4847
.. note::
4948

5049
The SkillGen end-to-end tests require cuRobo: the cuRobo image (``./docker/run_docker.sh -c``)
51-
or the uv ``curobo`` group described in :doc:`../quickstart/installation`.
50+
or the native setup described in :ref:`installation-uv-curobo`.
51+
52+
.. autodata-runtime::
53+
:curobo:
54+
55+
Everything that launches Isaac Sim (long):
56+
57+
.. autodata-python::
58+
59+
-m pytest autodata_tests -m with_subprocess
60+
61+
All tests, including the success-rate benchmarks:
62+
63+
.. autodata-python::
64+
65+
-m pytest -s autodata_tests
5266

5367

5468
Continuous Integration
@@ -110,10 +124,13 @@ When a run dies silently or hangs, work down this list:
110124
3. **Capture Kit's own log.** Isaac Sim messages from the C++/USD/PhysX layers often never
111125
reach Python stdout. Forward settings to Kit through the AppLauncher:
112126

113-
.. code-block:: bash
127+
.. autodata-python::
128+
129+
scripts/generate_dataset.py ... \
130+
--kit_args "--/log/file=${PWD}/kit.log --/log/level=verbose --/log/async=false"
114131

115-
python scripts/generate_dataset.py ... \
116-
--kit_args "--/log/file=/workspaces/autodata/kit.log --/log/level=verbose --/log/async=false"
132+
This writes ``kit.log`` at the repository root. The path must contain no whitespace because
133+
AppLauncher splits ``--kit_args`` on whitespace.
117134

118135
``--/log/async=false`` is the important one for crashes: asynchronous logging loses the
119136
final messages when the process dies.
@@ -125,12 +142,11 @@ Linting
125142
-------
126143

127144
Pre-commit hooks enforce the style guide (black, flake8, isort, pyupgrade, codespell, and
128-
RST checks). Run them before committing, inside the development container or with
129-
``uv run --locked pre-commit run --all-files`` in the uv environment:
145+
RST checks). Run them before committing, from the repository root in your installed runtime:
130146

131-
.. code-block:: bash
147+
.. autodata-python::
132148

133-
pre-commit run --all-files
149+
-m pre_commit run --all-files
134150

135151
Documentation
136152
-------------

0 commit comments

Comments
 (0)