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

Error: engine error: edge ordering is incoherent between flex and plugin #1647

Closed
gpans opened this issue May 10, 2024 · 4 comments
Closed
Assignees
Labels
question Request for help or information

Comments

@gpans
Copy link

gpans commented May 10, 2024

Hi,

I am a masters student trying to design a soft locomotive robot using Mujoco for my thesis. I've just started with some .obj files and the elasticity.solid plugin using flexcomp type mesh. However, when I do so i get the following error:

Error: engine error: edge ordering is incoherent between flex and plugin

My xml code is as follows:

<mujoco> 
  <option gravity = "0 0 -9.81" integrator="implicitfast" solver="Newton" tolerance="1e-6" timestep=".001"/>
    
  <include file="environments/scene.xml"/>

  <extension>
    <plugin plugin="mujoco.elasticity.solid"/>
  </extension>

  <compiler meshdir="asset\" />

  <compiler autolimits="true"/> 

  <size memory="150M"/>

  <visual>
    <map stiffness="100"/>
  </visual>
 

  <worldbody>
    <flexcomp name="softlimb" dim="2" type="mesh" file="soft_limb_1.obj">
      <plugin plugin="mujoco.elasticity.solid">
        <config key="poisson" value="0.3"/>
        <config key="young" value="1e8"/>
        <config key="damping" value="0.002"/>
      </plugin>
    </flexcomp>
  </worldbody>
</mujoco>

I have tried loading the file through xml as a rigid mesh body and that was no issue (see below).

Picture1

Any guidance or tips would be much appreciated
Thanks
Gaetan

@gpans gpans added the question Request for help or information label May 10, 2024
@quagla
Copy link
Collaborator

quagla commented May 28, 2024

Could you please attach the OBJ file that it's causing the issue?

@gpans
Copy link
Author

gpans commented May 28, 2024

soft_limb_1.zip

Hi, it wouldn't allow .obj files so I have zipped it. Thanks

@quagla
Copy link
Collaborator

quagla commented May 28, 2024

This is a triangle mesh, so it's not possible to do volumetric deformations with it, hence the error. You could either use mujoco.elasticity.membrane for deforming the surface triangles or provide a tetrahedral mesh instead. Feel free to open another issue if that doesn't work!

@quagla quagla closed this as completed May 28, 2024
copybara-service bot pushed a commit that referenced this issue May 28, 2024
…1647.

PiperOrigin-RevId: 637905358
Change-Id: I1432a8fe054752bc962174548da3c1f81deb6555
@shunsei-t
Copy link

model.zip
I'm trying to use these models, but it's not working. mujoco.elasticity.solid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for help or information
Projects
None yet
Development

No branches or pull requests

3 participants