Describe a robot the way you style a web page. A few readable blocks — body, limbs, sensors, look — compile into a real robot you can simulate live, export to URDF, SDF and MJCF, and turn into a ROS 2 package.
robot warehouse_bot {
chassis {
shape: differential-drive;
dimensions: [600mm, 450mm, 250mm];
}
sensors {
lidar front { model: rplidar-a2; range: 12m; fov: 360deg; }
camera front { model: realsense-d455; }
}
actuators {
wheel left { motor: "BLDC-01"; radius: 120mm; }
wheel right { motor: "BLDC-01"; radius: 120mm; }
}
}Say arm main { joints: 6; reach: 900mm; } and get six links and six revolute joints, mounted where an arm belongs. No transforms by hand.
650mm, 12m, 360deg, 2.5Nm, 300rpm. Lengths, masses and angles are normalized to SI when it compiles, so the file reads like a spec sheet.
Selectors, classes, variables and a real cascade for color and materials — and the materials flow into the simulator and Gazebo.
RSS compiles to a real robot model; the standard formats and the simulator are generated from it, so they never drift apart.
MuJoCo physics in NELO Studio, reloaded as you type
The ROS standard; colors carried as flat color
With real PBR materials (metal, roughness)
MuJoCo's native format, with real material assets
package.xml, CMakeLists, URDF, controllers.yaml, launch file
bom.csv + bom.md: every part, motor and sensor you named
PRO exports are free for the first 14 days, then part of the $10 early-access license. Pricing
When several rules match the same part, the most specific wins — #id beats .class and [attr], which beat a bare type — and among equals the later rule wins. Material presets like aluminum, carbon_fiber or rubber set real color, metallic and roughness.
robot styled_quadruped {
body { shape: box; material: carbon_fiber; }
leg front_left { joints: 3; reach: 350mm; class: lead_leg; }
leg front_right { joints: 3; reach: 350mm; }
style {
--primary: "#22252b";
--warning: "#ff3b30";
body { color: var(--primary); }
leg { color: "#333333"; }
#front_left { color: var(--warning); } // id beats type
.lead_leg { emission: "yellow"; }
sensor[type="camera"] { color: "black"; }
joint { material: "steel"; }
}
}arm main {
joints: 6; // six-joint serial chain
reach: 900mm; // split evenly across segments
axes: [z, y, y, x, y, x];
effort: 2.5Nm; // stall torque
speed: 300rpm; // no-load speed
limits: [-90deg, 45deg];
damping: 0.1;
}
rotor front_left { thrust: 6N; radius: 64mm; spin: ccw; }A limb's label places it: leg front_left mounts under the front-left corner. Joints pivot at the end of each segment, like real hardware, with ROS axes (+X forward, +Y left). Give a joint both effort and speed and it behaves like a DC motor — torque falls with speed, so a wheel settles at a top speed instead of accelerating forever.
Put the description between <<<RSS>>> markers inside a comment or string, and the body and the behaviour ship as one file. Compile errors point at the line and column of your source file. NELO Studio spots the block and runs the program with the STACC SDK on its path.
from stacc.rss import rss
ROBOT = rss("""<<<RSS>>>
robot scout {
chassis { shape: differential-drive; }
wheel front_left { radius: 60mm; }
}
<<</RSS>>>""")Or keep the robot in its own design.rss and import it. Its robot, joints, links, components and class: groups arrive as names in your code. Joint indices follow the simulator's order, so they index command arrays directly.
import stacc.rss
from design import robot, joints, classes, components
print(robot.name, len(joints))
for j in classes.lead_leg.joints: # every joint tagged class: lead_leg
print(j.name, j.limits)
components["servo_leg"] # {"joints": 3, "reach": 0.35, ...}After import stacc.rss, a .rss file imports like a module. importlib.reload picks up edits.
Once your robot is loaded, a controller in C++, Rust or Python talks to the simulator through shared memory — no sockets, no JSON per step. In lockstep mode the simulator waits for your answer to every step, so the same controller produces the same trajectory, bit for bit.
| Controller (lockstep) | Closed-loop steps/s | Round trip median / p99 |
|---|---|---|
| C++ | 938 | 1.06 ms / 1.23 ms |
| Rust | 938 | 1.06 ms / 1.26 ms |
| Python (separate process) | 937 | 1.06 ms / 1.27 ms |
RSS tells you when it can't do something instead of faking it. Anything it doesn't understand is kept and reported as a warning — never silently dropped.
NELO Studio ships with example robots — an arm, a quadruped, a drone and a warehouse rover — ready to open, edit and simulate.