Packages

rosetta is the core. Three kinds of package build on it. A robot interface turns a robot’s middleware into frames. A dataset backend writes frames as training data, or reads training data back as frames. A policy runner turns frames into actions on a live robot. Robot interfaces are named rosetta_<middleware>, as in rosetta_ros. Dataset backends and policy runners are named after the tool they adapt, as in lerobot_dataset_rosetta, rerun_rosetta and lerobot_rosetta.

The rosetta repository holds the core and every package maintained with it, grouped by role:

rosetta/                     core
robots/<middleware>/         robot interfaces and the apps built on them
data/<format>/               dataset writers and readers
policies/<framework>/        policy runners and framework plugins

Core’s seam modules use the same names: rosetta.robots, rosetta.data and rosetta.policies. About the contract explains the split.

rosetta_interfaces holds ROS 2 message definitions. It is not a robot interface in this sense.

Packages in this repository

All nine are at version 0.2.0.

Package

Path

Build type

Contains

rosetta

rosetta/

ament_python

The contract loader, the frame pipeline, and the protocols and registries for robot interfaces, dataset writers and policy runners. Imports no ROS.

rosetta_ros

robots/ros/rosetta_ros/

ament_python

The ROS 2 robot interface, registered as ros2: message codecs, TopicBridge, the node toolkit, the executables episode_recorder_node, episode_keyboard_node, policy_runner_node and rosetta_port, and the contracts/, params/ and launch/ files.

rosetta_interfaces

robots/ros/rosetta_interfaces/

ament_cmake

The actions RecordEpisode, RunPolicy and ManageEpisode, the services StartRecording, StartPolicy and StartHILEpisode, and the six ~/status and ~/result messages.

rosetta_ros_hil

robots/ros/rosetta_ros_hil/

ament_python

The human-in-the-loop manager, hil_manager_node, built on the recorder, the policy runner and the node toolkit.

lerobot_dataset_rosetta

data/lerobot/lerobot_dataset_rosetta/

ament_python

The LeRobot dataset writer, registered as lerobot. It copies the contract into each dataset as meta/rosetta_contract.yaml. Also LeRobotView, any frame reader as a LeRobot training dataset, and the console script rosetta-lerobot-train.

lerobot_rosetta

policies/lerobot/lerobot_rosetta/

ament_python

The LeRobot policy runner, registered as lerobot. Also installs rosetta_policy_server and rosetta_classifier_server as plain console scripts, not ros2 run executables.

lerobot_robot_rosetta

policies/lerobot/lerobot_robot_rosetta/

ament_python

A LeRobot Robot plugin, --robot.type=rosetta in LeRobot’s own command-line tools.

lerobot_teleoperator_rosetta

policies/lerobot/lerobot_teleoperator_rosetta/

ament_python

A LeRobot Teleoperator plugin, --teleop.type=rosetta_teleop. Experimental.

rerun_rosetta

data/rerun/rerun_rosetta/

ament_python

The frame reader rerun: contract frames from .rrd bags on a Rerun catalog server, through Rerun’s dataloader. It reads the recording layout each robot interface registers under rerun_rosetta.layouts. Experimental.

The two LeRobot plugin packages are named for LeRobot’s plugin discovery, which imports installed packages whose names start with lerobot_robot_ or lerobot_teleoperator_.

On ROS 2, install rosetta_ros. It brings rosetta and rosetta_interfaces with it.

Packages outside this repository

A writer, runner or robot interface can live in its own repository and register the same entry points. Nothing in Rosetta changes. Add a dataset writer, Add a policy runner and Add a robot interface cover each.

Entry-point groups

Group

Value registered

Read by

Registered in this repository

rosetta.robot_interfaces

A class implementing RobotInterface, named after a contract’s robot_interface value. Contract load needs only its ContractInterface part.

Contract load, and load_robot_interface for a live robot

ros2 by rosetta_ros

rosetta.codecs

A module that calls register_decoder and register_encoder

Contract load

None

rosetta.operators

A module that calls register_operator

Contract load

None

rosetta.dataset_writers

A class implementing DatasetWriter

rosetta_port --format

lerobot by lerobot_dataset_rosetta

rosetta.frame_readers

A class implementing FrameReader, built with keyword options

rosetta-lerobot-train --rosetta.reader

rerun by rerun_rosetta

rosetta.policy_runners

A class implementing PolicyRunner

policy_runner_node parameter framework

lerobot by lerobot_rosetta

rerun_rosetta.layouts

A class implementing RecordingLayout, named after a contract’s robot_interface value

rerun_rosetta.contract_dataset, the rerun frame reader

ros2 by rosetta_ros

Each class is instantiated with no arguments, except a frame reader, which takes keyword options. A codec plugin that fails to import fails every contract load in that environment. An operator plugin that fails to import fails every contract with an apply step. A robot interface that fails to register its codecs fails only the contracts that name it.

Dependencies

rosetta needs Python 3.12 or newer, numpy and pyyaml. It imports no ROS and no learning framework. rosetta_ros and rosetta_ros_hil depend on ROS 2 packages that rosdep resolves, including rosbag2_storage_mcap.

All interfaces share one codec registry keyed by type string. Two robot interfaces that register the same type string conflict, and the one later in name order fails to load.

lerobot_dataset_rosetta needs lerobot[training]<0.6.2, torch and rosetta. lerobot_rosetta needs lerobot<0.6.2, torch, grpcio, lerobot_dataset_rosetta and lerobot_robot_rosetta. LeRobot 0.6.2 removes async_inference, which the LeRobot policy runner uses. lerobot_robot_rosetta and lerobot_teleoperator_rosetta need lerobot<0.6.2 and rosetta. None of the LeRobot packages imports ROS, but driving a ros2 contract needs rosetta_ros installed. rosdep has no key for LeRobot, so install it with pip. For the same reason the LeRobot packages are not released to the ROS buildfarm.

rerun_rosetta needs rosetta, torch and rerun-sdk[dataloader,catalog]>=0.41, which rosdep has no key for either. It reads bags recorded with rosbag2_storage_rrd, not part of this repository.

The repository’s pixi environment installs LeRobot 0.6.1 from PyPI with the dataset, async, training, peft and smolvla extras, and rerun-sdk[dataloader,catalog]>=0.41.