Live data from Hacker News

Open-sourcing the MuJoCo physics simulator for robotics

deepmind.com

61–70 of 77 posts

Re: Open-sourcing the MuJoCo physics simulator for robotics

#61
post #2

This is really good news. It was a really contentious issue in RL and robotics research to be so reliant on proprietary (and very expensive) software.

For more context on "very expensive," a MuJoCo license was several hundreds of dollars .

the price was reasonable for a good piece of software, but for the way people want to do ML research now (launch tons of parallel jobs on lots of cloud machines) the price, and more importantly, the burden of managing licenses, was prohibitive.

Re: Open-sourcing the MuJoCo physics simulator for robotics

#63
post #50

It seems great, but the simulation geometry options feel bit limited? What would be really great would be the ability to simulate scenes with objects imported from STEP/IGES files, so you can do more of the modeling in actual CAD tools. Instead, MuJoCo seems more oriented towards using its own primitives, not sure how that works out with more complex situations.

If you can turn it into a collection of STL or MSH files then you can simulate it in MuJoCo. There are some caveats - MuJoCo will use the convex hull of the mesh for collisions, so if you want to accurately simulate collisions with concave features then you'll need to split your mesh into convex submeshes (there are various third party tools that can automate this). Sometimes you need to tweak the mesh geometry a bit in order to get the right contact behaviour, and in some cases it's easier to use primitives for key collision geometry and just use the meshes for visualisation.

Re: Open-sourcing the MuJoCo physics simulator for robotics

#64
post #54

> MuJoCo is a second-order continuous-time simulator, implementing the full Equations of Motion Are there any books describing how to implement this kind of physics engine?

The Mujoco documentation explains the mathematics behind it in detail.

Re: Open-sourcing the MuJoCo physics simulator for robotics

#66
post #17

Earlier quoted context omitted.

as an undergrad in the 90s I invested thousands of dollars of my own money to work on machine learning. Worth every penny, even if I had to miss out on some cool parties.

Wonderful that you had thousands of dollars as an undergrad to be able to do so.

I'm not even sure what virtue you're trying to signal here. Just because someone used the limited funds they had available to obtain the software and educational resources they were interested in, they've exercised some sort of inappropriate privilege?

Isn't that the whole idea behind college? Spend money to learn cool stuff?

Re: Open-sourcing the MuJoCo physics simulator for robotics

#67

Earlier quoted context omitted.

For more context on "very expensive," a MuJoCo license was several hundreds of dollars .

For undergrad students trying to dabble in reinforcement learning, several hundreds of dollars can be quite a lot.

I got MuJoCo for free as an undergrad and I'm pretty sure all I needed was a .edu email address.

Re: Open-sourcing the MuJoCo physics simulator for robotics

#68
post #50

It seems great, but the simulation geometry options feel bit limited? What would be really great would be the ability to simulate scenes with objects imported from STEP/IGES files, so you can do more of the modeling in actual CAD tools. Instead, MuJoCo seems more oriented towards using its own primitives, not sure how that works out with more complex situations.

They're not in the file-reading business. There's a staggering variety of 3D object file formats, both open and proprietary, so it's logical enough to let the application worry about reading the geometric data and converting it to the representation needed for physics simulation.

Re: Open-sourcing the MuJoCo physics simulator for robotics

#69
post #12

I wonder what this means for the future of Brax [1]. 1. https://github.com/google/brax

Google Research already maintains the Bullet Engine as well (although it mostly seems to be Erwin Coumans maintaing it) Each have their own strengths, there is no "definitive" physics engine. Bullet is probably the most generalist engine, but it suffers a bit because of this approach (it's split between the old 2.0 C++ API vs. the new PyBullet API with vastly different functionalities)

One strong advantage of MuJoCo is its plain vanilla C bindings. Hardwiring an API like this to C++ or Python makes life much harder than necessary for users of other languages. Conversely, it's very easy to wrap a well-thought-out C API in your language of choice.

Super impressed with the data structures (and documentation) they've already released.

Re: Open-sourcing the MuJoCo physics simulator for robotics

#70
post #43

Can it do fluid simulations for aquatic robots?

The docs talk about that a little [1], with the answer boiling down to "Yes, the necessary hooks are there, but no, you don't want to use this particular engine for fluid dynamics."

The docs are definitely a strong point, nicely written and presented.

1: https://mujoco.readthedocs.io/en/latest/computation.html# , about 1/4 of the way down the page

Post reply on HN