{"slug": "robots-liquids-cloth-and-sand-in-one-scene-an-open-source-engine-for-robot", "title": "Robots, liquids, cloth and sand in one scene: an open-source engine for robot learning", "summary": "The Alloy project released an open-source (Apache-2.0) physics engine for robot learning that simulates rigid bodies, cloth, granular materials and liquids in a single scene, built on MuJoCo Warp and Newton. Each object is routed to a solver by material — MuJoCo Warp for robots and rigid bodies, Newton's VBD for cloth, Newton's implicit MPM for sand and pastes, and Alloy's own DFSPH solver for liquids — with cross-solver contact in one world. The engine ships an MCP server so agents like Claude Code can build and run scenes, and is installable via pip for Python 3.11 or 3.12.", "body_md": "Many of the tasks we want robots to learn mix materials: pouring water into a glass, folding a towel, scooping sand, routing a cable. In simulation those materials usually live in different tools, so a policy that has to pour *and* grasp ends up stitched across engines, or the liquid gets left out.\n\n[Alloy](https://github.com/argonrobotics-ai/alloy) is an open-source (Apache-2.0) physics engine for robot learning that puts them in one scene. The paper is on arXiv: [Alloy: A Multi-Material Physics Engine for Robot Learning](https://arxiv.org/abs/2611.16312).\n\nAlloy is built on MuJoCo Warp and Newton and picks a solver for each object from its material:\n\n| Object | Solver | \n|---|---|\n| Robots and rigid bodies | MuJoCo Warp (MuJoCo C on the CPU) | \n| Cloth and soft bodies | Newton's VBD solver | \n| Sand, granular material and pastes | Newton's implicit MPM solver | \n| Liquids | Alloy's own DFSPH solver | \n\nObjects from different solvers touch each other in the same scene. `sim.routes()` tells you which solver each object got. Here an MJCF arm sits beside a tub of water and a tray of sand:\n\n``` python\nimport alloy\n\nARM = \"\"\"<mujoco><compiler angle=\"radian\"/><worldbody><body name=\"link1\" pos=\"0 0 0.1\">\n  <joint name=\"shoulder\" type=\"hinge\" axis=\"0 1 0\" range=\"-2 2\" damping=\"2\"/>\n  <geom type=\"capsule\" fromto=\"0 0 0 0.3 0 0\" size=\"0.02\" mass=\"1\"/>\n  </body></worldbody>\n  <actuator><position joint=\"shoulder\" kp=\"200\" kv=\"10\"/></actuator></mujoco>\"\"\"\n\nscene = alloy.Scene(dt=0.01)\nscene.add_ground()\nscene.add_robot(\"arm\", mjcf=ARM, pos=(0, 0, 0.1))\nscene.add_open_box(\"tub\", inner=(0.08, 0.08, 0.05), wall=0.01, pos=(0.5, 0, 0))\nscene.add_liquid(\"water\", size=(0.064, 0.064, 0.024), pos=(0.5, 0, 0.024))\nscene.add_open_box(\"tray\", inner=(0.1, 0.1, 0.05), wall=0.01, pos=(0.5, 0.4, 0))\nscene.add_box(\"sand\", size=(0.06, 0.06, 0.03), pos=(0.5, 0.4, 0.03), material=\"sand_silica_dry\")\nsim = alloy.build(scene, device=\"cpu\")\nprint({n: sim.routes()[n][\"solver\"] for n in (\"arm\", \"water\", \"sand\")})\nsim.run(0.3, targets={\"shoulder\": (0.0, 0.3)})\nprint(sim.state(world=0)[\"arm/shoulder.q\"].round(2), sim.check()[\"ok\"])\n{'arm': 'mujoco', 'water': 'sph', 'sand': 'mpm'}\n0.25 True\n```\n\nThe MJCF string is the robot; a robot file such as a Franka loads the same way with `add_robot`. `sim.check()` grades the world, so you can catch a simulation that blew up instead of training on it.\n\nAlloy ships an MCP server, so an agent such as Claude Code can build and run scenes itself:\n\n```\npip install alloy-engine\nclaude mcp add alloy -- alloy mcp\n```\n\n`pip install alloy-engine` (Python 3.11 or 3.12)", "url": "https://wpnews.pro/news/robots-liquids-cloth-and-sand-in-one-scene-an-open-source-engine-for-robot", "canonical_source": "https://dev.to/pranay_argon/robots-liquids-cloth-and-sand-in-one-scene-an-open-source-engine-for-robot-learning-1n9o", "published_at": "2026-11-16 04:19:24+00:00", "updated_at": "2026-11-16 04:21:02.222672+00:00", "lang": "en", "topics": ["robotics", "ai-research", "ai-tools", "agent-protocols", "developer-tools"], "entities": ["Alloy", "MuJoCo Warp", "Newton", "Claude Code", "arXiv", "argonrobotics-ai"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/robots-liquids-cloth-and-sand-in-one-scene-an-open-source-engine-for-robot", "markdown": "https://wpnews.pro/news/robots-liquids-cloth-and-sand-in-one-scene-an-open-source-engine-for-robot.md", "text": "https://wpnews.pro/news/robots-liquids-cloth-and-sand-in-one-scene-an-open-source-engine-for-robot.txt", "jsonld": "https://wpnews.pro/news/robots-liquids-cloth-and-sand-in-one-scene-an-open-source-engine-for-robot.jsonld"}}