rerun::external::re_data_loader::loader_lerobot

Function load_episode

Source
pub fn load_episode(
    dataset: &LeRobotDataset,
    episode: EpisodeIndex,
) -> Result<Vec<Chunk>, DataLoaderError>
Expand description

Loads a single episode from a LeRobot dataset and converts it into a collection of Rerun chunks.

This function processes an episode from the dataset by extracting the relevant data columns and converting them into appropriate Rerun data structures. It handles different types of data (videos, images, scalar values, etc.) based on their data type specifications in the dataset metadata.