axol migrate-dataset rewrites the Cartesian end-effector poses of a local
LeRobot dataset in place. It has two migrations. Pass one of these flags:
Both migrations:
- Update every data parquet file and recompute the dataset statistics.
- Record what they did in
meta/axol.json, so they can’t run twice. - Back up every file they replace under
meta/migrations/<migration-id>/. If a migration fails, those files are restored. A later run finishes recovering an interrupted migration before it retries.
URDF frame
--from-version. Since v0.1.32 the robot’s world frame has +x forward, +y left
and +z up, a 90° turn from the frame older Cartesian datasets use. The migration
applies that turn to the position and orientation of both end effectors in
action and observation.state.
--from-version. The
command rejects v0.1.32 and newer. Current Cartesian datasets record their pose
frame in meta/axol.json, and a dataset that has it is refused.
Mantis tracker-gripper rotation
--mantis-tcp-rotation. Mantis collection converts every tracker pose to a
gripper pose before recording it. In axol 0.2.4 and earlier, that conversion
used the wrong rotation (Rx(+90°) instead of Ry(180°)) for the Vive mount.
Recorded orientations are pitched about 90° off, and Axol can’t replay the
dataset: the arms barely move. This migration swaps in the correct rotation in
every recorded pose. Positions don’t change.
--swap-sides when the trackers were bound to the opposite rigs, so the
tracker tracker.identify labelled left was on the rig in the right hand.
In that case the dataset’s left_ee.* columns hold the right hand’s rig, and
every pose is turned 180°. --swap-sides swaps the left and right pose columns
and turns every pose 180° about the midpoint between the grippers at rest.
Gripper columns stay as recorded, because they follow the CAN channel, not the
tracker.
- The hand the operator moved in the video is the other side in the dataset.
- After the rotation fix alone, both engage orientations are about 180° from the rest pose.
robot_typemust beaxol_mantis; robot-recorded datasets never went through the tracker transform.meta/axol.jsonmust exist and be in the v0.1.32+ pose frame (run--from-versionfirst otherwise).meta/axol.jsonmust not already have amantis_tcp_transformrecord. Datasets recorded with 0.2.5 or later have one, as do migrated datasets, so they are refused. That includes datasets recorded with measured per-unit transforms ("id": "measured"). This migration only undoes the factory Vive rotation.
~/.almond/mantis/tcp_transform.json or with a Quest source. Those never used
the wrong rotation. Don’t run it on a dataset that mixes Mantis and robot
episodes either, since it changes every row.
After migration, meta/axol.json records mantis_tcp_transform.id as
vive-flat-back-ry180-v0.2.5, so the migration can’t run twice. That
transform’s offset differs from the current factory value (see
Tracker 3.0 factory value). collect-data --mantis refuses to add episodes to a migrated dataset, so record new
episodes to a new repo_id.
