Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boston Dynamics Spot - unexpected behaviour in MJX #69

Open
goncalog opened this issue Jul 4, 2024 · 3 comments
Open

Boston Dynamics Spot - unexpected behaviour in MJX #69

goncalog opened this issue Jul 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@goncalog
Copy link

goncalog commented Jul 4, 2024

Which model is the issue affecting?
Boston Dynamics Spot

What is the issue?
Adding the Spot's model to a MJX notebook and rendering a short rollout (e.g. with state = jit_reset(jax.random.PRNGKey(0)) and state = jit_step(state, ctrl)) results in a very unexpected behaviour better described by the first 3 frames (the video remains black for the remainder of the rollout):
Frame 1 -
Screenshot 2024-07-04 at 19 38 53

Frame 2 -
Screenshot 2024-07-04 at 19 39 10

Frame 3 -
Screenshot 2024-07-04 at 19 39 33

Is there any additional context you can provide (e.g., a spec sheet or a URDF to show a value mismatch)?
It's likely this is me doing something wrong rather than a bug but I had used the exact same setup with the humanoid, robotis op3, and unitree h1 models, and this had never happened.

Any ideas of what may be causing it or what i may try to solve it? Thank you.

@goncalog goncalog added the bug Something isn't working label Jul 4, 2024
@scott-yj-yang
Copy link

Hi goncalog,

I have this similar issue when using the CPU version of the mujoco xml file in MJX, and the rendering seems like the agent is falling through the ground. A temporary fix we found is add solimplimit="0 .99 .01" to each of the joint attribute, and it fixed the contact issue in MJX. However, I am not completely sure whether there is any unintended side effect of this change. It will be really helpful if there is a guide of how to convert CPU MuJoCo XML file into a MJX compatible formats.

Scott

@yuvaltassa
Copy link
Collaborator

cc @erikfrey

@kevinzakka
Copy link
Collaborator

Out of curiosity, did you remove the freejoint in the base?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants