r/mujoco • • Sep 06 '26

MuJoCo SKIL

0 Upvotes

I introduced to you MuJoCo SKILL

it was based on my experience with this tool, i learned and decided to translate it to a general engineering skill for ai agents to use and operate with MuJoCo,

Im also open and happy for any feedback 🙏

https://github.com/cl0udz1/MuJoCo-SKILL


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 • • 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 • • 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 • • Nov 19 '24

How to Replace Unity's Default Physics Engine (PhysX) with Mujoco?

1 Upvotes

I am working on a robotics simulation application in Unity. I want to replace the default physics engine, PhysX, with Mujoco. My goal is to enable a toggle within the Unity application to switch between using PhysX and Mujoco. Mujoco prives better realism for certail scenarios, but i also want to leverage Unit's default capabilities for simpler tasks.

Currently, I am new to Unity and have limited experience, so I would appreciate guidance on the following:

  1. What fundamental concepts or features of Unity and Mujoco should I learn to address this problem effectively?

  2. Are there any tutorials, documentation, or examples that demonstrate replacing Unity's physics engine with Mujoco?

  3. Do I need to duplicate assets, scenes, or environments to implement both physics engines, or is there a more efficient approach?

Any advice, resources, or pointers would be greatly 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 • • 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 • • Apr 07 '23

r/mujoco Lounge

2 Upvotes

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


r/mujoco • • Nov 08 '24

Incorporting MoCap Data into a kinematic model.

1 Upvotes

So I have mocap data which consists of local joint transforms relative to the rest pose pose transforms which define the skeleton. This mocap data is of a human. And I have created the kinematic model using the rest pose transforms. For the time being I have made all the joints as ball joints so I can directly apply the poses in the local joint transforms. It is working as expected as the ball joints are oriented using quaternions which I can easily extract using the matrix to quaternion conversion. However to make the model more realistic I would like to model the knees and the elbow joints as hinge joins with a fixed hinge axis. I would now like to know how to transfer the animation in this case, where the hinge joints would just expect a scalar value. I have tried converting the transforms to axis angle however the elbow joints don't really seem to have a fixed axis along which they rotate. I first though that it would be some amount of noise that was changing the axis. But when I checked the variance it was close to 90 degrees so I'm not really sure how I should proceed with this problem. Any help is appreciated. Here's a collab notebook link https://colab.research.google.com/drive/154YTdflNrLCGHZ98jPSt_TZeafrYqFR-?usp=sharing#scrollTo=NFxtQ6G12r8S


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 • • 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 • • 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 • • 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 • • Mar 10 '25

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

6 Upvotes

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 • • 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 • • 6d ago

Injection molding machine designed with Claude and assembled in MuJoCo

1 Upvotes

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 • • Sep 06 '26

Cubic Doggo Update: ROS2 bridge to MuJoCo

4 Upvotes

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.