Skip to main content
This guide demonstrates how to add support for your own robot embodiment in GR00T. The modality configuration defines how your robot’s data should be loaded, processed, and interpreted by the model.

Overview

Each embodiment requires a Python configuration file that specifies:
  • Which observations to use (video cameras, proprioceptive states)
  • How to sample data temporally (current frame, historical frames, future action horizons)
  • How actions should be interpreted and transformed
  • Which language annotations to use

Configuration structure

A modality configuration is a Python dictionary containing four top-level keys: "video", "state", "action", and "language". Each key maps to a ModalityConfig object. Here’s the SO-100 example from examples/SO100/so100_config.py:

Understanding ModalityConfig

Each ModalityConfig specifies two required fields and several optional ones.

Required fields

delta_indices (list[int])

Defines which temporal offsets to sample relative to the current timestep. This enables:
  • Historical context: Use negative indices (e.g., [-2, -1, 0]) to include past observations
  • Current observation: Use [0] for the current timestep
  • Future actions: Use positive indices (e.g., list(range(0, 16))) for action prediction horizons
Examples:
If you modify delta_indices for the action modality (e.g., changing the action horizon from 16 to 8), you must regenerate the dataset statistics by re-running:
The normalization statistics are computed based on the original delta_indices length, and a mismatch will cause errors during training.

modality_keys (list[str])

Specifies which keys to load from your dataset. These keys must match the keys defined in your meta/modality.json file. For the SO-100 example:
  • Video keys: Must match keys in meta/modality.json under "video" (e.g., "front", "wrist")
  • State keys: Must match keys in meta/modality.json under "state" (e.g., "single_arm", "gripper")
  • Action keys: Must match keys in meta/modality.json under "action" (e.g., "single_arm", "gripper")
  • Language keys: Must match keys in meta/modality.json under "annotation" (e.g., "annotation.human.action.task_description")

Optional fields

sin_cos_embedding_keys (list[str] | None)

Specifies which state keys should use sine/cosine encoding. Best for dimensions that are in radians (e.g., joint angles). If not specified, min-max normalization is used.
Sine/cosine embedding will duplicate the number of dimensions by 2, and is only recommended for proprioceptive states.

mean_std_embedding_keys (list[str] | None)

Specifies which keys should use mean/standard deviation normalization instead of min-max normalization.

action_configs (list[ActionConfig] | None)

Required for the "action" modality. Defines how each action modality should be interpreted and transformed. The list must have the same length as modality_keys.

Configuring each modality

Video modality

Defines which camera views to use:
For multiple cameras:

State modality

Defines proprioceptive observations (joint positions, gripper states, etc.):

Action modality

Defines the action space and prediction horizon:

Language modality

Defines which language annotations to use:

Understanding ActionConfig

Each ActionConfig has three required fields and one optional field.

rep (ActionRepresentation)

Defines how actions should be interpreted:
  • RELATIVE: Actions are deltas from the current state (introduced in the UMI paper)
  • ABSOLUTE: Actions are target positions
Using relative actions will lead to smoother actions, but might suffer from drifting. If you want to use relative actions, make sure the state and action stored in the dataset are absolute, and the absolute to relative conversion will be handled in the processor.

type (ActionType)

Specifies the control space:
  • EEF: End-effector/Cartesian space control (expecting a 9-dimensional vector: x, y, z positions + rotation 6D)
  • NON_EEF: Joint space control and other non-EEF control spaces (joint angles, positions, gripper positions, etc.)

format (ActionFormat)

Defines the action representation format:
  • DEFAULT: Standard format (e.g., joint angles, gripper positions)
  • XYZ_ROT6D: 3D position + 6D rotation representation for end-effector control
  • XYZ_ROTVEC: 3D position + rotation vector for end-effector control

state_key (str | None)

Optional. Specifies the corresponding reference state key for computing relative actions when rep=RELATIVE. If not provided, the system will use the action key as the reference state key. Example with state_key:

Complete example: SO-100

Here’s the complete SO-100 configuration:
examples/SO100/so100_config.py

Key relationships with meta/modality.json

The modality configuration’s modality_keys must reference keys that exist in your dataset’s meta/modality.json. Example meta/modality.json:
The system will:
  1. Use modality_keys to look up the corresponding entries in meta/modality.json
  2. Extract the correct slices from the concatenated state/action arrays
  3. Apply the specified transformations (normalization, action representation conversion)

Registering your configuration

After defining your configuration, register it so it’s available to the training and inference pipelines:
Save your configuration to a Python file and pass the path to the --modality-config-path argument when running the fine-tuning script.