One click from CAD to a robot you can simulate

Cad2Robot is a Fusion 360 add-in. Press one button on the assembly you already modelled and get a URDF, a MuJoCo scene and a robot.json carrying your real motors, gearboxes and cameras.

Free. Built by BAM Robotics for its own robots.

Recorded 30 Nov 2026, in pipeline order: (1) the Cockpit inside Fusion with its Fusion-only command bar (a still: Fusion runs on Windows); (2–3) the CadDescription viewer on BAM's five-bar crab-claw arm, assembly graph then 3D, a joint dragged (shown at 10×) and COM + inertia boxes; (4) the same export built by cad2robot and moving in MuJoCo under its simulated servos. GIF version.

The robot from the outside: Block view and Wiring view

The 3D view is the robot. The Block view hides the 3D and shows its hardware interface: the gym API, with sensors on the left and actuators on the right. Every port has a name, a unit and a range. The Wiring view shows every board, motor, adapter and supply, and what each one is physically wired to: CAN bus and node id, motor phases, power, USB. Both are derived from robot.json, the drive file and the datasheets. A range or a wire the data does not give is shown as ? or a dashed red line. It is never guessed.

Block view of the One Dof Test Rack: a box for the robot, with each joint's encoder ports (position, velocity, effort, temperature, voltage, fault) on the left and each servo drive's command ports (position, velocity, feedforward effort, stiffness, damping, max effort, mode) on the right, each with its unit and range
Block view of BAM's one-DoF test rack. On the left, 36 observations from 6 boards. On the right, 42 actions into 7 drives. The port names are the robot_msgs ServoState and ServoCommand fields, so a port here is the field the HardwareInterface reads or writes, in sim and on the real robot. revolute_3 has a motor but no board, so it shows with no ports. Click a port and its part lights up in 3D. Captured from the real Cockpit, 30 Nov 2026.
Wiring view of the test rack: an unknown host computer, a fdcanusb CAN adapter, six moteus boards on CAN ids 11, 12, 13, 15, 14 and 1, each driving its motor, plus one motor with no board and an unknown power supply drawn dashed red
The rack's wiring: six moteus boards on one fdcanusb bus, with CAN ids from the drive file. The computer, the supply and one missing board are not recorded yet, so they are dashed red.
Wiring view of the five-bar crab-claw arm: seven boards with CAN ids 11 to 17 on a bus that is not named in the data, each wire dashed red
The crab-claw arm: the claw is CAN ? · id 17. The id was measured on the rig, but no bus is named anywhere yet, so every CAN wire is dashed.
python -m cad2robot.block_wiring fixtures/cad2robot/one_dof_test_rack_v2 --json

System architecture

An hourglass with RobotDescription at the waist. CAD comes in at the top: the CAD exporter turns a design into a CadDescription export, and cad2robot builds that into a bundle with hardstops, loops and drives. Everything below the waist reads one frozen RobotDescription and writes URDF, MuJoCo, a 3D view, a robot you can drive.

The narrow waist. Ways in: Fusion 360 through the CADExporter add-in, a STEP file through step_mesher, and planned Onshape, SolidWorks and cloud Fusion. They narrow into the CadDescription export, which cad2robot.build turns into a cad2robot/1 bundle. import_bundle lifts the bundle into RobotDescription; import_urdf lifts the export alone as a ragdoll; any URDF or Python builder lands there too. Ways out: URDF, MJCF for MuJoCo, the 3D viewer, and DriveSession to drive it in simulation; SDFormat and OpenUSD are planned. Beside the waist, bam_runtime, bam_homing, cad2robot_payload and cad2robot.hardware still read the bundle's files directly.
Many ways in, one format, many ways out: M + N converters through one small type instead of M × N between every pair, as on robotdescription.com. Solid lines work today; dashed ones are planned. Every box is a real path in cad-exporter or bam_ws (main, 30 Nov 2026). The runtime, homing and moteus configs still read the bundle's files directly and don't pass through the waist yet. Click for full size. Listed in the robot SDK as cad2robot.

The pieces

Fusion only · Windows

The add-in and its Cockpit

Reads the open design, shows its links and joints before anything is written, and owns the Fusion-only command bar: Export URDF, STLs, STEP, Export & View, Export & Sim.

powershell -ExecutionPolicy Bypass -File install_addin.ps1
CADExporter/ · app/
Runs anywhere

CadDescription viewer

The same Cockpit outside Fusion, on any export folder: the Block view (the gym API), the Wiring view, the assembly graphs, and a 3D view with joint sliders, COM and inertia boxes.

bash app/host/run_cad_description_viewer.sh fixtures/cad2robot/bam_fb_crab
app/host/cad_host.py · viewer/
Linux

step_mesher

Meshes the exported design.step on Linux into the same STLs and manifest Fusion's Export STLs writes, and measures how closely it matches Fusion.

python -m step_mesher <export-dir> --level preview
step_mesher/
Any OS

cad2robot build + sim

Sweeps every joint to its hard stop, writes robot.json, a URDF with those limits and a MuJoCo scene, then simulates it headless (~30× real time) or in the viewer.

python -m cad2robot.sim fixtures/cad2robot/bam_fb_crab --headless
cad2robot/
Dry run

cad2robot.hardware

Compiles robot.json plus a hardware intent into one moteus config per joint and a bring-up plan. Writes files only; never talks to a board.

python -m cad2robot.hardware plan <bundle> --intent <json> --out <dir>
cad2robot/hardware/
Linux · bam_ws

The payload's readers

cad2robot_payload loads and checks a payload; bam_cad_descriptions pins versions with a preflight; homing and the runtime run on the same files.

python -m cad2robot_payload check <payload-dir>
src/core/mdp/env/cad2robot_payload

How it works

Model the way you always do. Cad2Robot reads the design and never edits it, so you can export as often as you like.

1

Model in Fusion, the way you already do

Joints, joint limits and the visibility icons are the whole interface. There are no export tags, no naming rules and no copy of the model to keep in sync. Hide a part and it stays out of the robot.

2

One press opens the Cockpit

Before it writes anything, the add-in shows what it understood: the subassembly, joint and link trees, in Fusion's own order. A closed loop such as a four-bar is drawn with its closing joint as a dashed back-edge, and anything it cannot read becomes a warning. Nothing is silently dropped.

The Cockpit's joint and link views on a test design (recorded 20 Sep 2026). Rigid groups collapse into links; the four-bar's closing joint is the dashed red edge.
3

Datasheets as Python dataclasses

Motors, gearboxes, drivers, servos and cameras are typed Python files you can read, diff, review and have an AI write. Each datasheet names the CAD parts it describes, and its gear ratio, rotor inertia, limits and CAN id flow into the export.

Parts that have no datasheet yet still export, labelled as placeholders rather than guessed.

# parts/actuators/moteus_c1.py
# https://mjbots.com/products/moteus-c1, read 2026-08-22
moteus_c1 = BldcDriver(
    cad_names=("C1 - (20240105-moteus_c1-r1_1)",),
    manufacturer="mjbots",
    model="moteus-c1",
    mass_kg=0.0089,
    comms="5 Mbps CAN-FD",
    voltage_min_v=10.0,
    voltage_max_v=51.0,
    peak_phase_current_a=20.0,
    continuous_phase_current_a=5.0,
    encoder="absolute magnetic, integrated",
    ...
)
4

Build: URDF, MuJoCo scene, robot.json

Each joint is swept about its axis until its moving parts touch its own station, so the hard stops come from the geometry, not from a number you typed. The build then writes a URDF with those limits, a MuJoCo scene with stiff stops, and a robot.json with every joint's CAN id, gear ratio, armature, friction, effort limit and homing direction.

Every range says where it came from: calibration, a drive file, an override, the Fusion limit, the stop geometry or the datasheet. A range it cannot work out is written as unknown, never as free.

# one exported bundle
one_dof_test_rack/
├─ urdf/
│  ├─ one_dof_test_rack.urdf
│  ├─ one_dof_test_rack.cad2robot.urdf  # + swept limits
│  └─ meshes/
├─ mjcf/scene.xml        # MuJoCo, stiff stops
├─ robot.json            # cad2robot/1: joints, CAN ids,
│                        #   ratios, cameras, homing
├─ hardstops.json        # the sweep, cached by hash
└─ cad_config.json       # your fixes, outside the CAD
5

One click to simulation

The same bundle opens in MuJoCo's viewer, or runs headless at about 30× real time and writes a JSON report: range reached, worst limit violation, worst torque and tracking error per joint. A RealSense in the design becomes a MuJoCo camera that renders RGB and depth, with pinhole intrinsics from its datasheet.

In BAM's lab tools the bundle also drives a live block diagram of every sensor and actuator, and a 3D view, from one run.

Block diagram of encoders, control software and servos with live values
Block view: encoders in, servo commands out, live values on the wires.
3D view of the test rack next to the block view
3D beside it; selecting a block selects the part.
6

Test the real code before the real robot

BAM's homing controller runs unchanged against the exported rack in MuJoCo. It presses on a pin whose position came from the CAD sweep, backs off, probes again and assigns the datum. Error: −0.0001 mrad.

So the first time the code meets the hardware is not the first time it has run.

Homing revolute_6 (a 10:1 servo) in MuJoCo 3.11 against its CAD-swept stop. Recorded 9 Oct 2026.

Philosophy

Why it is built the way it is, in the maker's words.

One click to see it moving

The robot you CAD should be the robot you simulate, and the robot you run. Everything on this page serves that.

“It really should be 1 click to see it moving in simulation. 1 click to see it moving in reality.”Zach Yamaoka, project notes

Design freely; the export is an afterthought

Nothing about your design is constrained: not joint order, not tree structure, not naming, not units. Whatever needs fixing is fixed in a sidecar file, never in the CAD.

“Truly the export is an after thought.”Zach Yamaoka, project notes

Read-only, so run it as often as you like

The exporter is a pure function of the design. It never touches the model, so exporting is safe to repeat and cheap to automate.

“You should not need to make a copy of the model each time you want to export!”Zach Yamaoka, project notes

One click, where you CAD

A toolbar button inside the CAD, not a command line and not a separate app. You see what it understood before it writes a file.

“I want to just one click export to urdf and be able to view it.”Zach Yamaoka, project notes

Datasheets, not guesses

Real parts carry real numbers: mass, ratio, rotor inertia, current limits, camera intrinsics. A datasheet is a small typed file, as easy to edit as a dataclass.

“It should kinda just feel like doing a dataclass no?”Zach Yamaoka, project notes

Sim and real are one system

The same robot.json describes the simulated robot and the real one, so controllers, homing and tests move between them without a rewrite.

“Have a seamless integration between hardware/software and sim/real.”Zach Yamaoka, project notes

A thin waist, many CAD tools

Only a thin adapter talks to Fusion. Everything after it is plain Python with no CAD imports, tested offline, which is what lets other CAD tools plug in later.

“Cad2Robot and CadExporter should be made as plugins into all of these 3D workspaces.”Zach Yamaoka, project notes

What you see is what you get

The visibility icons are the control, and the preview and the URDF are one reading of the design. A test compares the drawn tree with the written XML across eight configurations.

Commodity, done well

Getting from CAD to a simulator is work every robot team redoes by hand. It should be a solved, boring step, so the time goes into the robot.

“I think the challenge is just doing it well, simply, and correctly.”Zach Yamaoka, project notes

Download

Cad2Robot is in early access while BAM uses it on its own robots. Start from the source on GitHub.

Early access

Fusion 360 add-in

Windows; macOS should work but is untested. The Cockpit, the datasheet editor and the one-click build and simulation, inside Fusion.

Early access

Python core

Build, simulate and render an exported bundle on Linux, macOS or Windows, with no Fusion needed: python -m cad2robot.sim <bundle>.

Exploring

More CAD tools

The core is CAD-free by design. Onshape, Python CAD (build123d) and plain STEP files are the candidates for the next front ends.

Q&A

Which CAD tools does it work with?

Fusion 360 today, on Windows. The pipeline after the Fusion add-in is plain Python with no CAD imports, so other front ends can feed it; see Download.

Do I have to tag, rename or restructure my design?

No. There are no export tags and no naming or ordering rules. Link names, merges and overrides live in cad_config.json beside the export, never in the CAD.

What about closed loops, like a four-bar?

They are detected and drawn in the Cockpit. A URDF can only describe a tree, so the closing joint is recorded in the export rather than written into the URDF.

Do I need ROS?

No. The URDF opens in any ROS tool if you use one, but the build, the MuJoCo simulation and the viewers need only Python.

Does it run on Linux?

The add-in needs Fusion, so Windows or macOS. The build, the simulation and the viewers run anywhere Python and MuJoCo do. BAM runs Fusion on Windows and the robot on Linux, with git carrying the bundle between them.

Which simulators does it target?

MuJoCo first. The URDF is standard, so other simulators and tools that read URDF can use it too.

Is it open source? What does it cost?

It is free. The code lives on GitHub; a licence has not been chosen yet.

Who makes it?

BAM Robotics in Vancouver, which builds waste-sorting robots and needed this for its own. It is a sibling of ArUco Studio, which makes fiducial markers where you CAD.