Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+21
- chess-sim/code/pyproject.tomlAdded+17
- chess-sim/code/sim/README.mdAdded+165
- chess-sim/code/sim/assets/chess/LICENSEAdded+21
- chess-sim/code/sim/assets/chess/README.mdAdded+64
- chess-sim/code/sim/assets/chess/bishop.stlAdded+3
- chess-sim/code/sim/assets/chess/collision/bishop_00.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_01.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_02.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_03.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_04.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_05.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_06.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_07.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_08.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_09.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_10.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_11.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_12.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_13.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_14.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_15.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_16.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_17.stlAdded
- chess-sim/code/sim/assets/chess/collision/bishop_18.stlAdded
- chess-sim/code/sim/assets/chess/collision/king_00.stlAdded
- chess-sim/code/sim/assets/chess/collision/king_01.stlAdded
- chess-sim/code/sim/assets/chess/collision/king_02.stlAdded
- chess-sim/code/sim/assets/chess/collision/king_03.stlAdded
- chess-sim/code/sim/assets/chess/collision/king_04.stlAdded
- chess-sim/code/sim/assets/chess/collision/king_05.stlAdded
- chess-sim/code/sim/assets/chess/collision/king_07.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_00.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_03.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_05.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_08.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_23.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_24.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_25.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_26.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_33.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_34.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_35.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_36.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_37.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_38.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_39.stlAdded
- chess-sim/code/sim/assets/chess/collision/knight_40.stlAdded
- chess-sim/code/sim/assets/chess/collision/pawn_01.stlAdded
- chess-sim/code/sim/assets/chess/collision/pawn_02.stlAdded
61 unmodified lines62636461 unmodified lineschess-sim/code/sim/assets/so101/collision/wrist_roll_pitch_so101_v2_02.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/wrist_camera_so101_v1_03.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/wrist_camera_so101_v1_01.stl filter=lfs diff=lfs merge=lfs -text61 unmodified lines62636465666768697071727374757677787980818283848561 unmodified lineschess-sim/code/sim/assets/so101/collision/wrist_roll_pitch_so101_v2_02.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/wrist_camera_so101_v1_03.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/wrist_camera_so101_v1_01.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/wrist_roll_follower_so101_v1_01.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/wrist_roll_follower_so101_v1_45.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/wrist_roll_pitch_so101_v2.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/moving_jaw_so101_v1_34.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/rotation_pitch_so101_v1_05.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/moving_jaw_so101_v1_01.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/motor_holder_so101_base_v1_00.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/motor_holder_so101_wrist_v1_06.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/wrist_roll_follower_so101_v1.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/motor_holder_so101_wrist_v1_07.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/upper_arm_so101_v1_07.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/upper_arm_so101_v1_02.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/collision/under_arm_so101_v1_04.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/chess/bishop.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/chess/king.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/chess/pawn.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/chess/queen.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/chess/knight.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/chess/rook.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/chess/source/Pawn.stl filter=lfs diff=lfs merge=lfs -textchess-sim/code/sim/assets/so101/motor_holder_so101_wrist_v1.stl filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617[project]name = "play-machanize"version = "0.0.1"description = "SO-101 arm that plays board games; MuJoCo sim, SmolVLA policy, VLM brain"requires-python = ">=3.11"dependencies = [ "mujoco>=3.2", "chess", "numpy", "pillow", "imageio",]
[project.optional-dependencies]assets = ["trimesh==5.1.0", "scipy==1.17.1", "coacd==1.0.14"]# Phase 2: expert episodes, LeRobot dataset export, review videodataset = ["lerobot==0.4.4", "chess==1.11.2"]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165# Simulation
MuJoCo scene for the SO-101 arm playing chess (Phase 1), and the scripted expert,grasp validation, domain randomisation and LeRobot dataset export built on it(Phase 2). No policy is trained here; that is Phase 3.
## Files
| File | Purpose ||---|---|| `make_scene.py` | Generates `chess_scene.xml` and the patched arm file. Board/robot layout parameters live at the top. || `scene_environment.py` | Finite worktable, room, robot enclosure, cables, camera stand, materials and trim. || `chess_scene.xml` | Generated. Do not edit by hand. || `render_scene.py` | Renders every camera to `renders/*.png`. || `check_reach.py` | Solves IK to every square and the bin using `--piece` grasp height. Kinematic reach only. || `prepare_chess_assets.py` | Rebuilds metre-scale visual/collision assets from vendored source STLs. Optional asset dependencies required. || `validate_scene.py` | Checks mesh scale, source hashes, collision fit at grasp sites, labels, and five seconds of stable settling. || `assets/chess/` | Detailed Staunton models, collision hulls, dimension/inertia manifest, and MIT attribution. See its README for calibration limits. || `assets/so101/so101_camera_upstream.xml` | Official SO-101 MJCF from TheRobotStudio/SO-ARM100, untouched except `meshdir`. || `assets/so101/so101.xml` | Generated patch: base raised onto the deck, `wrist` camera added, printed-part material finish adjusted. Meshes and mechanics retained. || `assets/environment/` | Vendored CC0 wood color maps and source attribution. || `prepare_gripper_assets.py` | Rebuilds the finger contact hulls in `assets/so101/collision/` (optional asset dependencies). || `prepare_arm_collision.py` | Rebuilds the convex-decomposition contact hulls of the bulky arm links in `assets/so101/collision/` (optional asset dependencies). || **Phase 2** | || `phase2_config.toml` | Every Phase 2 setting and randomisation range, in one file. || `kinematics.py` | IK: pinch point position, jaw yaw on the table, optional outward (or, negative, inward) tilt. || `grasp_geometry.py` | Exact jaw and piece profiles from the contact meshes; plans where the jaws close. || `chess_world.py` | Board, squares, tray and piece placement helpers. || `piece_sets.py` | Chess-set variants (size, height, proportions) compiled with MjSpec. || `randomize.py` | Per-episode randomisation: board pose, looks, lights, cameras, masses, friction. || `expert.py` | Scripted expert with collision-checked planning in a copy of the model. || `overlay.py` | Red source / blue destination squares drawn on camera images (sim and real). || `episode.py` | One episode: chess position, set-up, execution, success judgement. || `lerobot_export.py` | LeRobot v3.0 features and recorder. || `validate_expert.py` | Grasp validation over every piece on every square; writes `reports/`. || `generate_dataset.py` | Parallel dataset generation into LeRobot shards, merged at the end. || `review_video.py` | Side-by-side video of random dataset episodes, read back through LeRobot. || `reports/grasp_validation.md` | Latest validation report (and `.json` with every trial). |
## Scene layout (metres, arm base at origin, +x toward the human, +z up)
- Table: 120 x 80 x 4 cm wooden worktop on steel legs, centred at x=0.18. The top contact surface remains z=0; the room floor is z=-0.74. Pieces can now fall off the finite table.- Rover deck: 20.8 x 18 x 6 cm fixed enclosure (x from -0.110 to 0.098) with an aluminum top plate, rubber feet, screws and ventilation details. Arm base sits at z=0.06. The front stops at the board's near edge: at 0.11 the board border ran under the deck and diagonal grasps on rank 8 put a finger over it. **The real rover body must not reach further forward than 9.8 cm from the arm axis below finger height.**- Board: 20 cm playing area (8 x 2.5 cm squares) plus 1.2 cm border, centred at x = 0.21. Check per-piece reach with `check_reach.py`; this does not test approach collisions or grasp success.- Robot plays black. Rank 8 is nearest the robot, file a on the robot's right (-y).- Capture bin: 9 x 7 cm tray at (0.20, -0.18), with a visual felt liner and rounded rim. At the Phase 1 spot (0.13, -0.20) the forearm hit the rover camera stalk on 8 of 9 drop points.- Rest pose (`home` keyframe and episode start/end): (0, -1.2, 0.95, 1.45, 0). The earlier pose put the gripper servo's contact hull inside the shoulder's.- Physics timestep 1/600 s: exactly 20 steps per 30 fps frame. Piece contacts are stiff (solref 0.005, solimp 0.97/0.995) so the servo's full squeeze does not sink the jaws 2-3 mm into a piece.- Fingers: each finger's single convex hull filled the gap between the jaws, so nothing could be pinched. `prepare_gripper_assets.py` replaces them with slab hulls that follow the real fingers within 0.01 mm; `validate_scene.py` checks this and that nothing else in the arm differs from upstream.- Arm links: the single hulls of eight links were 1.7-4.3x the real part (wrist camera mount 4.3x, wrist motor holder 3.8x), so the folded arm "hit" itself in empty space. `prepare_arm_collision.py` replaces each with 12 CoACD convex pieces (now 1.05-1.7x, 96 hulls in all); `validate_scene.py` checks they contain every vertex of the real part, so they can be larger than the arm but never smaller. The STS3215 servos (1.1x) keep their single hull.- Pieces: 32 free bodies named `w_pawn_e`, `b_king_e`, etc. Each has a `*_grasp` site at a narrow cross-section of its actual mesh. Heights range from 25.36 mm (pawn) to 46 mm (king), preserving the source proportions.- Sites `sq_a1` … `sq_h8` on the board body give square centres; `board_center`, `bin_drop`.
## Cameras
| Name | Where | Role ||---|---|---|| `rover` | Camera stalk attached to the box's front-right corner; lens at (0.105, -0.14, 0.18), 90° vertical FOV, aimed at the board. | Rover-mounted board view; no external stand needed || `overhead` | Camera at (0.42, 0, 0.56), aimed at board centre; 40° vertical FOV. Supported by a table-mounted boom from (-0.16, 0.23). | Policy input 1, board reading between moves; all 64 square centres clear at home || `wrist` | On the official wrist camera mount, jaws at image bottom | Policy input 2, final approach || `side`, `human` | Fixed world cameras | Viewing only || `board_detail` | Closer fixed view of the board | Mesh inspection only || `scene` | Wide view including the table and camera rig | Scene inspection only |
Use `rover` + `wrist` for the rover camera pair. The `overhead` camera remainsavailable for stationary v1 setups. The new camera mount is a child of `rover_deck`,so it moves with that platform; this scene still models a fixed platform, not roverlocomotion. Its stalk rises from the enclosure and offsets the lens 5 cm outboardof the platform's right edge to avoid the parked arm. The housing and stalk havecollision geometry. The whole board and clearance for the pieces fit in frame;pieces may occlude one another, and the moving arm can temporarily block the view.`ROVER_CAMERA_POS` and `ROVER_CAMERA_FOV` are in `scene_environment.py`.The view is written to `renders/rover.png`, with its pose in `renders/cameras.json`.
The overhead camera has **new extrinsics and FOV**, replacing the view that waspartly blocked by the arm. The wrist camera mounting transform is unchanged.`render_scene.py` saves the actual camera poses, image dimensions and vertical FOVto `renders/cameras.json`, using +x right, +y up, -z forward camera axes. The wristpose in that file is a snapshot after settling; it moves with the arm. Mirror theoverhead placement on the physical setup or replace it with measured calibration.
## Run
```uv venv --python 3.11 .venv && uv pip install --python .venv/bin/python -e ..venv/bin/python sim/make_scene.py # regenerate chess_scene.xml.venv/bin/python sim/validate_scene.py # asset and settling checks.venv/bin/python sim/check_reach.py --piece pawn # IK at pawn grasp height (also rook/knight/bishop/queen/king).venv/bin/python sim/render_scene.py # stills to sim/renders/.venv/bin/python -m mujoco.viewer --mjcf sim/chess_scene.xml # interactive 3D viewer```
Viewer note for macOS: launch the interactive viewer with plain `python`, not `mjpython`.On this machine `mjpython -m mujoco.viewer` dies with `RuntimeError: Caught an unknown exception!`inside `_Simulate` (seen with MuJoCo 3.2.7, 3.3.7 and 3.13.0 on macOS 26). `mjpython` is onlyneeded for `mujoco.viewer.launch_passive`, and offscreen rendering does not work under `mjpython`.In the viewer, the `home` keyframe folds the arm and places all pieces.After regenerating the scene, close and reopen any existing viewer to load the new assets.Rendering also writes `all_views.png`, `board_detail.png`, `scene.png`, `piece_lineup.png`,and `cameras.json`. These are direct MuJoCo renders without image enhancement.The contact hulls use geom group 3; leave that group disabled in training cameras.
The scene uses matte surfaces and explicit ambient/key/fill lights. Infinitemirror reflections were removed. Small hardware/cable/liner details are visualapproximations and do not introduce flexible-cable or felt contact physics.The classic MuJoCo renderer uses Phong shading and hard shadow maps; this is amore detailed training environment, not a scanned replica of a measured room.
## Phase 2: expert, validation, dataset
```uv pip install --python .venv/bin/python -e '.[dataset]' # lerobot 0.4.4, python-chess.venv/bin/python sim/validate_expert.py --workers 14 # ~25 min on the 4090 pod (14 CPU), writes sim/reports/.venv/bin/python sim/generate_dataset.py --episodes 100 --overwrite # pilot, into data/so101_chess_sim.venv/bin/python sim/review_video.py --episodes 10 # data/so101_chess_sim/review_10_episodes.mp4.venv/bin/python sim/push_dataset.py --repo-id Machanize/playful --name pilot_60 # into chess-sim/ of the repo```
Heavy runs go on a Runpod GPU pod (RTX 4090): set `MUJOCO_GL=egl` for headless GPUrendering and pass `--workers` to match the pod's CPU quota.
**Primitive.** One episode moves one piece: rest, above source, descend, close, lift,carry, above destination, descend, open, retreat, rest. A capture is two episodes,the first into the tray. Joint targets at 30 Hz with minimum-jerk timing.
**Grasp.** Gripper straight down. The fingers form a V opening upward, so with thetips just below a piece's head the jaws close on the head, as a person pinches it:pawn head, rook turret, bishop mitre, queen and king upper-body collar, knight headfrom the sides. If the squeeze slips, the head rests on the tips. Heights arefractions of piece height (`[grasp] tip_fraction`), so they follow every piece set.
**Jaw direction.** Along a board diagonal where the fingers have most room, elsealong a rank or file (needed on rank 8 beside the deck); knights across the head.
**Planning.** Every trajectory is checked frame by frame in a copy of the model withclearances: 2 mm arm to pieces and 4 mm carried piece to pieces while movingsideways, 1-1.5 mm during slow vertical moves, 1.5 mm to fixed obstacles, 0.5 mm armto arm. The carry follows the height each point of the path needs. Over the farranks, where straight-down reach runs out, the fingertips lean outward by the leasttilt that clears (up to 20 degrees); grasps and releases stay straight down (except thenear-base fallbacks below). After thegrasp and again after the lift, the expert reads where the piece actually sits in thehand and plans from that.
**Near the arm base.** Ranks 7-8 are 8.5-14 cm from the pan axis, where the folded armcan bring the wrist camera or the jaw into the shoulder for real, not only throughbulky hulls. When every normal option fails, the expert tries, in order: jaw yaws22.5 degrees off the diagonals and axes; a carry that leans the fingertips 10 or 20degrees inward (toward the base) where it passes within 13-17 cm of the pan axis; anda grasp leaning 10 or 20 degrees inward. A piece grasped at a lean hangs at that lean,so it is set down with the wrist roll and lean that stand it upright again (only twoyaws per destination can do that). Moves that succeed without these are unchanged.
**Episodes.** Random legal positions (0-70 random plies), a legal move of the side tomove or (15%) any piece to any empty square, captures as tray moves half the time,captured pieces lying in the tray. Pieces up to 3 mm off-centre, randomly turned,knights facing the opponent within 25 degrees. Everything else in `phase2_config.toml`.
**Recording.** Each episode is simulated without cameras first; only successes arereplayed from the same seed with rendering, which MuJoCo reproduces exactly. Frames:`observation.images.{overhead,rover,wrist}` 640x480 with the red and blue squares,`observation.state` and `action` in LeRobot SO-101 units (arm joints in degrees as with`use_degrees=True`, gripper 0-100 over its range), and the instruction"move the piece on the red square to the blue square". `phase2_episodes.jsonl` next tothe dataset records each episode's move, piece set and randomisation.123456789101112131415161718192021The MIT License (MIT)
Copyright (c) 2014 clarkerubber
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364# Staunton chess assets
Source: [clarkerubber/Staunton-Pieces](https://github.com/clarkerubber/Staunton-Pieces),`Source/Staunton/{Piece}/{Piece}.STL`, commit`cef2c79445380c5bffec461a80c7c91caf89b3b2`.Copyright (c) 2014 clarkerubber; MIT license, reproduced in `LICENSE`.The six original files in `source/` are unmodified. SHA-256 hashes are in `manifest.json`.
## Conversion
`sim/prepare_chess_assets.py` rotates the original Y-up CAD coordinates into Z-up,centres each foot, seats it at z=0, and applies one uniform scale of `0.046 / 78`.The source proportions are retained: pawn 25.36 mm, rook 28.90 mm, knight andbishop 34.79 mm, queen 40.10 mm, king 46.00 mm. Major-piece feet are about17.69 mm across; pawn feet are 14.15 mm. All fit the existing 25 mm squares.The normalized knight faces +y; the scene rotates each side toward its opponent.
The resulting `{kind}.stl` files are detailed visual meshes. `collision/` containsCoACD convex decompositions. A single MuJoCo mesh collider would use a convexhull around the whole piece, filling in the narrow stem and producing falsefinger contact. The separate hulls approximate the actual profile instead.The knight's foot and neck use convex slices taken directly from the visual mesh,0.25 mm thick in the gripping region and 1 mm elsewhere; the upper head uses the clipped automatic decomposition. Thisavoids the inflated gripping stem produced by automatic remeshing alone.CoACD automatically preprocesses its non-watertight source for collision purposes;the original visual detail is retained. Decomposition remains an approximation,particularly around tiny carvings and crown slots.
`manifest.json` records dimensions, grasp heights and diameters, estimated masses,inertial properties, source hashes, and decomposition settings. The grasp sitesare at narrow cross-sections below the heads. These are candidate pinch locations,not evidence that the SO-101 can execute a collision-free grasp in a full board.
## Physics and training
- Visual geoms: group 2, contacts disabled. Collision geoms: group 3, hidden from normal renders. Enable group 3 and disable group 2 in the viewer to inspect translucent green contact shapes. Keep group 3 disabled for RGB/depth/segmentation.- Body/freejoint/site names remain stable (`w_pawn_e`, `w_pawn_e_free`, `w_pawn_e_grasp`). A piece has multiple contact geoms; use body IDs or the named visual geoms for object labels, not a one-geom-per-piece assumption.- Each body has an explicit mass and inertia so the visual mesh does not add mass to the collision shapes. Masses of 6–11 g and friction 0.7 are starting estimates. Five watertight pieces use uniform-density mesh inertia. The knight uses the convex-parts approximation, which can overcount small overlaps.- Before hardware deployment, match the physical geometry and measure mass, centre of mass, friction, camera calibration, and gripper contacts. Add appearance and physics randomization plus real demonstrations. The imported assets alone do not constitute a trained or deployment-validated chess policy.
## Rebuild
```shuv pip install --python .venv/bin/python -e '.[assets]'.venv/bin/python sim/prepare_chess_assets.py.venv/bin/python sim/make_scene.py.venv/bin/python sim/validate_scene.py.venv/bin/python sim/render_scene.py```
Rebuilding assets uses only vendored source files; no download is required.Normal scene generation/rendering does not need the optional mesh-processingdependencies. The source STLs can also be used for fabrication after applyingthe documented uniform scale and checking printability, especially the knight.123version https://git-lfs.github.com/spec/v1oid sha256:289c934ad8f78cba2fd4488bcdca3ff4def0c233b0334167791b7578b04668a9size 594984.gitattributes+21
chess-sim/code/pyproject.tomlAdded+17
chess-sim/code/sim/README.mdAdded+165
chess-sim/code/sim/assets/chess/LICENSEAdded+21
chess-sim/code/sim/assets/chess/README.mdAdded+64
chess-sim/code/sim/assets/chess/bishop.stlAdded+3
chess-sim/code/sim/assets/chess/collision/bishop_00.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_01.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_02.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_03.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_04.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_05.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_06.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_07.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_08.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_09.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_10.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_11.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_12.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_13.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_14.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_15.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_16.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_17.stlAdded
chess-sim/code/sim/assets/chess/collision/bishop_18.stlAdded
chess-sim/code/sim/assets/chess/collision/king_00.stlAdded
chess-sim/code/sim/assets/chess/collision/king_01.stlAdded
chess-sim/code/sim/assets/chess/collision/king_02.stlAdded
chess-sim/code/sim/assets/chess/collision/king_03.stlAdded
chess-sim/code/sim/assets/chess/collision/king_04.stlAdded
chess-sim/code/sim/assets/chess/collision/king_05.stlAdded
chess-sim/code/sim/assets/chess/collision/king_07.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_00.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_03.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_05.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_08.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_23.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_24.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_25.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_26.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_33.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_34.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_35.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_36.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_37.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_38.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_39.stlAdded
chess-sim/code/sim/assets/chess/collision/knight_40.stlAdded
chess-sim/code/sim/assets/chess/collision/pawn_01.stlAdded
chess-sim/code/sim/assets/chess/collision/pawn_02.stlAdded