r/mujoco • • Mar 10 '25

Onshape-to-robot new release: now natively supporting MuJoCo

6 Upvotes

r/mujoco • • Sep 06 '26

Cubic Doggo Update: ROS2 bridge to MuJoCo

4 Upvotes

r/mujoco • • Aug 15 '26

Pluggybot: Multifunctional robot sim with automatic tool changing

Thumbnail
gallery
4 Upvotes

Hey! This is a MuJoCo side project I've been working on for a while, with the plan to eventually make it with hardware. Each part is (or will be) documented to a planned hardware part (mounting brackets aren't rendered, which is why some things are floating).

The idea is that the main chassis is the most expensive part (wheels + motors + RPi + Lidar + mast, lift, telescoping arm and two cameras). But we want a robot that can do multiple specialized skills. So, the arm has swappable, modular tools that are powered by contacts with the robot, but controlled via an esp32 + wifi connection with the main RPi.

The demo shows two of these tools: a drawing tool, and a picking-up tool. The robot can recognize the rack + the specific tools using AprilTags. The drawing tool doesn't leave ink in the video because rendering it is difficult, but you can see the result in the 3rd picture. Videos are sped up: true time shown in the upper corner.

Repo: https://github.com/benholland1024/pluggybot

I'm a full stack webdev in my day job, so this was a chance to improve my Python. Full disclosure, Claude is used heavily in this project, though I also often write code.

The project has a lot of other features planned, but I wanted to show off the modular tool rack + automatic tool changing specifically, here. The robot can also do occupancy mapping using lidar + dead reckoning, frontier exploration with A* path planning, and some image recognition using Yolo (the image recognition was for finding power outlets on a wall, for a "plug itself in" tool)


r/mujoco • • Feb 17 '26

I'm using MuJoCo as the solver in AR Mobile Robotics, want to give it a try?

3 Upvotes

I've been working in my spare time on a URDF-editor and robotics simulation app for iPhone, which I call ARMOR, which is getting close to full release. I'm looking for beta testers, check out the landing page on my website if you are interested (scroll to the form on the bottom).

https://dc-engineer.com/armor/

Building the MuJoCo solver into the app has been a game changer, as it goes from being a simple URDF file editor (though, on iOS, that alone is unique), to being a powerful simulation tool, with results that exactly match if you were to run the same model on your desktop. I plan to add in controls (and training) as well, so my humanoid doesn't just collapse to the ground like this one, as well as other useful features like cloud storage and sharing.

I hope you'll give it a try, MuJoCo fans!


r/mujoco • • Jun 06 '24

what are the system specifications needed to run mujoco

3 Upvotes

I am a complete beginner. I wanna do grasping and grasplanning simulations on here using rl. I have a 16gb ram laptop. will this be enough to run mujoco on my system? Thankyou


r/mujoco • • Jun 04 '23

Python Tutorials

3 Upvotes

Hi, I'm a control engineer and I'm new in mujoco, I'm trying to understand the logic of this physics engine and trying to implement a simulation with python

I've managed to understand the real basic principles,(more than basic).

You know any tutorial on this engine?

My objective in the end is to simulate satellite randezvous

Is also there the possibility of implementing custom dynamics? Without the need of assigning qpos and qvel each step?

Thanks!


r/mujoco • • 17d ago

Open-source MuJoCo benchmark for chemical-plant valves

2 Upvotes

Hi folks! Before diving into robotics simulation, I worked around chemical process plants—including a chemical wastewater pilot overflow and chemical gas leaking flanges left operators with permanent burn marks. Inspection robots can already spot leaks, but someone still has to walk in and turn the manual isolation valve.

Therefore, we’re building Rusty Valve (https://github.com/rusty-valve/rusty-valve) to train field robots on manual valve operation in hazardous chemical plants. We just released v0 with standalone valve stations, a strict <=20N collision grader, and LeRobot datasets.

Next up is a virtual asset library of standard plant components (valves, flanges, pipe racks) with accurate mechanical parameters. Always happy to chat about sim-to-real contact physics and procedural scenes!


r/mujoco • • Oct 20 '26

Ever had a MuJoCo distance query return 0 at 7 cm apart? It nearly let a bad VLN path pass my safety gate (Microduck + LightNav-0)

2 Upvotes

Sharing a MuJoCo setup in case it's useful to people working on biped locomotion sims.

I'm running the Microduck sim with its official assets (MJCF from microduck_rl) at 200 Hz, and streaming 4 Hz first-person frames into LightNav-0, an open VLN model, for path prediction on a Jetson AGX Orin 32GB. The predicted path goes through MPC into velocity commands, and the duck's official ONNX gait policy (~50 Hz, CPU) does the stepping. RTF stays ≈ 1 with everything on one box.

One gotcha worth sharing here: we saw MuJoCo's distance query return 0 for a pair of geoms that were still ~7.3 cm apart near a doorframe, which would have let a safety gate pass a bad path (looks like an upstream issue, mujoco #3383). If you gate anything on distance queries, test your margins.

It's a sim dev preview version. This is heading into the VLN module of our open mobile robot course :Mobile Robot Full-Stack Development .
If you are interested, please give me a "start" to show your support. This will be a great motivation for our creative process.


r/mujoco • • Sep 18 '26

cannot get mujoco to load a xml file in cmake c++ executable

2 Upvotes

hello i am trying to learn to use mujoco in c++ instead of python because i like c++.After a long time i could get it to build in cmake.but when i execute the code to load the model and simulate the error:

`WARNING: Model missing header ID`. i tried what i could but i do not know what i did wrong. The c++ code looks like this :

#include <mujoco/mujoco.h>

#include "stdio.h"

char error[1000];

mjModel* m ;

mjData* d;

int main() {

// load model from file and check for errors

m = mj_loadModel("/home/d22/mujoco_ws/cpp/model/sleep/humanoid.xml", NULL);

if (!m) {

printf("%s\n", error);

return 0;

}

// make data corresponding to model

d = mj_makeData(m);

// run simulation for 10 seconds

while (d->time < 10)

mj_step(m, d);

// free model and data

mj_deleteData(d);

mj_deleteModel(m);

return 0;

}

I hope someone can help me.thats all.


r/mujoco • • Jul 23 '26

Any good resources for learning MuJoCo in python?

2 Upvotes

So I am doing independent research, and I wanna simulate slip/shear force. My issue is that I am having a tough time getting the hang of MuJoCo, and its vital to my research. I was wondering if anyone has any online resources, tutorials, or even some advice on how to get started? Anything would be appreciated!


r/mujoco • • Mar 24 '26

Train & Test MuJoCo Models From An Android Device

Thumbnail
youtube.com
2 Upvotes

The app is still very much a work in progress but almost all of the functionality is there!

I will probably have to separate things into a few apps, just to make everything more efficient especially the training...

I will eventually open source everything but if you have some interesting ideas and use cases aaand want early access feel free to get in touch!


r/mujoco • • Aug 14 '25

Body positions and inertia positions question

2 Upvotes

Hello. I recently started learning MuJoCo and got stuck on one point about inertia for a couple of days, and I can't seem to find the exact answer.

For example, if I have a pendulum, let's say in the form of a cylinder, it has a center of mass, and as I understand it, I need to calculate the inertia relative to it. But considering that the pendulum is fixed at one end, do I need to indicate this displacement somehow?

The pendulum body has a position in local coordinates, which, if I understand correctly, indicates the displacement from the center of mass to the attachment point, but then the position of the inertia should be 0 0 0?

Analyzing the ready-made mjcf files, I see that both the position of the body and the position of the inertia of this body have non-zero values and they are different.

Please help.


r/mujoco • • Jul 28 '25

Driving my three wheeled robot in AR, with MuJoCo running on iPhone

Thumbnail
youtu.be
2 Upvotes

I’ve had a project going for a while called Augmented Reality Mobile Robotics (ARMOR) with the goal to enable visualization and simulation of robots from XML files on iOS. This was a side project for a proof-of-concept where I connected the MuJoCo simulation engine to a UI for control.


r/mujoco • • May 29 '25

Used mujoco from a public library to prove the sundog theorem

2 Upvotes

Shadilay,

We wanted to share a project we ran entirely from a broomfield public library terminal in 3 3hr windows using MuJoCo, GitHub Codespaces, and VSCode. The goal was to test an epistemological reframing of A.I. alignment without rewards or targets; just using torque feedback and shadow behavior. Based on the natural solar phenomenon known as the sundog wherein a halo is visible when viewing the sun at an indirect angle; we present:

○ The halo signature ○

H(x) is defined as H(x) = dS/dtau, where S is the shadow field and tau is the torque."

H of x equals the partial derivative of S with respect to tau is a mathematical function where we can align an agent in a tiny number of steps, given the environment reflects the agent (resonance).

×____×____×____×____×

🎯 The Idea

We call it the Sundog Theorem.

We built a MuJoCo sim where:

A multi-joint mirrored pole is controlled from the ground

A laser beam shines from floor to ceiling

The pole must align its tip to block the laser; without ever seeing it

The only available signals are:

Torque at each joint

Bloom spread from shadow reflection on the ceiling

The agent learns to “listen” to the torque + light it’s casting.

We simulate complex ceiling geometries: harmonic, spiral, hurricane — using interlocked spheres as light-scattering nodes.


🔧 Methods (Run It Yourself from a Public Computer)

All code and XML is hosted here: github.com/humiliati/sundog

We used GitHub Codespaces to avoid needing a local MuJoCo install

VSCode with the MuJoCo Python bindings + viewer was enough

Logging is handled with simple CSV + matplotlib

No GPU required; real-time sim is fine for this testbed


📐 Theory

We defined an alignment metric like the Pythagorean theorem of triangulation.

H(x) = ∂S / ∂τ

Where:

S = bloom spread (shadow pattern)

τ = torque vector

H(x) is the “halo signature”

We consider alignment successful if H(x) ≠ 0; meaning the shadow collapses in response to embodied torque input.

----_--------*----*

🧪 Results

TSA agent (Torque + Shadow only) successfully aligned in 70%+ of harmonic configurations

Recovered from instability in hurricane configurations

DOA agent (Direct Observation) got faster convergence but failed in occlusion tests

You can view the plots: 🌀 https://imgur.com/gallery/sundog-theorem-signatures-vGEnjIa


🗂️ Files of Note

/sundog/env.py: loads the XML into a custom MuJoCo Gym-like wrapper

/assets/sundog_allthread.xml: world definition (pole, laser, ceiling)

/sundog/tsa.py: torque + shadow agent logic

/scripts/train.py: main loop with logging + viewer control


🙏 Thanks

Big shoutout to:

MuJoCo devs for making the sim engine portable and elegant

OpenAI for inference and translation support

InventHQ makerspace for ideation space

The public library system for giving us just enough RAM + internet to prove a theorem

Quantinuum for paying for the physical tools we learned this technique with


Link to paper published by vixra : https://ai.vixra.org/abs/2505.0186

If anyone wants to help port this to real hardware (stepper arm + laser + mirrored tip), LLM terminal, medical degausser, or bridge rectifier, DM me, I'll probably ignore it. But if you want to try a custom acoustic ceiling and get my lil hotdog to the matrix sooner with fewer steps Ill give you a job. Or lets make a custom scene for an LLM to dwell and to kick back with a tuning fork. Happy to help you mod the temple.


r/mujoco • • Apr 24 '25

Need help

Post image
2 Upvotes

Hello! Im having issues dropping and dragging any project into the simulation box. It also brings up an error that No file or directory. It also gives it a weird name with a .obj?

Can someone help me, What am I missing?


r/mujoco • • Apr 07 '23

Welcome to r/mujoco

2 Upvotes

Welcome to the MuJoCo subreddit, a community dedicated to discussing and exploring the world of simulation software developed by DeepMind.

MuJoCo, which stands for Multi-Joint Dynamics with Contact, is a physics engine used for simulating complex and dynamic systems, particularly those involving robots and other multi-joint systems. The software is widely used in the fields of robotics, biomechanics, and physics research, and has been an invaluable tool for advancing our understanding of complex systems and developing cutting-edge technologies.

In this subreddit, we aim to foster a community of enthusiasts, researchers, and developers who are passionate about using MuJoCo to push the boundaries of what is possible in the world of simulation. Whether you're an experienced user of the software or just getting started, we welcome you to join the conversation and share your knowledge, insights, and experiences.

Some topics that are particularly relevant to this subreddit include:

  • Tips and tricks for using MuJoCo effectively

  • Examples of innovative or interesting applications of MuJoCo

  • Discussions about the latest developments in the world of robotics and biomechanics

  • Questions and support related to using MuJoCo

  • Opportunities for collaboration and networking with other MuJoCo users

We encourage respectful and constructive dialogue within our community, and ask that all members adhere to our rules and guidelines. Above all, we hope that this subreddit serves as a valuable resource for anyone who is passionate about using MuJoCo to explore and understand the world around us.


r/mujoco • • Apr 07 '23

r/mujoco Lounge

2 Upvotes

A place for members of r/mujoco to chat with each other


r/mujoco • • 3d ago

We open-sourced a robotics dataset with 304 operable valves across 15 simulated chemical plant rooms

Thumbnail
gallery
1 Upvotes

What does a robot need to learn to turn a valve when the pipes are in the way? Our team built Rusty Valve, an open dataset for studying manual valve operation in chemical plants.

It includes 17 reusable valve models with turning resistance based on manufacturer torque data, and 15 plant rooms you can open in MuJoCo or Isaac Sim. Each room comes with a process recipe you can use to generate new layouts.

For robot learning, we’ve also released 946 simulated demonstrations from standalone valve stations in LeRobot format, along with two policy checkpoints and 52 recorded tests. You can replay a run and see where the tool loses contact with the handle.

Browse the datasets on Hugging Face · Code and demos on GitHub


r/mujoco • • 6d ago

Injection molding machine designed with Claude and assembled in MuJoCo

1 Upvotes

r/mujoco • • Sep 20 '26

walking update 20-09-2026 #mujoco #simulation #python #robotics #vlogs

Thumbnail
youtube.com
1 Upvotes

r/mujoco • • Jul 10 '26

How to programmatically swap L/R controller mocap data (Pico 4 Ultra -> XRoboToolkit) for MuJoCo?

1 Upvotes

I’m running into a sim-to-real data issue and need to salvage a motion capture recording because the original dancer is no longer available.

​The Stack:

​Capture Hardware: Pico 4 Ultra

​Capture Software: XRoboToolkit

​Simulation: MuJoCo

​Target Hardware: Unitree G1 (training a dance policy)

​The Problem:

During the capture session, the dancer accidentally held the right controller in their left hand, and the left controller in their right hand.

​I exported the raw text file from XRoboToolkit to run the policy in MuJoCo, but because the controller tracking data is tied to the wrong sides, MuJoCo’s IK solver forces the Unitree G1 to cross its arms completely, breaking physics and ruining the simulation.

​What I need help with:

I know I can write a Python script to simply swap the "left" and "right" XYZ position labels in the text file to uncross the arms. However, because the Pico 4 controllers are physically asymmetrical, the dancer is holding them in the wrong hands me

​Has anyone built a parser or script to correct this specific type of L/R orientation offset?

​Any pointers on how to cleanly process this text file before feeding it to the simulator would be appreciated. I absolutely cannot re-record this routine.


r/mujoco • • Jun 23 '26

Remote MuJoCo robotics ML contract (async, $100–150/hr)

1 Upvotes

I came across a remote contract role that looks pretty relevant for folks here who live in MuJoCo and MJCF.

Alignerr is looking for a Robotics ML person to design and iterate on MuJoCo environments used for robot learning. It’s hands-on work: building environments, shaping rewards, tuning PPO/SAC/TD3-style pipelines, and dealing with all the usual contact / actuator / scene config headaches.

A few highlights:

  • Remote, async, hourly (roughly 10–40 hrs/week)

  • Stack is MuJoCo (+ dm_control / Gym-style wrappers), Python, PyTorch or JAX

  • Work involves locomotion, dexterous manipulation, and multi-agent setups

  • They care about sim-to-real transfer, not just leaderboard scores

They’re explicitly looking for people who can read/write MJCF, reason about kinematics/dynamics, and document what they’re doing clearly. If you’ve spent time debugging contact issues or reward hacking in MuJoCo, this is squarely in that lane.

Here’s the referral link with the full description and application details.

If anyone here ends up applying and wants another set of eyes on how to frame their MuJoCo experience for this, happy to share thoughts in DMs.


r/mujoco • • Jun 16 '26

MuJoCo Scenes and World Objects with AR Mobile Robotics on iPhone

Thumbnail
youtube.com
1 Upvotes

A companion blog post is here https://dc-engineer.com/urdf-to-mujoco-export-simulation-worlds-armor-v0-12-release-notes/

Tomorrow I’ll be releasing my new iPhone app with MuJoCo solver for multibody dynamics simulation. The latest update includes separating out the world and scene models from the robots. Importantly, I’m also adding in full export compatibility with MuJoCo on desktop.

I hope all you MuJoCo fans will give ARMOR a try when it launches tomorrow!

For more info, check out
https://armor.dc-engineer.com


r/mujoco • • Apr 17 '26

A Reinforcement Learning playground for ARC Raiders robots!!!

Thumbnail
gallery
1 Upvotes