Example Walkthrough#

This walkthrough uses the bundled Basic Scene scene and the Behavior Tree Gen workflow shipped in omni.ai.behavior_tree_gen.bridge.

Goal#

Generate a behavior tree for the following scenario:

Anna picks up the CardBox_A and places it on the Table.

Steps#

  1. Open the examples window from Window > Examples > Behavior Tree Gen Examples.

  2. In the examples window, select Basic Scene and click the button to load the example scene.

    • This loads the bundled demo stage.

    • It also pre-fills the workflow panels from the Basic Scene scene configuration.

    • The Behavior Tree Gen window is shown automatically, so you do not need to open it separately.

  3. In Behavior Tree Gen, verify the loaded inputs.

    • The Context Cache Files panel should contain the example actor and object context files, node catalogs, and metadata schemas.

    • The Model Config panel should contain the example model JSON paths under Model Configuration Files.

    • The Output Settings panel should point to a writable output directory.

  4. Make sure the model endpoint credentials are available. The example model files use NVIDIA-hosted models, which read NVIDIA_API_KEY from the app environment. Export it before launching Isaac Sim, or expand Authentication Registry in the Model Config panel, enter NVIDIA_API_KEY as the Environment Variable Name and your key as the Value, and click Update Environment. To use locally served models instead, refer to Model configuration and availability.

  5. Paste or type the scenario text:

    Anna picks up the CardBox_A and places it on the Table.
    
  6. Click Run Pipeline.

What Happens Internally#

When you click Run Pipeline, the Behavior Tree Gen UI performs the same three public API steps that scripted callers use:

  1. It creates or reloads the planner workspace from the selected context, catalog, schema, and blackboard files.

  2. It prepares the runtime by selecting the chat and embedding models, preparing the RAG retrievers, and preparing Action IR. The Planner status names the chat and embedding models in use once the runtime is prepared.

  3. It generates the behavior tree from the natural-language scenario.

Expected Result#

If the run succeeds:

  • the status line reports that generation completed successfully

  • behavior tree output files are written under the selected output folder

  • planner cache data is stored under a workspace cache directory

  • RAG and vectorstore data is stored under the derived cache directory

Known limitations of Example Actions#

Note

The custom actions bundled with the examples (such as MoveTo) are provided to demonstrate that the system supports action node imports and is fully extensible. At this stage, some actions may exhibit imperfect behavior. For example, MoveTo can produce paths that overlap with the target object. These examples serve as a transitional reference, a more comprehensive and refined set of actions is planned.

Useful Behavior to Know#

  • If you run the same scenario again without changing the tracked input files, the extension can reuse the loaded workspace and prepared runtime.

  • If you change a tracked file such as a context file, node catalog, schema, or model config, the extension reloads the workspace and prepares the runtime again. Updating a token with Update Environment also makes the next run prepare the runtime again, so the new token reaches model requests.

  • You can repeat the same flow with Warehouse Scene to test a multi-actor scenario.