Giter VIP home page Giter VIP logo

Comments (2)

btaba avatar btaba commented on June 1, 2024

Hi @AnxSnip , see here for more info about the performance characteristics of MJX: https://mujoco.readthedocs.io/en/stable/mjx.html#mjx-the-sharp-bits

Seems like you are trying to simulate a bunch of boxes? Try to fiddle with some of these parameters (NB: max contacts, the solver iters):

<option impratio="10" iterations="1" ls_iterations="4" timestep="0.001">
<flag eulerdamp="disable"/>
</option>
<custom>
<numeric data="15" name="max_contact_points"/>
<numeric data="15" name="max_geom_pairs"/>
</custom>

The timestep seems really high, but I notice you use RK4. Consider lowering the timestep and using Newton for MJX. Hope that helps.

from mujoco.

AnxSnip avatar AnxSnip commented on June 1, 2024

Hello @btaba, thank you for your quick response.
I am currently trying to do some supervised learning on the stability of a bunch of boxes in a container under acceleration force (as if they were in a truck)
My goal would be to be automatically load a setup from my database to mujoco and then get the state before and after the simulation to compute the stability of the model. The boxes will be under force for around 10 to 30s. But I need it to be able to do fast simulation.
The simulation with this xml takes 10s to complete, but I wanted it to be faster so I looked into MJX but even after 30min it is still not finishing.
I choose these parameters because it seemed to me that they were close to what I expected to happen in real life. But because it is the first time I use physics simulation, I don't really know the meaning of each parameter
I tried changing the values of the parameters you provided but It behave weirdly: some blocks are flying, or exploding without any apparent reason.
If you have any lead or reading that would help me, it will be really kind.
Thank you!

from mujoco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.