CoolFace
Apppublic

connect-ai-lab-aimo/physical-ai-1

sourceHugging Faceupdated 29d agoView on Hugging Face
0likes
App README

๐Ÿฆพ LeRobot Physical AI Simulator (Static Space)

Hugging Face LeRobot & PyTorch Embodied Control Engine | Connect AI LAB Physical AI & T-Shape Alignment Demonstration Data Collection in Pure JavaScript


๐Ÿ“Œ Overview

This Space is a 100% client-side, browser-based T-Shape Object Alignment Teleoperation Simulator designed for Physical AI and Imitation Learning (ACT / Diffusion Policy / LeRobot) enthusiasts.

Manipulate the Gray Movable T using mouse drag and rotation controls to align it precisely with the Green Target T silhouette. As you perform teleoperation, your demonstration trajectory $(X, Y, \theta, \Delta X, \Delta Y, \Delta\theta, \text{Error}, \text{Reward})$ is recorded and can be exported directly as JSON and CSV datasets.


๐ŸŽฎ Controls

ActionFunctionDetails
Left Mouse DragMove T-Object $(X, Y)$Click and drag the gray T to move it across the canvas
Mouse WheelRotate T-Object ($\pm 5^\circ$)Scroll up/down to rotate
Right Mouse DragFree Angle RotationRight-click and drag in the desired direction
Blue Handle DragRotation KnobDrag the top blue knob to orient the T-block
`Q` / `E` (or `A` / `D`)Fine RotationRotate counter-clockwise / clockwise in 5ยฐ increments
`S` Key / ButtonStart / Stop RecordingRecord demonstration frames
`N` Key / ButtonNext EpisodeSave current buffer and randomize target pose
`R` Key / ButtonReset TargetRe-randomize target pose
`Space` Key / ButtonPause / ResumePause or resume simulation

๐Ÿ’พ Dataset Export & Local Storage

  • โ€”100% Client-Side Privacy: No demonstration data is uploaded to external servers.
  • โ€”IndexedDB Persistence: Recorded episodes are automatically cached in browser storage across page reloads.
  • โ€”Direct Downloads:
  • โ€”๐Ÿ“ฅ Episode JSON / ๐Ÿ“ฅ Episode CSV: Download the latest completed episode.
  • โ€”๐Ÿ“ฆ All Episodes (JSON) / ๐Ÿ“ฆ All Episodes (CSV): Export the entire multi-episode dataset in one file.

๐Ÿ“Š Recorded Trajectory Schema

Every step logs:

json
{
  "timestamp": 1787600980.08,
  "episode_id": 1,
  "step": 1,
  "object_x": 231.92,
  "object_y": 325.68,
  "object_rotation": 38.84,
  "previous_x": 231.92,
  "previous_y": 325.68,
  "previous_rotation": 38.84,
  "delta_x": 0.0,
  "delta_y": 0.0,
  "delta_rotation": 0.0,
  "target_x": 266.83,
  "target_y": 471.03,
  "target_rotation": 291.95,
  "position_error": 149.49,
  "rotation_error": 106.89,
  "goal_alignment": 52.2,
  "reward": 0.1323,
  "success": false,
  "mouse_action": "MOUSE_DRAG_MOVE"
}