humanoid-from-spec
/humanoid-from-spec
Projektuje i buduje robota humanoidalnego z jednej specyfikacji w Pythonie, od proporcji ze zdjęć po model URDF i test stania w MuJoCo.
- Autor
- meetsitaram ↗
- Repozytorium
- echo ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 05.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 9
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Projektuje i buduje robota humanoidalnego z jednej specyfikacji w Pythonie, od proporcji ze zdjęć po model URDF i test stania w MuJoCo.
Oryginalny opis (EN)
Design and build a humanoid robot, or a look-alike of a reference robot, from one Python spec, the way the echo Figure 03 replica was built. Proportions come from reference photos and actuators are ones you can buy. The covers clear every joint, the offline physical checks are proven on broken designs, and the Fusion 360 model is built by script through MCP. Ends with a URDF/MJCF with bottom-up masses, a MuJoCo stand test, a retargeted motion-capture walk and a public repo with a README video. Use it whenever someone wants to design, model, replicate, re-proportion or iterate a humanoid or leg
Jak działa
- How to use this skill
- Eight rules, and why
- Before you start
- Workflow
- Before you call it buildable
- What echo learned past the look
- Each round
- Make it yours
- Reference files
Podgląd SKILL.md
--- name: humanoid-from-spec description: Design and build a humanoid robot, or a look-alike of a reference robot, from one Python spec, the way the echo Figure 03 replica was built. Proportions come from reference photos and actuators are ones you can buy. The covers clear every joint, the offline physical checks are proven on broken designs, and the Fusion 360 model is built by script through MCP. Ends with a URDF/MJCF with bottom-up masses, a MuJoCo stand test, a retargeted motion-capture walk and a public repo with a README video. Use it whenever someone wants to design, model, replicate, re-proportion or iterate a humanoid or legged robot's mechanical design. It also covers CAD or a URDF/MJCF for a robot they are designing, matching a robot's look from photos, video frames or the reference robot's own URDF/MJCF model, validating joints by posing both robots alike, and how echo was built, even when they don't mention Fusion, a spec or this repo. --- # Build a humanoid from one spec This is the method behind echo (github.com/meetsitaram/echo). echo is a 1.727 m, 29-joint humanoid built to Figure 03's published specs and look, with an Asimov 1-style internal layout and off-the-shelf RobStride actuators. Start from that repo: its tools read `spec/robot.json` and work for any robot described the same way. "Make it yours" below lists what is echo-specific. ## How to use this skill You (the agent) drive the work; the scripts only build, check and render. They cannot judge whether a shape looks right or whether a trade-off is acceptable. You and the user do. So: 1. **Get oriented.** Read `LESSONS.md`, the spec (`spec/robot.py`), the last check report (`reports/checks.md`) and the comparison (`reports/compare/compare.md`). For a new robot, start at step 1 below. 2. **Agree the goal with the user.** Find out the target robot, what must match (specs, look, both), what may differ (payload, ranges), and what to change this round. 3. **Work in rounds** (see "Each round"): one change, the checks, before/after pictures beside the reference, then the user's review. Fusion, exports and publishing come after the user approves the look. 4. **Write down what you learn.** Every issue and its fix goes into `LESSONS.md`; every source into your sources list. Stop and show the user pictures whenever the look is at stake; don't push to a public repo without their go-ahead. ## Eight rules, and why 1. **One source of truth.** Everything is generated from `spec/robot.py`: the Fusion model, the URDF/MJCF, masses, renders and the web viewer. Never hand-edit the CAD or `robot.json`. A change is then one edit and a rebuild, and the CAD, the simulation and the pictures cannot drift apart. 2. **Check before you build.** Fusion is slow: a full build is ~1,800 timeline features, and a link with many cuts takes minutes. The offline checks cover the whole robot in about 2.5 minutes. Make the spec pass, then build. 3. **Prove every check on a broken design.** A check that has never failed may not work. In echo, a cosmetic hip cover "connected" two parts after the bracket between them was deleted, and the check passed. Each check has a `--bad` case that must fail. 4. **Judge the look in pictures.** Every landmark was in tolerance while the hips read as a "boxy butt". Compare side by side at the same scale, from level views, in close-up crops, and from whatever angle the user looked from. Numbers hide ugly geometry. 5. **Real parts, honest numbers.** Use actuators someone sells, compute masses bottom-up from materials, and report the gap to the target rather than padding the model to hit it. 6. **Copy the reference's joints before its look.** If the reference has a model (URDF, MJCF, STEP), read every joint's position, axis and range, and which body each actuator rides in; lay yours out the same way and take its zero pose as yours. Laying joints out by reasoning cost a later build eight review rounds. 7. **Measure, don't draw.** Slice the reference's meshes (or measure its frames) on a grid and build every visible shape from the numbers; compare close-ups on a grid. 8. **Validate motion, not just poses.** Move both robots through the reference's own poses and single-joint moves with matched axis signs and compare where the joints land. It finds ranges no picture shows. ## Before you start - Fork echo, then read `LESSONS.md`. It lists every trap we hit with its fix; keep it open. - Python 3.12 with numpy, scipy, trimesh, manifold3d, mujoco, Pillow, imageio and matplotlib; add mink for retargeting. Run scripts that read downloaded files with `python -I`. MuJoCo lives in user site-packages, so run the sim and render tools with plain `python`. - Fusion 360 with an MCP server that runs Python scripts in Fusion. It is only needed for the CAD; everything else runs offline. - On Windows, keep working files on short paths: Python cannot open paths over 260 characters. ## Workflow ### 1. Pin the target Collect the published specs (height, mass, payload, battery, DOF) and the best reference pictures you can get from the web. - Open the maker's product page and reveal video in a browser you control. - Seek the page's video player to exact times with JavaScript, enlarge it to fill the window and screenshot it. A canvas export fails on a cross-origin video. - Keep the frames local, never in the repo: they are the maker's copyright. `references/reference-images.md` has the code, how to choose frames, and how frames become numbers and loft sections. Write the targets to `spec/targets.json`: landmark heights (chin, shoulder top, elbow, wrist, fingertip, hip line, knee) and widths, each with its source frame, time code and tolerance. If the reference robot's model is published, get it first and measure from it on a grid; check its licence (measure, never copy meshes) and keep it out of the repo. Look for motion in the maker's launch video as well as its photos. See `references/reference-models-and-review.md`. Measure heights in level views only; a raised camera lifts every top surface. For a 3/4 frame, fit the camera angle first: render the model at several angles and keep the one whose silhouette widths match (echo's 3/4 frame was at 60°, not 40°). Zoom into every region of the reference before modelling it. echo's "black head" turned out to be a grey knit hood with a black visor, visible only in a close-up. ### 2. Choose the architecture - **Joints.** List the DOF and the order of each chain's joints. Borrow a proven layout from an open-source robot (Asimov 1, Unitree G1/H2, AgiBot X2): download their URDFs and compare joint order, offsets and ranges. - **Before reordering joints for looks, check where the new first actuator goes.** A yaw-first hip needs a motor above each hip; echo had no room for one, so the hip covers were moved to another link instead. - **With a reference model: copy its joint layout** (positions, axes, ranges, which link each actuator rides in, which axes share a height), take its zero pose, and find where it keeps its boards and battery. - **Actuators.** Put the catalog in `spec/actuators.json`: size, mass, rated and peak torque, gear, rotor inertia. Mark retailer numbers as "confirm before ordering". - **Hold every joint on both sides**: the output on one side, an idler bearing on the other, bridged clear of the actuator's swept reach. - **Calculate a mechanism before offering it, from the range the motion really uses.** Compare joint strength with robots of the same class, read from their own models, by weight x leg length. - **Look for proven examples before picking a mechanism.** A neat calculation isn't evidence. Search for who has used that drive, bearing or material at this size and load, and name them when proposing it. If none turn up, say so, as it's a warning sign and the user's call. (A roller-chain knee on a large robot passed its torque numbers; a search only found chain on small robots, with larger machines using linkages, cables or belts. Search again when the size changes: what works at one scale may have no precedent at another.) - **Torque.** Size each joint with the task poses in step 4, not by feel. Trade capability for looks only knowingly and with the user: echo took smaller elbow motors to match Figure's arms, at 3 kg continuous instead of 20. - **Credit references.** Note the licence of every robot you borrow from. Asimov 1 is CERN-OHL-S-2.0 hardware and GPL-2.0 software. echo follows its layout but copies none of its files. ### 3. Write the spec `spec/robot.py` holds: - anchor heights at the top (hip, knee, ankle, shoulder, elbow, wrist, hem, neck, chin); - links made of primitives, each with a role (cover, rigid part, actuator, decal, linkage, cut); - joints with actuator, range and output side; - materials. Write the left side once; the right is mirrored. Actuator stators go in the parent link automatically, and an output flange on the child. Place every part relative to the anchors, so re-proportioning is a few numbers. Leave a comment with the reason for each iteration's numbers next to them; it is the design's memory. See `references/spec-patterns.md`. ### 4. Run the checks until 0 failing ```bash python -I spec/robot.py ``` ```bash python -I tools/checks.py ``` The checks cover: - the targets and a bottom-up mass; - actuators on their axes, and no rigid part inside another; - covers clear of motors, structure that holds together, internals hidden; - every joint swept from minimum to maximum, covers included; - task poses: torque against rated and peak with a 1.5 margin, balance over the feet, limits after balancing, and collisions. Fix the design, not the check. When you add a check, add a `--bad` case for it and watch it fail. See `references/checks.md`. ### 5. Look at it ```bash python tools/render_pose.py --views ``` ```bash python -I tools/compare.py ``` These render the spec offline and put it beside the reference frames, at the same height, with the target lines drawn across both, plus close-up crops of each region. For every change, render before and after side by side from front, side, back, 3/4 and the user's own angle. To find gaps that let light through, render on a green background: green inside the outline is light through a gap. ### 6. Give every joint room Rigid covers are where a humanoid design gets hard. For each joint, decide which link each cover rides on and what moves against it. Make every interface round about the axis that moves it, or a plane square to that axis. Use a sphere where several axes cross; spheres also hide seams. The patterns, with numbers, are in `references/joint-covers.md`: openings, hinges, cups, sockets, the multi-axis hip, pads and the sock-shoe. ### 7. Build it in Fusion Build after the user approves the look (and, with a reference model, the pose validation); tell the user early that the spec is the CAD source and Fusion comes then. Build one link per MCP call (`build.link(name)`), then rebuild its joints (`build.joints([...])`). After any timeout, ask `build.status()` before retrying: Fusion keeps working after the call times out. Save the document into a hub folder, then export `cad/<name>.step`, `cad/<name>.f3d` and one STL per link. See `references/fusion-mcp.md`. If the viewport cannot save images, the offline renders are the same shapes. ### 8. Robot files and physics ```bash python -I tools/make_robot_files.py ``` ```bash python tools/sim_stand.py ``` These write the URDF and the MuJoCo model, with masses and inertias from materials and joint armature, damping and friction from the actuators. The robot must then stand and squat to 90° knees and back in MuJoCo, every joint limited to its peak torque, with little tilt and no saturation. ### 9. Motion Retarget a human capture (echo used a PICO full-body suit) to the joints with IK, locking planted feet. Play it back kinematically for videos and the web viewer. Replay it through the collision test, which catches the combined joint motions that single-joint sweeps cannot. See `references/motion-and-publishing.md`. ### 10. Review, publish, record Put the new model in a review page (the web viewer, with movies and renders) and wait for the user's go-ahead. Then commit and push, with the README video re-rendered and every quoted number copied from the reports. Add a `LESSONS.md` row for each issue the round hit and how it was fixed. Never publish the reference robot's frames, panels made from them, raw motion captures or anyone's trademark. ## Before you call it buildable Checks that pass mean only what they test. Collision and fit checks say nothing about whether a part can be made, or holds. Say so to the user, and before a design counts as ready, have these: - **Bought parts at their real shape:** sections of the maker's CAD, not a bounding box. - **Every fastener in the spec:** size, length, position, direction, what it clamps and threads into, placed by `spec/hardware.py`. Parts held by nothing show up. (On echo: the legs, hips, waist and chest so far.) - **The build order as data**, with paths: each part goes in without cutting what's on; a key reaches each fastener at that moment; the thread bites something; the head clamps something. - **Per made part, not per link:** one piece without bought parts in it; walls at the process's minimum; fits the machine; exported with its holes, hollow where it is hollow. - **A load estimate through each section on the load path**, at a landing's load, against the material's weak direction. A hand estimate finds weak parts; it doesn't replace FEA or a test. - **Limits scaled to the robot:** a volume limit from a big robot hides real collisions on a small one. - **Sim results sanity-checked:** the floor carries the weight, the whole robot collides, inherited tools have really run on this robot, each joint's speed is under its actuator's, and every sim parameter's source (measured, scaled, copied, guessed) is written down. - **One joint built** with real parts before buying the rest. Each of these has a `--bad` case, as every check does. ## What echo learned past the look From the rounds after the look was close (2026-11-05). `LESSONS.md` has the details. - **A fabric-looking robot is a garment over machinery.** If the reference is knit, model the grey as one knit panel per link over an open former, ending at the black hubs, with gussets where folds need length (fabric across a knee needs about 40 % more length bent than straight). Rigid-cover logic there keeps making new artefacts. - **Black is the actuator.** A thin dark plate stuck on a cover reads as fake; a hub on the motor reads as real. Give parts a `finish` (dark for motors and their housings, silver for structure) and leave a seam's shadow line round each hub. - **Close-up audit before review.** Look at every joint beside the reference, straight and bent, before showing the user. A difference you can see is fixed or explained first, not handed over as a question. - **Round, not flat.** Joints are round housings on the motor's real face, two-sided forks and closed tubes, as on real humanoids: the pattern is in `reports/joint_template.md`. Study the reference's uncovered footage (or its patents' drawings) for layout, never to trace its parts. - **A structure check must prove load, not touch.** "Shapes touch" passed a 2 x 2 mm spine. Check contact area per interface, a minimum section along each named load path, a pin or bearing at every passive joint, linkages that reach their motors, and stators on a real mounting face. - **Scope the strength target to the goal.** For a robot that should walk on camera, size for calm walking with a margin and report the shove peaks instead of building for them. - **Make the inside visible.** A parts sheet (`tools/parts_sheet.py`) and a cover-off render (`tools/render_skeleton.py`, `tools/render_shiny.py`) show what really exists, gaps included. - **Renders that sell the design honestly.** `tools/render_quality.py` (glass visor, knit, shadows, room, depth of field) and `tools/showcase.py` make the film in `docs/showcase_video.md`. Every motion shot is physics, labelled; anything posed says so; the motion dataset's credit is on screen. ## Each round 1. Change `spec/robot.py`, with the reason in a comment. 2. `python -I spec/robot.py`, then `python -I tools/checks.py`: 0 failing. 3. Render before/after from front, side, back, 3/4 and the user's angle; `compare.py` against the reference; a green-background render if any seam changed. 4. `python -I tools/motion_collisions.py` if a joint or cover changed. 5. Look at the pictures yourself, then show the user and agree the change; send them as files when the user is remote, and take every circle on their screenshots literally. 6. Rebuild the changed links in Fusion, rebuild their joints, check `status()`, save, then export STEP, `.f3d` and STLs. 7. `make_robot_files.py`, `sim_stand.py`, `mass_model.py`, the README video and views, and the web viewer export. 8. Update the README numbers from the reports; add the `LESSONS.md` rows; review page; commit; push after the go-ahead. ## Make it yours The tools are generic, but some parts are echo's. Change these for a different robot: - `spec/targets.json` and `measure()` in `tools/checks.py`: your landmarks and how to measure them on the model; - `POSES` in `tools/checks.py`: your task poses and payloads; - `PAIRS`, `FRAME_BOX` and `BANDS` in `tools/compare.py`: your reference frames and the regions to crop; - the leg and arm name keys in `tools/checks.py` and `tools/motion_collisions.py` (`hip`, `knee`, ...); - `tools/ik/pico_to_echo.json`: body names for retargeting; - `NAME` in `tools/make_robot_files.py` and `DOC` in `cad/fusion/build.py`; - the anchors and every link in `spec/robot.py`. ## Reference files - `references/reference-images.md`: getting reference images from the web (video frames at exact times, stills), choosing frames that measure well, and turning them into targets, anchors and loft sections. Read before the first measurement. - `references/spec-patterns.md`: how to write links, joints, covers, cuts and materials. Read before writing or changing the spec. - `references/joint-covers.md`: the joint and cover patterns. Read when a joint collides, a cover shows a gap or light, or a joint looks wrong. - `references/checks.md`: what each check guards, its thresholds, and how to add one. Read when a check fails or you add one. - `references/fusion-mcp.md`: driving Fusion through MCP: build, status, save, export, memory. Read before the session's first Fusion call. - `references/motion-and-publishing.md`: retargeting, videos, the web viewer and the walk collision replay, plus repo hygiene, licences and the README. Read when making motion or publishing. - `references/sources.md`: every reference echo was built from: target specs and frames, robot URDFs, parts data, code and tools, what each was used for, and what its licence asks. Read before you borrow anything, and start your own list on day one. - `references/reference-models-and-review.md`: matching a reference robot whose model you can open (copy its joints, measure on a grid, validate by posing both), structure that holds (U-brackets, actuator sweeps), and how to work through a user's review rounds. Read before any look-alike. - `LESSONS.md` at the repo root: the traps, with what fixed each.
Pliki w paczce (9)
- SKILL.md 19 KB
- references/checks.md 7 KB
- references/fusion-mcp.md 3 KB
- references/joint-covers.md 6 KB
- references/motion-and-publishing.md 6 KB
- references/reference-images.md 6 KB
- references/reference-models-and-review.md 6 KB
- references/sources.md 7 KB
- references/spec-patterns.md 8 KB
Wersje
W bazie nie ma innych skilli o nazwie humanoid-from-spec.
Migawka bazy z 13.11.2026 · wersja paczki 84f7888d82c3 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100mujoco-simulation
Waliduje dynamikę robota-psa w MuJoCo: kontrakty scenariuszy MJCF, kontakt, teren, siłowniki, stabilność, momenty, poślizg i zakłócenia dla wirtualnych prototypów. - 100mujoco
Symuluje roboty i sceny w MuJoCo: roboty z Menagerie (Unitree Go2, G1, H1), własny MJCF, kontrolery i polityki, nagrywanie przebiegów oraz trening z MJX i MuJoCo Playground. - 100simready-foundation-conform-fet-004-robot-mujoco
Naprawia zgodność zasobów SimReady z FET_004_ROBOT_MUJOCO dla fizyki wielobryłowej robota w MuJoCo, w tym wymagania dla koliderów i topologii przegubów, domyślnie w wersji 0.1.0. - 100urdf
Tworzy, sprawdza i diagnozuje pliki URDF, czyli ogniwa, przeguby, geometrię i odwołania do siatek robota. - 100mujoco-explainer-video
Renderuje wyjaśniające filmy o fizyce i robotyce z symulacji MuJoCo na podstawie storyboardu w YAML, z napisami SRT.