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 |
|---|---|---|---|
|
|
The contract loader, the frame pipeline, and the protocols and registries for robot interfaces, dataset writers and policy runners. Imports no ROS. |
|
|
|
The ROS 2 robot interface, registered as |
|
|
|
The actions |
|
|
|
The human-in-the-loop manager, |
|
|
|
The LeRobot dataset writer, registered as |
|
|
|
The LeRobot policy runner, registered as |
|
|
|
A LeRobot |
|
|
|
A LeRobot |
|
|
|
The frame reader |
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 |
|---|---|---|---|
|
A class implementing |
Contract load, and |
|
|
A module that calls |
Contract load |
None |
|
A module that calls |
Contract load |
None |
|
A class implementing |
|
|
|
A class implementing |
|
|
|
A class implementing |
|
|
|
A class implementing |
|
|
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.