Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
demonstrations, it uses parallel simulation environments to generate diverse datasets of successful robot
demonstrations for robot learning.

AutoData splits demonstrations into object-relative skill segments. During generation, it transforms those segments
to new scene configurations, connects them into complete trajectories, executes them in simulation, and records the
successful trials as HDF5 datasets.
Isaac AutoData splits demonstrations into object-relative skill segments. During generation, it transforms those
segments to new scene configurations, connects them into complete trajectories, executes them in simulation, and
records successful demonstrations in HDF5 datasets.

<p align="center">
<img src="docs/images/autodata.gif" alt="Isaac AutoData generating robot demonstrations in parallel" width="100%">
Expand Down Expand Up @@ -123,7 +123,7 @@ for an explanation of each step and instructions for replaying the result.
| Workflow | Description |
|----------|-------------|
| [Franka Cube Stacking](https://isaac-sim.github.io/Isaac-AutoData/main/pages/workflows/franka_cube_stack_mimicgen/) | Record, annotate, and expand single-arm demonstrations with MimicGen. |
| [Humanoid Pick and Place](https://isaac-sim.github.io/Isaac-AutoData/main/pages/workflows/humanoid_dexmimicgen/) | Generate bimanual demonstrations for Fourier GR-1 and Unitree G1 with DexMimicGen. |
| [Humanoid Pick-and-Place](https://isaac-sim.github.io/Isaac-AutoData/main/pages/workflows/humanoid_dexmimicgen/) | Generate bimanual demonstrations for Fourier GR-1 and Unitree G1 with DexMimicGen. |
| [Motion-Planned Generation](https://isaac-sim.github.io/Isaac-AutoData/main/pages/workflows/skillgen/) | Use SkillGen and cuRobo to create collision-aware trajectories, including task variants built with environment profiles. |

## Project Structure
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `isaac_autodata` Docs - Developer Guide
# Isaac AutoData Documentation — Developer Guide

The docs are built on the **host machine** (not inside Docker) using a dedicated Python 3.12 venv.

Expand Down
16 changes: 9 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Welcome to Isaac AutoData!

``Isaac AutoData`` is a trajectory data-generation framework built on top of
`Isaac Lab <https://isaac-sim.github.io/IsaacLab/main/index.html>`_ and
`Isaac Lab Arena <https://github.com/isaac-sim/IsaacLab-Arena>`_.
`Isaac Lab-Arena <https://github.com/isaac-sim/IsaacLab-Arena>`_.
Given a handful of annotated human demonstrations, it uses parallel simulation environments to
synthesizes large datasets of new demonstrations by transforming and recombining the human
synthesize large datasets of new demonstrations by transforming and recombining the human
demonstration segments.

.. figure:: images/autodata.gif
Expand All @@ -21,8 +21,8 @@ The Problem

Imitation-learning policies are data hungry. They need large, diverse datasets of successful
demonstrations, and collecting those by human teleoperation is slow and expensive. Yet most of
what a policy needs to learn from a thousand demonstrations is already contained in ten. The
same skill, repeated under different object placements.
what a policy needs to learn from a thousand demonstrations is already contained in ten: the
same skill repeated under different object placements.

Isaac AutoData exploits that redundancy. A human demonstration is split into **subtasks** (each
a contiguous segment in which the robot's end-effector motion is driven by a single reference
Expand All @@ -37,15 +37,15 @@ Isaac AutoData
Four pieces cooperate to generate data:

* **Task descriptor** (YAML) — declares the task's subtasks per end-effector, the boundary
signals that separate them, cross-arm constraints, and the generation policy (trial counts,
signals that separate them, cross-arm constraints, and the generation policy (generation targets,
seeding, export behavior). See :doc:`pages/concepts/task_descriptors`.
* **Embodiment** (YAML + adapter) — describes the robot from the generator's point of view:
where to read end-effector poses and how to convert between target poses and the
environment's action vector. See :doc:`pages/concepts/embodiments`.
* **Datastream** — the single read interface the generator uses to observe the world: object
poses, end-effector poses, subtask signals, and the pool of annotated source demonstrations.
See :doc:`pages/concepts/datastream`.
* **Generation algorithms** — MimicGen (single arm), DexMimicGen (multi-arms), and SkillGen (motion-planned transit).
* **Generation algorithms** — MimicGen (single-arm), DexMimicGen (multi-arm), and SkillGen (motion-planned transit).
See :doc:`pages/concepts/algorithms`.
All three plug into one data generator — see :doc:`pages/concepts/data_generator`.

Expand Down Expand Up @@ -90,7 +90,7 @@ License
=======

Isaac AutoData is licensed under the `Apache License 2.0
<https://github.com/isaac-sim/Isaac-AutoData/blob/main/LICENSE>`_.
<https://github.com/isaac-sim/Isaac-AutoData/blob/main/LICENSE.md>`_.


Table of Contents
Expand All @@ -100,6 +100,7 @@ Table of Contents
:maxdepth: 1
:caption: Set Up

pages/quickstart/support_matrix
pages/quickstart/installation

.. toctree::
Expand Down Expand Up @@ -145,4 +146,5 @@ Table of Contents
:maxdepth: 1
:caption: References

pages/references/troubleshooting
pages/references/release_notes
4 changes: 2 additions & 2 deletions docs/pages/advanced/testing_and_ci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ organized in tiers of increasing cost:
SkillGen), each in single- and multi-env variants. Marked ``with_subprocess``: they
launch the generation CLI as an Isaac Sim child process. Minutes per test.
* - ``datagen_perf/``
- Success-rate benchmarks (hundreds of trials per run) asserting generation quality
- Success-rate benchmarks (hundreds of attempts per run) asserting generation quality
thresholds per task. Nightly-scale.
* - ``test_data/``
- Pre-annotated source datasets (Git LFS) used by the tests — and handy as quickstart
Expand Down Expand Up @@ -64,7 +64,7 @@ When a run dies silently or hangs, work down this list:

.. code-block:: bash

python isaac_autodata_examples/generate_dataset.py ... \
python scripts/generate_dataset.py ... \
--kit_args "--/log/file=/workspaces/isaac_autodata/kit.log --/log/level=verbose --/log/async=false"

``--/log/async=false`` is the important one for crashes: asynchronous logging loses the
Expand Down
24 changes: 12 additions & 12 deletions docs/pages/concepts/algorithms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Isaac AutoData ships three generation algorithms, selected with ``--alg`` on the
task descriptor's ``algo`` field independently selects which per-subtask ``algo_params``
schema the descriptor is parsed with — keep the two consistent). All three plug into the
:doc:`data generator <data_generator>` and share the same skeleton — split
source demos into subtask segments, select a segment per subtask, transform it to the current
scene, execute, and keep successful trials — and differ in how segments are bridged and how
source demonstrations into subtask segments, select a segment per subtask, transform it to the
current scene, execute, and keep successful demonstrations — and differ in how segments are bridged and how
multiple arms are handled.

.. list-table::
Expand Down Expand Up @@ -38,8 +38,8 @@ every subtask segment is stored relative to its reference object, so replaying i
object pose is a rigid-body transform of the recorded end-effector trajectory. Between
segments, the end-effector linearly interpolates from its current pose to the transformed
segment start (``num_interpolation_steps``, optionally holding ``num_fixed_steps``), and
per-step ``action_noise`` adds diversity across trials. A trial succeeds if the task's
success condition holds at any step; only then is it exported (subject to the
per-step ``action_noise`` adds diversity across attempts. An attempt succeeds if the task's
success condition holds at any step; only then is the demonstration exported (subject to the
:doc:`generation policy <task_descriptors>`).

The transformation requires **task-space actions**: the embodiment's actions must encode
Expand All @@ -53,7 +53,7 @@ DexMimicGen (`Jiang et al., 2024 <https://arxiv.org/abs/2410.24185>`_) extends t
two arms. Each end-effector declares its own subtask sequence in the descriptor, and segments
are selected, transformed, and executed per arm. Two mechanisms keep the arms consistent:

* **Source selection scope** — by default all arms replay segments from the same source demo
* **Source selection scope** — by default all arms replay segments from the same source demonstration
(``select_src_per_arm: false``), preserving whatever implicit coordination the human
demonstration had.
* **Constraints** — explicit ``sequential`` / ``coordination`` entries in the descriptor
Expand All @@ -69,14 +69,14 @@ skill segment's start, followed by the transformed skill replay. Grasped objects
to the kinematic chain during planning, so held objects are collision-checked too. This
requires knowing exactly where skills start — hence subtask **start signals** and a
termination signal on every subtask, including the final one. Constraints apply only during
skill segments; transit is constraint-free. If planning fails for a trial, the trial is
skill segments; transit is constraint-free. If planning fails for an attempt, the attempt is
abandoned and counted as a failure.

See the :doc:`SkillGen workflow <../workflows/skillgen/index>` and
:doc:`../advanced/motion_planners`.

Source Demo Selection Strategies
--------------------------------
Source Demonstration Selection Strategies
-----------------------------------------

Which source segment is replayed for a subtask is decided by a **selection strategy**,
configured per subtask in the task descriptor (``selection_strategy`` /
Expand All @@ -89,17 +89,17 @@ configured per subtask in the task descriptor (``selection_strategy`` /
* - Strategy
- Behavior
* - ``random``
- Uniform random choice over source demos.
- Uniform random choice over source demonstrations.
* - ``nearest_neighbor_object``
- Ranks demos by how close their reference-object pose is to the current one, then
- Ranks demonstrations by how close their reference-object pose is to the current one, then
picks randomly among the ``nn_k`` nearest.
* - ``nearest_neighbor_robot_distance``
- Ranks demos by how close their (object-frame-transformed) source end-effector pose
- Ranks demonstrations by how close their (object-frame-transformed) source end-effector pose
lands to the current end-effector pose, then picks among the ``nn_k`` nearest.

The nearest-neighbor strategies trade diversity for reliability: segments recorded under
similar geometry transform with less distortion, raising the success rate, while ``nn_k``
keeps some randomness so the output does not collapse onto a single source demo. The shipped
keeps some randomness so the output does not collapse onto a single source demonstration. The shipped
examples use ``nearest_neighbor_object`` with ``nn_k: 3``. How often selection re-runs — per
subtask, per arm, or once per episode — is set by the generation policy's
``select_src_per_subtask`` / ``select_src_per_arm`` flags.
28 changes: 14 additions & 14 deletions docs/pages/concepts/concept_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ Packages
- The boundary to the simulator and to configuration: task descriptors, embodiment
adapters, the Datastream, env setup helpers, and motion-planner backends.
* - ``isaac_autodata_core``
- The generation machinery: the data generator, generation algorithms, the source-demo
- The generation machinery: the data generator, generation algorithms, the source demonstration
pool, selection strategies, and waypoint execution.
* - ``isaac_autodata_utils``
- Small shared utilities (pose math, tensor helpers).
* - ``isaac_autodata_examples``
- The ``generate_dataset.py`` entry point plus example task descriptors and embodiment
configs.
- Example task descriptors, embodiment configs, environment profiles, and project-owned
environment definitions.
* - ``scripts``
- Dataset tools: annotation (``annotate_demos.py``) and validation
(``validate_dataset.py``).
- User-facing dataset entry points: generation (``generate_dataset.py``), annotation
(``annotate_demos.py``), and validation (``validate_dataset.py``).

Key Abstractions
----------------
Expand All @@ -42,7 +42,7 @@ Datastream
^^^^^^^^^^

The ``Datastream`` composes the live environment, the task descriptor, the embodiment
adapter, and the source-demo pool into the **single read interface** the generator observes
adapter, and the source demonstration pool into the **single read interface** the generator observes
the world through:

* World state: object poses (env-relative), end-effector poses, robot joint positions, the
Expand Down Expand Up @@ -71,7 +71,7 @@ producing broken generations later.
Data Generator and Algorithms
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The ``DataGenerator`` runs the per-trial loop; the pluggable
The ``DataGenerator`` runs the per-attempt loop; the pluggable
:doc:`generation algorithm <algorithms>` decides how each subtask's trajectory is planned
(interpolated transitions for MimicGen/DexMimicGen, motion-planned transit for SkillGen).
Execution is waypoint-based: each step, every end-effector's next waypoint is assembled into
Expand All @@ -80,17 +80,17 @@ one action through the Datastream's action codec, and the env is stepped once.
Generation is **asynchronous**: one generator task per environment produces actions into a
queue, and a single synchronous ``env_loop`` drains one action per env, steps the simulator
in batch, and services reset requests. This keeps the simulator stepping in lockstep while
each environment's trial logic runs independently — including retries after failed trials.
each environment's attempt logic runs independently — including retries after failed attempts.
See :doc:`data_generator` for the generator's interface and the algorithm plug-in surface.

Data Flow
---------

One generation trial, end to end:
One generation attempt, end to end:

1. **Reset.** The environment resets and randomizes the scene; the initial state is snapshot
1. **Reset.** The environment resets and randomizes the scene; the initial state is snapshotted
for the output episode.
2. **Select.** For the current subtask of each end-effector, a source demo segment is chosen
2. **Select.** For the current subtask of each end-effector, a source demonstration segment is chosen
by the subtask's selection strategy (random or nearest-neighbor — see
:doc:`algorithms`), within the scope configured by
``generation_policy.select_src_per_subtask`` / ``select_src_per_arm``.
Expand All @@ -102,6 +102,6 @@ One generation trial, end to end:
SkillGen.
5. **Execute.** Waypoints are converted to actions and stepped, with per-subtask action
noise; the task's success condition is evaluated every step and latched.
6. **Record.** Successful trials are exported to the output HDF5 (failed ones too, into a
separate file, if ``keep_failed`` is set). Generation continues until the policy's trial
target is met.
6. **Record.** Successful attempts are exported as demonstrations to the output HDF5 (failed
attempts are exported to a separate file if ``keep_failed`` is set). Generation continues
until the policy's target is met.
Loading