franka-demos
Franka Emika teleoperated demonstrations recorded as ROS 2 bags, with a synchronised HDF5 conversion.
RGB is stored decoded as image arrays (lzf-compressed) — ready to index without a JPEG decode step.
A smaller variant that keeps RGB as JPEG bytes lives at
fm-dev/franka-demos-compressed (~4x smaller).
Contents
raw/<task>/<operator>/<episode>/ # original ROS 2 bags (.db3.zstd) + metadata.yaml + task.txt
h5/<task>/<episode>.h5 # converted, time-synchronised HDF5
| Task | Episodes | Prompt |
|---|---|---|
button_order |
52 | press the buttons with the same order shown in the video |
pick3 |
60 | pick 3 times |
H5 layout
One group per synchronised sample, frame_000000 ... frame_NNNNNN, each containing:
- Cameras (
cam_base,cam_hand): colour image,aligned_depth_to_colorasuint16(720x1280), and the matchingcamera_info. - Franka state:
current_pose(position / orientation),measured_joint_states,desired_joint_states,external_joint_torques,external_wrench_in_base_frame,external_wrench_in_stiffness_frame,desired_end_effector_twist,last_desired_pose. - Commands:
_target_pose_position,_target_pose_orientation,_target_joint. - Gripper / teleop:
_franka_gripper_joint_states,_spacenav_joy_buttons. - Timing:
original_timestamps,camera_timestamps,other_timestamps, plus async_qualitygroup with the per-topic offset from the reference RGB stream, astale_topicslist and adepth_staleflag.
Frames are synchronised onto the cam_base colour stream at full rate (no decimation). Non-reference topics are matched within +-100 ms and otherwise best-effort filled from the nearest message (capped at 1 s) with the frame flagged stale, so a good RGB frame is never dropped because one stream skipped a beat. Sample 0 of each episode is dropped.
Converted with rosbag_to_h5_simple.py.
import h5py
with h5py.File("h5/pick3/pick3_20260826_205000_123.h5", "r") as f:
g = f["frame_000000"]
rgb = g["_cam_base_camera_color_image_raw_compressed"][:] # HxWx3 array
depth = g["_cam_base_camera_aligned_depth_to_color_image_raw_compressedDepth"][:]
- Downloads last month
- 108