Feature Request: Add TLabel format as a supported conversion target
Context
Forge is a great toolkit for converting between robotics dataset formats (RLDS, LeRobot, etc.). As tactile sensing becomes increasingly important in robot learning, there's a growing need for format conversion that includes tactile data.
Proposal
Add TLabel as a supported format for tactile sensor data. TLabel provides:
- Unified schema for tactile data across 10+ sensor types (GelSight, PaXini, Daimon, UniVTAC, VTouch, YCB-Slide, TacQuad, etc.)
- Dataset adapters for loading existing tactile datasets into standardized format
- Real-time sensor adapters for live data capture (PaXini GEN3 SDK, Daimon DM-Tac USB)
- PyPI package:
pip install tlabel(MIT license, 14K+ downloads)
Use case
A researcher has LeRobot dataset with visual + joint data, and wants to augment it with tactile data from GelSight sensors. Forge + TLabel could provide the bridge: convert LeRobot → TLabel (adding tactile channels) → back to LeRobot with enriched modalities.
This would make Forge the go-to tool for multi-modal robotics data format conversion, including the tactile modality.
Refs:
- https://github.com/liesliy/tlabel
- https://pypi.org/project/tlabel/
Nice idea, will follow up
Thanks for the positive signal @arpitg1304! Here are some technical details to make integration straightforward.
TLabel Data Model (Schema V2)
A .tlabel file is a single JSON with this top-level structure:
{
"schema_version": "0.17.0",
"sensor": {"name": "GelSight Mini", "type": "vision", "adapter": "gelsight_mini"},
"capabilities": {"contact": true, "force_vector": true, "slip": false, ...},
"episode": {"id": "ep001", "task": "pick_and_place", "num_frames": 120},
"frames": [
{
"frame_idx": 0,
"timestamp_s": 0.0,
"schema_v2": { // 14 semantic dimensions, values are floats or null
"contact": 1.0,
"force_magnitude": 2.3,
"force_centroid": [12.5, 8.3],
"contact_area": 45.2,
"pressure_mean": 0.8,
"shear_direction": [1.0, 0.0],
"shear_magnitude": 0.3,
"slip": 0.0,
"vibration_freq": 12.5,
"texture": 0.6,
"hardness": 0.9,
"temperature": 25.1,
"spatial_gradient": [0.1, 0.2],
"temporal_derivative": 0.05
},
"confidence": 0.95,
"manipulation_phase": "approach",
"is_first": true,
"is_last": false
}
]
}
Proposed Forge Integration
Based on Forge's plugin architecture (FormatReader/FormatWriter protocols + FormatRegistry), here's what a TLabel reader/writer would look like:
forge/formats/tlabel/
├── __init__.py
├── reader.py # TLabelReader: .tlabel JSON → Forge Episode
└── writer.py # TLabelWriter: Forge Episode → .tlabel JSON
Frame Mapping (TLabel ↔ Forge)
| TLabel | Forge Frame | Notes |
|---|---|---|
frame_idx |
frame.index |
Direct mapping |
timestamp_s |
frame.timestamp |
Direct mapping |
schema_v2 (14 dims) |
frame.extras["tlabel.schema_v2"] |
Tactile dims go to extras |
confidence |
frame.extras["tlabel.confidence"] |
Annotation quality |
manipulation_phase |
frame.extras["tlabel.phase"] |
Phase label |
is_first/is_last |
frame.is_first/frame.is_last |
Direct mapping |
Usage Example
# Convert: LeRobot dataset + TLabel tactile annotations → merged dataset
forge convert /data/lerobot_robot \
--tactile-annotations /data/tactile_labels/ \
--tactile-format tlabel \
-o /data/merged_dataset \
--output-format lerobot-v3
# Or inspect a TLabel dataset
forge inspect /data/tactile/ --format tlabel
Key Design Decisions
-
Tactile data lives in
Frame.extras— Forge's canonical fields (state/action/images) are for proprioception and manipulation. Tactile sensing is orthogonal, soextras["tlabel.*"]is the natural home. -
Schema V2 as typed dict — The 14 dimensions have different types (scalar, 2D vector, boolean). We can add a
tlabel_schema_v2key toDatasetInfo.observation_schemaso downstream tools know the structure. -
Bidirectional conversion — Reader loads
.tlabel→ Forge Episode; Writer serializes Forge Episode →.tlabel. This enables:Forge → LeRobot-v3 + TLabelorTLabel → Forge → HDF5.
Happy to Help
I can submit a PR implementing:
forge/formats/tlabel/reader.py(read .tlabel files)forge/formats/tlabel/writer.py(write .tlabel files)- Update
forge/formats/__init__.pyto register the format - Add tests with a minimal sample .tlabel file
The implementation would depend on tlabel package (pip install tlabel) for schema validation and adapter loading.
Let me know if this direction works for you, or if you'd prefer a different integration approach! 🦞