Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

robot-simulation

БесплатноБез исполняемых скриптовНе проверен

Writes and reviews robot and world descriptions (URDF, SRDF, MJCF) for ROS, MoveIt and MuJoCo. Use to generate a robot description or a MuJoCo scene from a…

earthtojakeот earthtojake★ 27 943 звезды на GitHub

Об этом скилле

Robots and worlds for simulation and motion planning

A robot is described for its consumers in XML: a URDF for its structure (ROS, RViz, robot_state_publisher), an SRDF beside it for MoveIt's planning semantics, and an MJCF for MuJoCo. There are two routes to one:

  • Generate it from CAD. A text-to-cad model that holds the mechanism, materials and named frames is the source of truth: cad model export writes the URDF or MJCF, with frames, limits, masses, inertias and meshes exact from the kernel. The file is regenerated, never edited.
  • Author it by hand. A robot with no CAD model here, an SRDF (always), a MuJoCo scene, or a file that already exists: the XML is the source of truth. The risk is not XML syntax but frames, axis signs, units, mesh scale, inertials and planning semantics: a file can pass every check and still place a joint in the wrong spot.

Start with the task

Task Start with Reference
A URDF or MJCF from a CAD model The model's declarations, then cad model export <id> robot.xml or .urdf Generate from CAD, from CAD
Collision shapes, joint dynamics, actuators for MuJoCo A MuJoCo function, run with cad run The MuJoCo function, MuJoCo environment
A robot from a vendor's STEP Read it, group parts into links, find each axis, declare, export From a vendor STEP
A MuJoCo scene: several robots, objects, a world spec() for each piece, composed with MuJoCo's own MjSpec MuJoCo environment
Tune a MuJoCo model's physics cad mujoco check's model-health findings, one parameter at a time Tuning, MJCF checks
A URDF by hand The .urdf and its ledger, then cad urdf validate Authoring (frames and signs, the ledger), checks
MoveIt groups, end effectors, states, collision pairs A .srdf beside the URDF, then cad srdf validate Authoring (end effectors, disabled collisions, the ledger), checks
An MJCF by hand robot.xml and a scene.xml that includes it, then cad mujoco check Authoring, checks
Link meshes for a hand-written file One mesh per link, in the link's frame Meshes
Mass, centre of mass, inertia Materials on the CAD parts; else a formula or a script, never intuition Inertials
A four-bar in the viewer <tcad:four_bar> on the derived URDF joint Four-bar
See the robot or a pose cad urdf snapshot, cad srdf snapshot; an MJCF in MuJoCo Studio Snapshots
Work across formats, or convert a URDF to MJCF Which file owns what Interoperability

Setup

Written for cad==0.11.21. Before first use in a chat, run cad --version. If it fails, or cad is missing or older than 0.11.12, run uv tool install --force cad. If it is older than the release this skill was written for, run cad update.

If cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin: https://github.com/earthtojake/text-to-cad A project written for an earlier version may need changes; the migration guides say what: https://github.com/earthtojake/text-to-cad/tree/main/docs/migrations

MuJoCo (cad mujoco check, cad run mujoco-studio, a script that imports mujoco) and CoACD (decompose()) are fetched by cad the first time they are needed, about 20 MB and 4 MB; nothing to install. cad <command> --help is the complete, current interface.

Generate from CAD

The model says what is true of the machine, in its body (the cad skill's kinematics reference covers the mechanism itself), and the export writes each format from it:

In the model Says Written as
build123d joints, connected Links, joints, and each joint's range around the as-built pose, which is zero Bodies and joints; links and joints
mechanism_state(...) Named poses; name one home MJCF keys (URDF has none)
gear_pair, rack_and_pinion_pair A follower joint on its leader <equality><joint>; <mimic>
part.material, mass(), point_mass() Density, a measured total, a lump the CAD leaves out Exact <inertial>s
frame(part, name, location) A tool point, a mount, a sensor A site; an empty link
body(part, name) A part kept as its own body A child body; a link on a fixed joint
limits(assembly, joint, effort=, velocity=) The drive's datasheet limits actuatorfrcrange; <limit>
`
Полный SKILL.md на GitHub

Установить robot-simulation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSEagents/openai.yamlreferences/from-a-vendor-step.mdreferences/from-cad.mdreferences/guardrails.mdreferences/inertials.mdreferences/interoperability.mdreferences/meshes.mdreferences/mjcf-authoring.mdreferences/mjcf-checks.mdreferences/mujoco-environment.mdreferences/snapshots.mdreferences/srdf-authoring.mdreferences/srdf-checks.mdreferences/urdf-authoring.mdreferences/urdf-checks.mdreferences/urdf-four-bar.md

FAQ

Что делает скилл robot-simulation?

Writes and reviews robot and world descriptions (URDF, SRDF, MJCF) for ROS, MoveIt and MuJoCo. Use to generate a robot description or a MuJoCo scene from a CAD model's joints, or to write, edit or check a .urdf, .srdf or MJCF .xml by hand. Not for the CAD part itself, which the cad skill makes, and it runs no simulation.

Как установить скилл robot-simulation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл robot-simulation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить robot-simulation с