Skip to content

Project Format

Mehrdad Pajuhaan edited this page Nov 30, 2026 · 1 revision

Project Format

A Robot Studio project is a folder with a standard layout and one manifest file, project.rsproj, that names every file in it. Exported, it is that folder as one .robotstudio file, which is a plain zip inside. Everything about a robot lives in its folder: its parts, wiring, boards, code, the standard parts it uses and the models it imports.

This page is a summary. The standard itself is docs/project-format.md.

The folder

<project folder>/
  project.rsproj                 the manifest: what this is, and where everything is
  settings.json                  settings this project sets for itself over your own
  mechanical/
    assembly.json                sub-assemblies and every part: kind, name, place, pose, group
    mates.json                   mates, and the joints among them
    drive-base.json              optional wheel layout for physics controls
    sensors.json                 optional simulated IMUs, joint encoders and contact zones
    assembly-steps.json          how the robot is put together, step by step
    wires.json                   the wires: route and length of each
    motions/<motion id>.json     one motion per file: keyframes and its flow
  electrical/
    schematic/
      nets.json                  the netlist: what is connected to what
      sheet.json                 where each symbol sits, on which board and page
      wires.json                 nets drawn by hand
      pictures/part-<id>.webp    pictures shown on symbols
    pcb/
      board.json                 the board: outline, footprints, copper, silkscreen, mask
  code/
    targets.json                 build target of a controller, where it differs from its kind
    <controller id>/…            that controller's source files (main.ino, gait.h …)
  controls/
    controls.json                what the robot can be told to do
    connections.json             how commands reach it
  agent/
    annotations.json             notes the person wrote for the AI agent, and where the agent stands with each
  extensions/
    extensions.json              apps and tools made for this robot
    <extension id>/…             that extension's files
  ai/
    models.json                  the robot's AI models
    models/<model id>/…          that model's files
  custom/
    <module id>.json             a part designed for this robot, to be made
  guides/
    <module id>/step-<n>/…       illustrated guides for manufacturing steps
  library/
    <category>/<module id>.json  a copy of each standard part the robot uses, to be bought
  assets/
    cover.png                    the project's custom cover image
    models/<name>.step           geometry imported from a STEP file, named by its content

A file is written only when it has something in it, except the five every project has: assembly.json, mates.json, nets.json, board.json and controls.json.

The manifest

project.rsproj is UTF-8 JSON:

{
  "format": "robot-studio-package/1",
  "schema": "robot-studio/1",
  "generator": "Robot Studio 0.1.0",
  "project": { "id": "…", "name": "Hexapod H1", "description": "…", "createdAt": "…", "updatedAt": "…" },
  "files": [
    { "path": "mechanical/assembly.json", "holds": "project", "kind": "assembly", "title": "Assembly" },
    { "path": "code/U1/main.ino", "holds": "code", "kind": "code", "controller": "U1", "file": "main.ino" }
  ]
}
  • format is this standard and its version. A reader refuses a version it does not know.
  • files lists every file of the package, in order. Each entry says what the file holds: project keys, fields of parts, a motion, a module, a guide, a source file, an asset, an image or an extension or model file. A reader goes by holds alone, so a package written by a newer version still opens.
  • settings holds project values that have no file of their own, such as fixedBase for a machine fastened to a bench, and optional purchase details.

Rules that keep projects safe

A reader:

  • refuses a path that leaves the folder (.., a drive, a leading /, a backslash);
  • fails, naming the file, when a listed text file is missing, so it never opens half a project; a missing asset is reported and the rest opens;
  • ignores files the manifest does not list, and never deletes them;
  • validates what it read like any other input.

A writer:

  • writes every file whole and atomically (a temporary file, then a rename), the manifest last;
  • writes only the files whose content changed;
  • removes only text files it wrote earlier that the project no longer has, never an asset or an extension's file;
  • writes JSON with two spaces and a final newline, and source files exactly as they are.

Standard parts travel with the project

library/ holds a copy of every standard part the robot uses, so the package opens anywhere. When Robot Studio knows a module of that id, it uses its own definition; otherwise it uses the package's copy. Every save refreshes the copies.

Not in the package

Anything derived (display meshes, build output, exported fabrication files), anything about the window (selection, theme, undo history) and anything about one computer (which Python it uses, which extensions it may run) stays out of the package. A training run's log stays on the computer that ran it.

Exporting and opening

  • Export project… (or the tool export_project) writes <project>.robotstudio: a zip with the manifest at the top. Renamed to .zip, any zip tool opens it, and a zip of a project folder made by any tool opens as one.
  • Open project… (or open_project) takes a project.rsproj, a project folder or a .robotstudio file. An archive is unpacked into a new folder of Robot Studio's projects folder, and the project is that folder from then on.
  • An extension carried in an archive asks again before it runs on a new computer.
  • Size limits: all extensions of a project together hold at most 256 MB, and all its AI models at most 768 MB, so the exported zip opens again.

Older projects

A single-file project from before this standard still opens: it is converted into a package folder beside it, and the old file is left as it is. Folders written before 2026-11-18 used the manifest name project.robotstudio; they open, and the first save writes project.rsproj.

For agents

Agents read the package with list_project_files and read_project_file, and change the design with the tools, never by writing the files directly.

Clone this wiki locally