Episodes Preview hessian Visualizer
100 episodes · 60 fps

long_cable_insertion_2 (TsFile)

Apache TsFile version of DistantSky/long_cable_insertion_2.

Overview

A LeRobot v2.1 manipulation dataset recorded with a hessian robot arm, converted to a single Apache TsFile table.

  • Scale: 100 episodes / 56,261 frames at 60 fps (~16 min of robot time) / 1 task(s).

    • (meta/info.json declares 10,491 frames; the frame Parquet files hold 56,261 rows, which is what was converted.)
  • Per-frame vectors: observation_state_0..observation_state_13 (14), observation_velocity_0..observation_velocity_13 (14), action_0..action_13 (14), metadata_partial_subgoal_completed_order_0..metadata_partial_subgoal_completed_order_1 (2), metadata_partial_subgoal_full_order_0..metadata_partial_subgoal_full_order_2 (3), metadata_partial_subgoal_remaining_order_0..metadata_partial_subgoal_remaining_order_2 (3), metadata_subgoal_order_0..metadata_subgoal_order_2 (3), metadata_subgoal_switch_timestamps_0..metadata_subgoal_switch_timestamps_2 (3) — each value is a single-precision FLOAT column.

  • Task language: insert the cable into the holders

  • Tables: 1 TsFile table(s), 56,261 rows in total.

    • long_cable_insertion_2: 56,261 rows, Time restarts inside every episode.

Schema (TsFile structure)

long_cable_insertion_2.tsfile

  • Time (INT64, milliseconds) 鈥?round(timestamp 脳 1000); the source timestamp column is folded into Time.
  • TAG: episode_index, task_index 鈥?device dimension; query one device with WHERE episode_index=....
  • FIELD (97): frame_index (int64), sample_index (int64), source_action_time_s (float), metadata_compress (int64), metadata_current_subgoal (double), metadata_double_arm (int64), metadata_has_raw_actions (int64), metadata_landmark_mode_enabled (int64), metadata_num_landmarks (int64), metadata_openpi_prompt (string), metadata_robot_type (string), metadata_sim (int64), metadata_single_arm (int64), metadata_subgoal_selection_key (string), metadata_task_name (string), prompt (string), metadata_failure (bool), metadata_subgoal_switch (bool), metadata_error_recovery (bool), metadata_error_recovery_probability (float), metadata_error_recovery_probability_present (bool), metadata_failure_count (double), metadata_failure_key (string), metadata_left_interface (string), metadata_partial_subgoal_completed_count (double), metadata_partial_subgoal_completed_order_length (double), metadata_partial_subgoal_completed_order_string (string), metadata_partial_subgoal_full_order_length (double), metadata_partial_subgoal_mode_enabled (bool), metadata_partial_subgoal_remaining_order_length (double), metadata_partial_subgoal_remaining_order_string (string), metadata_partial_subgoal_start_key (string), metadata_partial_subgoal_start_timestamp (float), metadata_recording_stop_event_timestamp (float), metadata_recording_stop_key (string), metadata_right_interface (string), metadata_subgoal_order_length (double), metadata_subgoal_order_string (string), metadata_subgoal_switch_count (double), metadata_subgoal_switch_key (string), metadata_subgoal_switch_timestamps_length (double), observation_state_0 (float), observation_state_1 (float), observation_state_2 (float), observation_state_3 (float), observation_state_4 (float), observation_state_5 (float), observation_state_6 (float), observation_state_7 (float), observation_state_8 (float), observation_state_9 (float), observation_state_10 (float), observation_state_11 (float), observation_state_12 (float), observation_state_13 (float), observation_velocity_0 (float), observation_velocity_1 (float), observation_velocity_2 (float), observation_velocity_3 (float), observation_velocity_4 (float), observation_velocity_5 (float), observation_velocity_6 (float), observation_velocity_7 (float), observation_velocity_8 (float), observation_velocity_9 (float), observation_velocity_10 (float), observation_velocity_11 (float), observation_velocity_12 (float), observation_velocity_13 (float), action_0 (float), action_1 (float), action_2 (float), action_3 (float), action_4 (float), action_5 (float), action_6 (float), action_7 (float), action_8 (float), action_9 (float), action_10 (float), action_11 (float), action_12 (float), action_13 (float), metadata_partial_subgoal_completed_order_0 (float), metadata_partial_subgoal_completed_order_1 (float), metadata_partial_subgoal_full_order_0 (float), metadata_partial_subgoal_full_order_1 (float), metadata_partial_subgoal_full_order_2 (float), metadata_partial_subgoal_remaining_order_0 (float), metadata_partial_subgoal_remaining_order_1 (float), metadata_partial_subgoal_remaining_order_2 (float), metadata_subgoal_order_0 (float), metadata_subgoal_order_1 (float), metadata_subgoal_order_2 (float), metadata_subgoal_switch_timestamps_0 (float), metadata_subgoal_switch_timestamps_1 (float), metadata_subgoal_switch_timestamps_2 (float)

Conversion notes

  • LeRobot v2.1 robot dataset converted with the project's generic lerobot converter: all episodes of the source train split share one TsFile, with the source columns episode_index and task_index as TAG columns (the TsFile device dimension). Query a single episode with WHERE episode_index=0.
  • Vector columns preserve the full source column name when flattened: . becomes _ and the element index is appended, so observation.state becomes observation_state_0..N-1 and action becomes action_0..N-1, all single-precision FLOAT. frame_index is kept and the source index column is kept as sample_index.
  • Time = round(timestamp * 1000) ms and restarts inside each episode. The source timestamp column is not stored separately because it equals Time / 1000 seconds.
  • Camera video streams are NOT included in this repository; see the original dataset for them: https://huggingface.co/datasets/DistantSky/long_cable_insertion_2/tree/main/videos
  • meta/ is mirrored from the source with meta/info.json updated to describe the converted TsFile artifact. No numeric time-series row is dropped.
  • The source additionally ships raw_episodes/*.npz (246 raw NumPy archives). They are the recorder's raw dumps, are not part of the LeRobot frame table and are not included here; every converted row comes from data/chunk-*/**.parquet.

Usage

Read this dataset with the Java SDK. It is written with the zstd compressor. The Apache TsFile Java SDK reads every compressor, but the Python SDK (pip install tsfile) implements only UNCOMPRESSED, SNAPPY, GZIP and LZ4; opening this file with it yields no rows.

Read a converted file with the Apache TsFile Java SDK (org.apache.tsfile:tsfile):

import org.apache.tsfile.file.metadata.IDeviceID;
import org.apache.tsfile.read.TsFileReader;
import org.apache.tsfile.read.TsFileSequenceReader;
import org.apache.tsfile.read.common.Path;
import org.apache.tsfile.read.expression.QueryExpression;
import org.apache.tsfile.read.query.dataset.QueryDataSet;
import org.apache.tsfile.write.schema.MeasurementSchema;

import java.util.ArrayList;
import java.util.List;

String path = "data/long_cable_insertion_2.tsfile";
try (TsFileSequenceReader sequenceReader = new TsFileSequenceReader(path);
     TsFileReader reader = new TsFileReader(sequenceReader)) {
    // Devices are enumerated as IDeviceID objects. Tables with TAG columns
    // have multi-segment device ids that cannot be rebuilt from their string
    // form, so always use getAllDevices() rather than getAllDeviceIds().
    for (IDeviceID device : sequenceReader.getAllDevices()) {
        List<Path> paths = new ArrayList<>();
        for (MeasurementSchema schema : reader.getMeasurement(device)) {
            String name = schema.getMeasurementName();
            if (name != null && !name.isEmpty() && !name.equalsIgnoreCase("Time")) {
                paths.add(new Path(device, name, true));
            }
        }
        QueryDataSet dataSet = reader.query(QueryExpression.create(paths, null));
        while (dataSet.hasNext()) {
            System.out.println(dataSet.next());
        }
    }
}

Source & license

Downloads last month
83