Repository navigation
Releases
v0.5.4
Lockwire 0.5.4 moves the lock format to 0.8 so a lock cut short by a bad copy or merge is refused instead of read as GO, keeps what you declared when you update a lock from its model, and refuses a lock whose model file is missing. It fixes a long run of wrong or misleading messages on legged, wheeled and closed-loop robots, and the app notices when your files change outside it. Read "Before you upgrade": several changes can turn a green CI run red or change an exit code. The guide "Upgrading Lockwire" walks through them.
Before you upgrade
- Lock format 0.8. Any edit by 0.5.4 (an edit,
declare,add,start --force) saves an older lock as 0.8 and ends it with the linelockfile_end: complete. From then on Lockwire 0.5.3 and earlier refuse that lock and tell you to upgrade (exit 2). Upgrade every place that reads the lock first: teammates, CI, and the version pinned in.pre-commit-config.yaml. - Reading or checking never changes a file. Locks from 0.2 to 0.7 load and give the same verdict until something writes to them.
- One write is refused: to a 0.2 to 0.4 lock whose model has a joint with an empty
<axis/>, because 0.5 and later read that as 1 0 0, not 0 0 1, and the check would change. Lockwire says so, writes nothing and prints thelockwire upgradecommand. That command writes a 0.8 copy beside the old file, never over it, and prints what changes. It now also takes a 0.7 lock. - A 0.8 lock that lost its last line is refused as cut short: exit 2, no verdict, and "lockwire.yaml looks cut short: its last line, lockfile_end: complete, is missing. Restore it from git. If you removed that line yourself, put it back as the last line." A section typed after that line is refused with "Move
lockfile_end: completeto the end of the file." - A lock that names a model file which is missing, is a folder, or cannot be read is now refused.
lockwire check,report,accept, the app and the Assistant give no verdict: exit 2 and one line, "the model file X is missing, so there is no verdict; put it back, or re-lock from the model you have with lockwire start --force". Add--outnaming the lockfile when it is notlockwire.yamlin the current folder. Before, such a lock was scored without its model.planstill answers. Alockwire declarethat would point the lock at such a file is refused too, with exit 2 and nothing written. A lock that never named a model file is unchanged. lockwire start --forcenow updates the lock from the model and keeps what you declared (battery, rails, devices, wires, budgets, accepted findings, link and joint facts, the robot's name).lockwire start --force --freshgives the old behaviour: a fresh lock, nothing kept. A script that relied on the full overwrite must add--fresh.--forceover a lock Lockwire cannot read, or over a robot designed in Lockwire that has parts (no model file), now stops and asks for--fresh; 0.5.3 overwrote both.lockwire start MODEL --force --mass Xon a lock that already has a mass budget sets the budget to X and says so.- The MCP tools
check_contractandcheck_modelno longer return theforcesblock by default (about 5,000 to 35,000 characters on the example robots). An agent that read it now passesinclude_forces: true. The verdict, findings and counts are unchanged, and the command line's JSON still carriesforces. - The agent tools that change a lock (
add_link,add_joint,add_shape,add_param,set_dimension,attach_part,add_device,delete_part,rename) now refuseapply=truewithoutexpected_revision. Call the tool withoutapplyfirst: its reply carries therevisionto pass.review_valuewithout it only previews. - A witness that is the name of an AI assistant or model is now refused whenever anything is written, on the command line and through the agent tools: exit 2 from
add,declare,acceptandreview, exit 1 fromlockwire start, an error namingwitnessfrom an agent tool. A default witness set to such a name in your Lockwire config stopsadd,declare,acceptandreviewwhen they take the default, until you change it or pass--witnesswith a person's name.lockwire start --massdoes not take such a default: it records the computer's user name as the witness. Names already in a lock still load. - An empty
--witness ""onlockwire start MODEL --mass Xis now refused ("--witness is missing"); it used to sign with your default witness or the computer's user name. - Adding or changing a shape whose size, radius or length is zero or negative, or a moving joint whose axis is all zero, is now refused with exit 2. Before, it was written and
checkstill said GO. A lock that already holds one still opens. - Under a gate option the JSON of
lockwire checkchanges: with--baseline,verdictisGOinstead ofGO_WITH_NOTESwhen nothing is new, andheadlinechanges; with--strictor--max-not-scored,headlinechanges.countsand the findings do not change, and nothing changes without these options. - An output file named
.yamlor.ymlis now refused with exit 2 oncheck --write-baselineand on--outofexport, even when it is not a lockfile. Name it something else, for examplebaseline.json.exportinto a folder andrecord-servosalso exit 2 when the folder holds a lockfile under a name they write; they no longer write over it. - A lockfile you set read-only is no longer replaced by an edit. Commands that write it, the agent tools,
undo,redo,start --forceandinit --forcestop with one line saying to make it writable, such aschmod u+w lockwire.yaml. A script that wrote over a read-only lock before now fails. - Commands that edit a lockfile stop with one plain line when the shared lock folder in the temp directory is a link or belongs to another user; for
lockwire startthat is exit 1 where it was 0. Remove the link, or pointTMPDIRat a folder of your own. - Some words changed. Finding texts, messages and the Check page say "lockfile" where they said "contract". A finding you accepted under the old words stays accepted, and a baseline from an older version shows nothing new. The same words appear in
--jsonoutput, so a script that matches on such text must change. No option, key or file name was renamed. - The served
checkreply (the app, or a script on the engine) now says exit 2, a refusal, for a lock that is missing, garbled or from a newer Lockwire. It said 1, the NO-GO code, beside the refusal text. - A robot drawn with its legs pointing up has one more not-scored line ("standing load not checked") and fewer scored comparisons: 0.5.3 scored a standing load for such a robot and 0.5.4 does not (a test quadruped went from 22 scored to 9). Under
lockwire check --strictor--max-not-scoredthat is one more unjudged check, so a check that got through before can now exit 3. - A robot whose only warning was "joint torque limit is unset" on a fixed joint now reads GO, not GO with notes, and under
--strictexits 0 where it exited 1. An accepted row for that warning is listed as accepted but not reported; remove it.lockwire planno longer gives that warning for a step on a fixed joint either. - An MJCF model whose only unread extra is an actuator block no longer gets the "not compared" warning and reads plain GO, where it read GO with notes. Under
--strictit now ends NOT SCORED (exit 3) where it ended GO with notes (exit 1), because the gap is still listed as not scored;--max-not-scored 1lets it through. - A device's declared mass now counts at its mount point (a device with a mass and a mount frame that is a link) in tip-over, the standing-load and hold-torque lines, the wheel-slip line, the mass total and support reactions of a lock with no mass budget, Compare materials, and the plan motion chart. Numbers you have seen can move, and a verdict can change either way: a heavy device mounted out past the wheels can turn GO into NO-GO, a low one can turn NO-GO into GO. A declared mass budget keeps its own choice of what to sum. A device with no mass, or a mount frame that is not a link, changes nothing.
- The tip-over check counts a link named "castor" as a ground contact, as it already did "caster". A wheeled base spelled that way had no tip margin computed; it now gets one, and with it possibly a tip-over finding.
lockwire check-sim: a sim file that leaves a joint the lock limits free (no range, limits off,range="0 0"; revolute or prismatic joints only) now reads GO with notes, one line per joint, exit code unchanged. A script that matched the old one-line "agrees" output must change. On an MJCF file withautolimits="false", a jointrangecounts as a limit only when the joint sayslimited="true", so findings for such a file can change.- A lock that holds a declared "enforced by" on a joint limit and structural inputs recorded after it stops loading with "structural model binding does not match". Run
lockwire start MODEL --force: it keeps what you declared, removes the structural inputs and says so. Then add them again. lockwire lognow exits 2 when the newest lock's model file is missing or is a folder, ascheckdoes; 0.5.3 exited 0 and printed a verdict. An older entry whose model file can no longer be read is marked as skipped and the rest of the log prints.
Check a robot
- The rover, arm and quadruped starters now come with their robot file beside the lock, so
lockwire checkre-reads it offline. Verdicts are unchanged. The rover shows two more notes, the quadruped says its feet have no collision shape (standing load not scored), and all three say their mesh files are not compared. The humanoid starter stays a web link. - Notes printed after the verdict, for example that link values were not compared because the model's structure changed, now also appear in
lockwire check --json -(notes), the HTML report and the app's Check page. The structure finding...
v0.5.3
Lockwire 0.5.3 is the public launch release. It checks more kinds of robot, says more when it cannot check something, and the desktop app has one Assistant panel in place of two. It includes everything built since 0.5.1.
Before you upgrade
- An accepted closed-loop holding-torque finding must be accepted again: the refined search changes its pose and wording, so the old accept row no longer matches it.
- The verdict line and each finding now use a colon where they used a long dash. A failing check now prints
NO-GO: 2 violation(s), 2 warning(s), and a passing one prints for exampleGO: records agree (10 scored); 12 check(s) not scored. Anything that parses the old line, such as a script or a test, must change. The JSON output keeps every field it had and gains new ones (for examplemissing_inputs, andadvicein the counts); the verdict words and the exit codes are unchanged. The scored line is reworded (see Check a robot). Other printed output no longer uses long dashes either. - The verdict line now counts advice, a finding whose limit is not yet sourced and stays outside the verdict, for example
GO: records agree (1 scored), 1 advice (not yet sourced, outside the verdict)orGO with notes: 1 warning(s) · 1 advice (not yet sourced, outside the verdict). The verdict word and the exit code do not change, but a script that reads the line must allow the new part. - A lock that uses a per-part mass tolerance, or a robot with meshes in a sibling ROS package, cannot be read by Lockwire 0.5.1 or earlier. They stop with "unknown key" and exit 2. Upgrade every place that reads the lock (teammates, CI) first. A lock without these is unchanged.
lockwire what-ifnow exits 1 when the answer after the change is NO-GO, and prints a short before-and-after answer. For the full JSON use--json -.- A legged robot now gets a standing-load check when its feet are found, either by a collision named foot or by links named foot or toe. A robot that was GO can show more warnings (ANYmal D stays GO and shows 6 warnings instead of 3). It becomes NO-GO only when a joint is over its limit at the drawn pose with all feet down. The peak holding torque of a closed-loop joint can print higher, because the search now refines around the worst pose. A pass can become a violation.
- A model file that is a pipe or a device now refuses with exit 2 at
check,check-sim,startanddescribeinstead of hanging. A model file that exists but cannot be read refuses with exit 2. - A lock made by Lockwire 0.5.1 or earlier from an SDF file with a posed joint is a NO-GO until you re-lock it: the links below that joint now read as changed.
checksays so and prints the re-lock command. A lock of a URDF with a follower (mimic) joint should be re-locked once too. - Lockwire now needs numpy 2.4.6 or newer, where it needed 2.5.1. Nothing else about installing changes.
- The old Agent tab is gone. The side drawer has the Assistant and a Terminal. The token and dollar count and the app's own grouping of findings by cause in "Review my robot" went with it; the Assistant now groups by cause itself.
- If you ran
lockwire agent-setupwith an earlier version, your.pre-commit-config.yamlstill pins an old Lockwire that may not read new lockfiles. Change itsrev:tov0.5.3. Runninglockwire agent-setupagain names that line and the new value; it does not edit the file. - An accept written by 0.5.3 is not recognised by 0.5.1 or earlier:
lockwire checkthere reopens the finding. Upgrade every place that reads the lockfile (teammates, CI, pre-commit pins) before you accept with 0.5.3. lockwire agent-setup --claudenow writes its edit hook to.claude/settings.local.json, the settings file for this machine only, not the committed.claude/settings.json. Running it again moves a hook an earlier version left in.claude/settings.jsonand leaves the rest of that file as it was, unless that file was edited by hand: then it names the entry to delete. Add.claude/settings.local.jsonto.gitignore.
Check a robot
- Legged robots get a standing-load check: foot forces with all feet down, a diagonal pair and one leg, and joint torques over each leg's poses. Feet are found by a collision named foot or by links named foot or toe, and the warnings come grouped, one for each kind of stance.
- Each link and device can carry a mass tolerance (a percent, a plus-or-minus mass, or a min and max).
checkpasses a mass inside the band,describeshows it, anddeclarecan write it. check --massnow counts its mass comparisons on the scored line: a mass that matches the sheet adds to "add up", and one that does not adds to "do not".- The scored line adds up to its total, with a scored comparison that warns counted as "warn", and names every warning and violation outside it at its end, for example "2 other violation(s) · 1 other warning(s)". Its warnings and violations together match the verdict's counts.
lockwire start <name>takes a robot_descriptions name, for exampleur5eorgo2, and needslockwire[robots]. It copies the robot's model file and meshes into the current folder, and the lockfile holds no path from your machine. The nameslockwire catalog robotslists (such asturtlebot3-burger) are datasheet records, not models:startrefuses them and says which names work.- Witness levels print as words, for example "none named (declared, not measured)", in place of codes like
w0. - A witness name is refused when it is written if it spans more than one line, holds
<or>, or runs past 80 characters. A lock that already holds such a name still opens. - A
--notecan span more than one line, and the lockfile stays valid. --sourcemust be one line: a line break in it is refused when it is written. A lock that already holds one still opens.check --allsays how far a value is off and what limit it is held to in plain words, for example "off by +17.10 W, +114%", "1.8 times that" and "the safe current for this wire".describenames each family as "Name (id)" and says "no source recorded" where a value has none.blamenames each row in words, marks a change not yet in git "not committed yet", and outside git says in one line that no row names a commit.- Identical accepted findings print as one line with a count, for example "accepted: 6 checks (first: devices/dev.servo.left-hip-yaw/power/rail; --all lists each): ..." in the humanoid example, where 0.5.1 printed each one;
check --alland--jsonstill list each. describewrites a rail line as "rail.5v capacity: ..." where it wrote "rail rail.5v capacity: ...", and the wires table inSYSTEM.mdgets a "between" column and says the run in words ("in free air").- A lockfile that does not load names the field as a path and says what is wrong, for example
topology/rails/0/capacity is missing. lockwire agent-setuppins the pre-commit hook to the Lockwire that runs it, and names an older pin it finds without editing it.lockwire what-ifprints the verdict before and after, one row per quantity that changed, and the change you asked about.- One "what is missing" summary lists the inputs a check could not use, each with an instruction that works when followed.
- Meshes in a sibling ROS package are recorded and compared, and a mesh that cannot be found says which folder layout it expected.
- A payload that no joint's holding torque carries gets one note line.
- Closed-loop mechanisms: the worst pose is found by refining the grid,
check --alllists every pose that got no number with a reason, and every limit of the support refuses in plain words, with a guide. check-simhonours a part's mass tolerance.add battery --chemistryrecords the chemistry in the lock. A value that is not li-ion, lipo, lifepo4, nimh or lead-acid is refused.export --format urdfwrites a recorded mimic relation and names revolute and prismatic joints that have no effort or velocity limits.- The brown-out check reads wire resistance without copying the parts catalog many times, so it runs faster.
- The edit hook uses a
lockwireonly if it runs, so a stale launcher left by an old install is skipped for the next one that works. - The parts catalog has the Espressif ESP32-DevKitC (
espressif.esp32-devkitc), with its 5 V supply and minimum supply current from Espressif's own documents;catalog parts esp32andadd device --partfind it. - One word for a check that had nothing to compare: "not scored".
checkheads its list "Not scored (N):" where it printed "Not compared yet (N):", andcheck-sim, the CI job summary,--format githuband the HTML report say "not scored" too. lockwire what-ifno longer needs--witness: a what-if writes nothing. A name you do give is still checked.
Reports
- The exported PDF is a real report: the verdict and counts, the findings with their fixes, what is not scored, and no machine path. It used to hold only the wiring drawing and the connection graph.
--redact-pathsleaves no folder or user name in a shared report, including encoded paths.- The report's Power tab is left out when the robot declares no power.
lockwire reportwith no--outwrites<lockfile name>-report.htmlbeside the lockfile and says whether it wrote or replaced it.- (Pro) File, Export has plate drawings in SVG and DXF.
The Assistant
- One panel. It shows the check's verdict with a count of violations, a list of findings with a button to show each on the robot, and one Apply button. Answers are plain text.
- It reaches much more of the engine: part swap, catalog search, the parts-list matcher, system and device descriptions, the robot graph, and files inside the robot's folder (a PDF is read as a document).
- The verdict it quotes is the engine's, asked fresh every turn, or "unknown". Numbers that no tool returned are marked.
- Every proposal card shows the engine's before and after. You press Apply to write. If the m...
v0.5.1
The desktop app's look, redone. The command line and every check are the same as 0.5.0.
The app
- The robot view has real cast shadows, crease lines on every part, a floor grid in round steps that fades with distance, and neutral studio light. Labels are small tags pinned to the robot.
- The verdict is one decisive status with a mark and the count. An open finding is one card: the measurement first, the fix under it, the exact finding behind a fold.
- One top bar. Panels are glass over the 3D view, and tools are grey so the selected mode and the one main button stand out.
- The start card leads with the example built to show a catch, and every example carries a mark for what its check finds.
- Command box on Cmd+K (Ctrl+K off the Mac): jump to any mode, fit the view, open the panels, switch theme.
- The View menu shows what is on with a tick, lines its keys up on the right and groups its rows. Units are two small switches.
- Plan, Declare, Docs and the data drawer (Power, Wiring, Parts, Overlaps) are tidied: sections, marked rows, a what-if slider with its own track, a drawn power tree.
- A file that will not open gets one clear message above the start card.
- On a machine with no graphics card (a virtual machine, a remote desktop) the app keeps its speed: shadows, studio light, crease lines and blur switch off there.
Fixed
- The keyboard focus highlight is drawn inside every control. It used to sit outside and get cut off by panels, lists and the tab bar.
v0.5.0
Get your robot in
lockwire check robot.wbtreads Webots robots (.wbt, .proto), and Webots files get the same model checks as a URDF.- Webots files work in the edit hook and the MCP tools; the 3D scene says plainly that it needs a URDF, SDF or xacro model.
- A lock started from a MuJoCo model (
model.xml) gets structure drift, sanity checks and a mass, centre of mass and inertia comparison like a URDF;checksays when MuJoCo works out the mass itself and names what is not compared (joint anchors, sites, cameras, lights). Bodies, joints and inertials inside a<frame>are read as MuJoCo reads them; a frame rotated withaxisangle,xyaxesorzaxisis refused. - Big robot models are no longer drawn with holes: models up to two million triangles are shown whole, larger ones are simplified per part and the view says so ('Checks use the full model').
lockwire add link LOCK --name N --mesh PATH --scale mm|m|NUMBERimports an STL or DAE part. The unit is required and never guessed; the mesh lives inside the lockfile's folder and the lockfile keeps the scale.- Design a robot from an empty folder:
lockwire start --blank, thenadd link --shape --materialandadd joint --origin. lockwire rename KIND OLD NEWrenames a part and every reference to it in one write.- The README's first run checks your own robot file in one command, then a small example arm with power and wiring reaches a real catch.
Checks
- Joint limits that disagree between URDF, MJCF and SDF versions of the same robot are reported.
check --compare-to <base lockfile>lists only the checks whose verdict changed, as GitHub annotations with--format github.check --format csvor--format tsvwrites the findings as a table, and--quietprints only the verdict line (the exit code is unchanged).lockwire checkruns every declared variant of a lockfile and exits with the worst result.- Identical findings and not-compared reasons collapse into one line with a count (like '12 checks: velocity limit ...'), in the text output of
checkandreporttoo. - When
--strictchanges the result,checkprints the new word (NOT SCORED or NO-GO) with "under --strict"; exit codes are unchanged. lockwire check --plan PATHchecks hold torque at each Plan pose.lockwire planwarns which tip targets (requirements[].reach_m) the arm cannot reach and by how much.lockwire planwarns when a segment's duration is shorter than the joints' velocity and acceleration limits allow.- Check shows a bar of each value against its limit, and the saved report carries the same bars.
- In Declare, a changed number previews the verdict a moment after you stop typing, without saving.
- Overlaps panel finds parts that overlap or sit too close, also through each joint's range; pairs you have ignored stay quiet.
- Wire drop and connector heat are checked from the parts catalog.
- Thin wires are checked too: wires of gauges the NEC table lacks (such as 28 AWG) are compared with the published chassis-wiring rating and warn when overloaded; the arm-power example ships with that warning on its 28 AWG servo feed.
- A zero or negative rail limit, rail voltage, battery voltage or battery mass is reported in one plain line instead of crashing check; tip margin says why it was not computed.
- Deleting a part removes it with its joint, and a floating part that has mass is a warning.
- Finding titles in the app state the catch with both numbers (for example the brownout, the fuse, the drifted mass).
- The app says so when a GO has nothing physical compared, and what to do next.
- SDF robots get the same no-inertia warning as URDF robots, because the check now reads each link's mass and inertia from the SDF.
Power
- Battery sag is worked out from the pack's own voltage curve and resistance, including the cold case, and warns when a rail would drop below its minimum near empty.
- Build a battery pack from a cell (series x parallel: voltage, Ah, mass, max current) and warn when a timed plan needs more energy than the pack holds after its reserve.
- A Power panel lists each rail's volts, amps, efficiency and heat lost, plus light, typical and worst-case load per rail, parts against their ratings, and the battery pack.
- Power budget: light, typical and max load per rail, with a CSV load list (Plan duty when given).
- Stress list: each catalog-linked part's current, voltage and junction rise as a share of its own rating; over-rating warns, 80 to 100% is advice.
Controls
- Each motor is checked for Kv versus Kt agreement, encoder rate against top speed, and wheeled bases for tyre slip, as warnings only and only when the fields are present.
- Controls panel shows each motor's card with efficiency and speed curves, and each joint's step response from declared gains, rotor inertia and gear ratio.
- Phase margin, crossover against loop rate (with half-sample delay) and step effort against stall torque, as advice.
Wiring
- A Wiring panel draws each board with its pins and every wire, lights up a pin's whole net, shows a pin card per board (CSV export), and lets you click two pins to add a wire.
- While wiring, a wire that would short a supply to ground is flagged before it is saved.
- Pin rules: voltage-level mismatch, 5 V into 3.3 V inputs, output-to-output (also across several wires), per-pin and per-board current from 12 board pin cards. A power input pin is judged against its own voltage range, not the card's signal limit, so 5 V into an ESP32 5V pin no longer warns (a GPIO pin at 5 V still does).
- The saved report gains a printable wiring build sheet with a clickable diagram.
lockwire describeshows the bus address map.lockwire addtakes rail--dropout/--min-input/--regulator-kind, bus--length/--twisted, battery--cells-parallel/--reserve, with units;add wire --awg --installation --length --net-class --connector --from --to;add connector --device --type [--placement]names pins from the connector type.- A wire with no gauge prints no gauge; a pin-to-pin signal wire may omit its gauge and installation, but a wire naming a rail still needs them.
- Connector types ship in the lockfile shape with cited pin orders, including SparkFun's 226 mA Qwiic limit.
CAD and parts
- Add a box, cylinder or sphere sized by a named dimension; change the size in the app and the link and the torque check follow.
- A joint origin or shape dimension may name a declared param; an undeclared estimated link with geometry and a material gets its mass and centre of mass from its volume (in memory only).
- A mass Lockwire works out from shapes says so and names its density source.
- The material picker shows where each density comes from, and printed plastics note that infill changes the real density.
lockwire materials compare PATH --link NAMEshows the link's mass, the robot's mass and the worst torque margin in every library material.- Design shows total mass, centre of mass and inertia with a marker in 3D, and a placement shows roll, pitch and yaw.
- In Design, joints are coloured by how much torque they have to spare, with the number beside each, and the support polygon is drawn.
- In Design, type G, an axis and a number to move the selected part that many millimetres; Move and Rotate work from where the part is.
- Optional
groups,patterns(add pattern,add duplicate),variants,topology.belts(add belt) and stock shapes in the lockfile. - Two example robots with resizable parts: a rover and a hexapod (18 ST3215 servos from the library) with masses from cited aluminium density.
- Catalog parts now name their maker, and the Feetech ST3215, STS3215, Here3+ and PM02 V3 masses cite the maker's own page.
- A Parts list panel lists parts, power rails and data buses, and saves as CSV; the parts-list export gains a Maker column.
lockwire catalog partsbrowses the parts library;lockwire add device --part <id>adds a catalog part with no numbers typed.- The MCP
list_partstool lists the catalog's stock shapes after the parts, each with its recipe, dimensions, whether it takes named dimensions and how its mass is worked out.
Export
lockwire export <lockfile> --format urdf|sdf|mjcfwrites the model (never over your source;--forceto overwrite);--format mjcfsays its checks are narrower.lockwire export --format stl|obj|daewrites meshes (--units mmfor millimetres); STEP says plainly it is not built.lockwire export --format bomwrites a parts list (CSV), with weights from the catalog on an exact match, a note that compares the listed weight with the model's, and a notes column on each row: no cited mass, mass from an unverified catalog entry, and listed twice (merge into one row with qty 2);--format budget [--plan]writes the power budget CSV.- SDF export keeps continuous joints as continuous.
- MuJoCo export derives a part's inertia from its shapes when mass is declared but no inertia is.
- The parts list counts a battery pack once when the pack and its source device both name it.
App
- A real application menu: File gets Open Recent, Save a Copy and an Export submenu (now with Report (PDF)), Edit gets Undo and Redo, View gets zoom, full screen and light/dark, Help links to the shortcuts, docs and About.
- Open robot and drag-and-drop take MuJoCo (.xml, .mjcf) and Webots (.wbt, .proto) files; a Webots file shows its check result and says it has no 3D view.
- Opening a robot shows it in 3D while the check runs.
- Free edits and saves no longer ask for your name and record none unless you save one; the Declare form keeps its Checked by field.
- Print this part on a selected link exports its STL in millimetres and opens it, and says why it is disabled when the link has no shape.
- The start screen has a quiet 'Ask the Agent to design one' that opens a blank robot and the Agent tab.
- One Panels button opens every side panel; panels without data for your robot stay hidden. T...
v0.2.8
lockwire check model.xmlnow reads MuJoCo MJCF models (masses, joints, ranges) instead of refusing them, and says what it did not compare (like actuators and meshes).lockwire checknow notes when two neighbouring joints of one limb that share a name prefix (likehead_yawandhead_pitch) have efforts 20 or more times apart, since one may be a typo.lockwire checknow warns when a left/right pair of joints or links in one model differs by more than 10% in effort, velocity, mass or inertia (like a hip whose inertia is 25% off its twin).lockwire checknow warns when a link carries the same inertial as the link it is fixed to (like a thigh guard that copies the thigh), because its mass is counted twice.lockwire checknow warns when a continuous joint sits in the middle of a limited leg chain (like a thigh with no position limit between hip and calf); wheels and turntables are left alone.- The robot catalog now recognises Unitree Go2-W, B2, B2-W, B1 and Aliengo and checks mass (and joint torque where Unitree publishes it) against the maker's page.
lockwire check robot.urdf --payload '2 kg' --at <link>checks gravity with that load on that link, without editing a lockfile.lockwire check robot.urdf --torque 'knee=120 N*m' --source <url>compares that joint's URDF effort limit with the torque on the maker's page and warns when it is more than 10% off. Repeat--torquefor more joints.lockwire check <robot> --lock <path>on a path that already exists still refuses, but now says to runlockwire check <path>to check against it, or pick a new name.lockwire checkno longer warns about velocity limits on a mimic follower joint (like a gripper finger); it still warns when the mimic target is missing.--model unitree-go2now warns when the URDF's largest joint effort is more than 10% off the maker's published max joint torque (about 45 N·m).lockwire checkon a xacro model now resolves$(find pkg)from the model's own checkout (no ROS needed) instead of exiting 2.lockwire difftakes two robot files (URDF, xacro, SDF): it lists the mass and the changed limits, and pairs left/right joints.lockwire servewithout the serve extra now says to runpip install "lockwire[serve]".lockwire plansays its rail total includes the plan's own added loads, so it can read higher thancheck.- xacro
$(find pkg)without a git folder no longer searches above the model's own workspace.
v0.2.7
Fixed:
pip install lockwireworks again on a clean install: 0.2.6 pulled in typer 0.29, which broke the command line. Lockwire now asks for typer below 0.29, and also below the next major of pydantic, ruamel-yaml and mcp, so a new major cannot break a clean install.lockwire checkno longer crashes on a Windows console that can't print symbols like Δ; characters the console can't show print as?.python -m lockwiregets the same fix.- A 0.5 lockfile gets the full structure comparison again, so a changed joint axis is NO-GO. Only 0.2 to 0.4 lockfiles skip it.
- A swap (
lockwire swap --use) no longer changes the lockfile's version line, so a swapped 0.5 file still opens in 0.2.6. lockwire upgradeon a file with Windows (CRLF) line endings changes one line, the version, and keeps the line endings.- A private part in
~/.lockwire/parts.yamlis refused unless its torque is in Nm and its voltage in V, and every private-parts error names the entry and the field. The kgcm conversion hint appears only for a torque. The same unit check now applies to any parts file you pass with--catalog, and a mass must be in kg or g. - Part Swap flags a servo whose highest voltage is below your supply, or that is on a different bus, and ranks a servo whose voltage range does not cover your supply below the rest, then a different bus below the same bus. It now uses the supply voltage your lockfile declares (the rail of the device that drives the joint, or the only rail with a voltage) and says which supply it used, instead of always assuming the current servo's maximum.
lockwire record-servosrefuses a rate of 0 or below, keeps the samples it read if the bus drops mid-recording, and defaults Dynamixel to its factory 57600 baud. It also refuses a reversed--idsrange (such as 6-1) and the broadcast ID 254 before opening the port, and no longer leaves an empty output folder when no servo answers.lockwire plan --json -now prints only JSON on stdout.lockwire benchwithout the source repo's corpus says the corpus ships only in the source repo and to pass your own with--corpus, instead of a vague "file not found".checkandstartsay "file not found" with the path when a model path is mistyped or missing.- The servo hint no longer points at a lockfile that does not exist.
lockwire check --servo <id>on a lockfile with noservo:line prints the line to add to keep that servo.- The model-value checks read the model file next to your lockfile only, never a same-named file in the folder you happen to be in.
- Lockwire reads and writes its own text files as UTF-8, so the bundled parts data and your lockfiles work on machines whose locale is not UTF-8.
agent-setuprun throughuvxwrites a hook that callslockwire(oruvx lockwire) instead of a Python path inside uv's cache that disappears.- The datasheet mass row sums the model file as it is now, not the masses that were locked.
lockwire mcpprints an install command that works outside the repo.- The refusal message for importing a manifest no longer says it waits for a vendor to publish a standard.
lockwire start --examplewrites format 0.6 lockfiles, and the example file is otherwise copied exactly as shipped: only the version line changes.- Typing a Pro command name in the free package prints the waitlist line.
lockwire checkon a lockfile refuses--mass,--source,--witness,--xacro-argand--lockin one line instead of silently ignoring them.lockwire check --json -sends every error to stderr, so stdout stays pure JSON.- The "scored N" line adds up: accepted counts only scored findings that did not pass.
- A YAML syntax error in a lockfile prints one line naming the file, line and column.
lockwire starton a missing file exits 2, likecheck.check .says it is a folder,start x.yamlsays it is not a model file, andswapon an unknown joint lists the joints.- A lock started from a
.xacrois compared again oncheck: the model is expanded the same waystartexpanded it, so a mass edit is NO-GO instead of passing. lockwire start --xacro-arg name=valueis recorded in the lockfile (xacro_args, optional, so older lockfiles still load) andcheckreplays it when it re-expands the model. The re-lock hint in a finding repeats those--xacro-argflags.check robot.urdfwith no lockfile finds meshes beside the model, not in a temp folder.- A broken model gets a NO-GO that names the joint or link instead of a warning or a crash: a NaN or negative mass, a negative inertia, reversed joint limits, a kinematic loop or more than one root link, and a mimic joint that follows a missing joint. A file with no links or a link with an empty name is refused in one line.
- Odd public URDFs get a verdict, never a crash: a negative velocity limit, or a limit of
infor 1.8e308, is read as not stated with one warning per joint. - A joint that names a missing link, or a duplicate link or joint name, is a NO-GO in
checkand a one-line refusal instart. - A comma decimal such as
0,5in a model prints one line naming the file, link and attribute. - Every plain model load error names the file as you typed it, not its resolved absolute path.
- The MCP
check_modeltool andlockwire check --json -now give the same verdict and exit code as the command line, including warnings from the model loader and duplicate or missing links. - MCP tools print the CLI's plain line for a file error instead of raw OS error text, and say "is a folder" or "is a robot model, not a lockfile; use
check_model" when given the wrong path. compare_proposalrefusals name its own arguments (witness and change), not CLI flags.- Edit refusals name your lockfile, never the temporary file used to stage the edit.
- A looping or dangling symlink as a model path says so instead of "file not found".
- The refusal for an XML file with a DOCTYPE says XML, not URDF, so an SDF is not called a URDF.
- A rail
capacityof 0 or below is refused ("must be greater than 0"). - A failed
lockwire startleaves no new lockfile behind, and a failedstart --forceleaves the old lockfile untouched. --massmust be a positive mass and--tolerance-pct0 or more. A bare--xacro-arg wordis refused in one line instead of being dropped.- A typed
--massthat breaks the limit no longer hints a re-run with the catalog figure. lockwire swapon a missing path prints one plain line, andswap --userepeats the new servo's warnings (such as "different bus") as the last line.- Cloning a robot by name no longer fills a pipe with download progress bars.
- The check hook no longer prints the
--forcere-lock command; it says the model changed and needs a person's review. - Gravity reach: a slide joint that no transmission names is treated as passive and not compared.
- Gravity reach: an over-effort joint behind a transmission with a reduction above 1 warns that its effort limit may be motor-side, instead of failing.
- Mass budget: a link with no
<inertial>counts as a 0 kg frame, so the total mass is scored, and the output names those links. - A link with mass and an all-zero inertia tensor is a NO-GO that names the link.
- A link whose inertia is too small for its mass (smaller than a solid ball of the densest metal at that mass) gets a warning.
- A moving joint with a velocity limit of 0 gets a warning.
--catalogpointed at a file that is not a parts catalog says so in one line and exits 2, instead of a YAML error.- Text and JSON verdicts now agree on a model file with nothing compared: NOT SCORED, exit 3.
- Unwritable folders, missing files, files that are not lockfiles,
--mass abcand other non-number values print one plain line instead of a Python error. - A zero or negative charger or cutoff value is refused.
- The app's unreadable-file screen offers "Open a different robot".
- The datasheet badge says "accepted difference (mass)", in grey, after
lockwire acceptinstead of a green "matches".
New:
- Part Swap:
lockwire swap lockwire.yaml wristranks catalog servos for a joint by its gravity load and shows what each swap does to the joints above it. It only shows by default;--use <servo>writes the change. The MCP server has a matchingswaptool, and the desktop app has a Swap panel with the same preview and apply. A servo whose stall torque is rated at a higher voltage than your supply is flagged and ranked after same-supply servos. - A cited servo parts list: the catalog gains servo mass, voltage range, bus and stall torque for Part Swap (five new rows, five filled in). Every part is labelled cited (all numbers from the maker's datasheet, each with its URL) or unverified, and the label is worked out from the numbers.
- Private parts: put your own parts in
~/.lockwire/parts.yamland they stay on your machine. A broken parts file stops the command with one plain line naming the file. - Servo recorders:
lockwire record-servosrecords the stored settings and live readings (position, goal position, speed, load, voltage, temperature, gains) of Feetech STS/SCS or Dynamixel X servos on a serial bus (pip install 'lockwire[bus]',--kind dxlfor Dynamixel). Read-only: it sends only ping and read packets and never writes a register. Tested on recorded bytes, not yet on a live bus by us. - servo-bench, the bundled example, gains a 3-joint arm whose wrist servo is built to fail the servo check.
- Guides for the parts list, part swap and the servo recorder in
docs/guides/. - Six checks beyond mass and power, each run only when you declare its lines: charger setpoint, float mode and charge current against the pack's chemistry (
charger_voltage,charger_current,charger_float); low-voltage cutoff against the chemistry's lowest safe cell voltage (cutoff_voltage); rail current against the connector's maker-rated current (connector: xt60orjst-xh); threadlocker declared on a 3D-printed part (...
v0.2.5
v0.2.4
v0.2.3
Lockwire 0.2.0
The app's planning half is now free.
- A desktop app for planning a robot before it is powered: Open a robot description, Design it,
Declare what it must hold, Plan changes, and Check them against the contract. The first run
needs no setup beyond opening your robot. - Downloads for macOS (Apple silicon, unsigned) and Linux (x64 AppImage), plus the source to
build them. Windows follows. - The local server behind the app (
lockwire serve) and the generated types (lockwire api-types,
lockwire api-schema) are part of the free package. - A CI job that packages the Linux app and drives it end to end.
Lockwire Pro keeps the powered preflight gate, recording analysis and health.