Data recording and replay utilities for Dexmate robots (MCAP + video)
Project description
dexdata
Data recording and replay utilities for Dexmate robots. Reads and writes MCAP episode data (robot state/action, RGB cameras, depth) with Protobuf serialization, and encodes cameras to video.
Install
pip install -e . # core: MCAP read/write
pip install -e ".[convert]" # adds torch + torchcodec for video_writer
Requires Python 3.11.
Layout
dexdata.mcap_utils—TeleopMcapWriter,TeleopMcapReader,Episode,EpisodeMetadata. Self-contained.dexdata.video_writer— torch + torchcodec-backed parallel/serial video encoder (opt-in via[video]extra).
Quick read
from pathlib import Path
from dexdata.mcap_utils import TeleopMcapReader
reader = TeleopMcapReader(Path("/path/to/episode_dir"))
episode = reader.load_episode()
data = episode.to_numpy_dict() # flat {key: np.ndarray} for training
fps = reader.metadata.record_rate_hz
An episode directory contains state_action.mcap, zero or more camera_*.mcap / depth_*.mcap, and info.json.
Scripts
scripts/example_mcap_read.py <episode_dir>— dump an episode to its numpy-dict form and print key shapes/dtypes.scripts/mcap_to_video.py --episode_path <dir>— render a 2×2 camera grid toconcatenated.mp4. FPS defaults torobot.record_rate_hzfrominfo.json.scripts/mcap_viz.py— Rerun-based episode visualization helper (RerunViz).
Protobuf schemas
Schemas live in src/dexdata/mcap_utils/proto/. Compiled *_pb2.py modules are checked in; regenerate with:
cd src/dexdata/mcap_utils/proto && ./compile_proto.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dexdata-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dexdata-0.1.0-py3-none-any.whl
- Upload date:
- Size: 113.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da4c716d181ea113678107a1d04fbcec6258b25026039473a1e98de02b5f6d8c
|
|
| MD5 |
3bc36a4891376d3c30d1407410bd3eb2
|
|
| BLAKE2b-256 |
788530b287e97af9e1d8fddc523ee93c59c0e8a5604541734beb4464ab437fa0
|
Provenance
The following attestation bundles were made for dexdata-0.1.0-py3-none-any.whl:
Publisher:
pypi.yml on dexmate-ai/dexdata
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dexdata-0.1.0-py3-none-any.whl -
Subject digest:
da4c716d181ea113678107a1d04fbcec6258b25026039473a1e98de02b5f6d8c - Sigstore transparency entry: 1663063529
- Sigstore integration time:
-
Permalink:
dexmate-ai/dexdata@0600472359bc01f73a0e496d7205a85fba5475a3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dexmate-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0600472359bc01f73a0e496d7205a85fba5475a3 -
Trigger Event:
push
-
Statement type: