# Closed articulation simulation problem

**URL:** <https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431>\
**Category:** Isaac Sim\
**Tags:** physx\
**Created:** [June 30, 2023, 12:57pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431 "2023-06-30T12:57:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonello.scaldaferri.as](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@antonello.scaldaferri.as](https://forums.developer.nvidia.com/u/antonello.scaldaferri.as)\
**Post date:** [June 30, 2023, 12:57pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/1 "2023-06-30T12:57:24Z")

</div>

Hello everybody,

I have created a new model of the ANYmal C robot with the adaptive feet described in [this paper](https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9478068).  
The instanceable asset can be downloaded here  
[anymal\_c\_softfoot\_q.zip](https://forums.developer.nvidia.com/uploads/short-url/lqB3vtmFxqNX6bCAUFrtNFbRrBC.zip) (4.2 MB)  
In the folder there is the instanceable asset anymal\_c\_softfoot\_q.usd and the anymal\_c\_softfoot\_q\_meshes.usd file containing all the meshes referenced by the instanceable asset.  
These adaptive feet have a closed kinematics structure. Each foot is made up of 3 chains (right, middle and left), each made up of 9 links (5 inner and 4 outer). Each chain has 10 joints (counting also the ones that attach the entire chain to the front and back roll links).  
Now, the simulation perfectly works if I leave the open kinematics structure, without attaching the last link of each chain to the corresponding back roll link. But I cannot use the feet in these way, because they would not have the adaptive feature they were designed for. So I need to close the kinematic chain.  
Let’s take, for example, the left chain of the Left Front foot.  
I add the 10th joint of the chain by adding a joint between the back roll link and the 9th link of the left chain, as shown in this picture

 ![closed_kinematic_chain](https://global.discourse-cdn.com/nvidia/original/4X/3/b/7/3b71b543eff5dd35a3275db1a878647802b2b066.jpeg)

I exclude the joint from the articulation to make it work, I set the maximum joint velocity and upper/lower limits like all the other joints of the same type, keeping the joint friction equal to 0 as the joint is excluded from the articulation.

I press play and this is what happens

[https://global.discourse-cdn.com/nvidia/original/4X/e/b/4/eb4239478a8dd235fb9e1cddbf9901778a9ecfd8.mp4](https://global.discourse-cdn.com/nvidia/original/4X/e/b/4/eb4239478a8dd235fb9e1cddbf9901778a9ecfd8.mp4)
  
the robot basically disappear, it looks like it was wiped out.

While disabling this last added joint everything works (except the correct behaviour of the adaptive feet of course)

[https://global.discourse-cdn.com/nvidia/original/4X/b/e/d/bed7dcae3691a860f3663006a7d403639967ec01.mp4](https://global.discourse-cdn.com/nvidia/original/4X/b/e/d/bed7dcae3691a860f3663006a7d403639967ec01.mp4)

What should I do to make everything work correctly, closing the kinematics of all the chains of all the feet as needed?

Thanks a lot in advance for all your kind and precious replies.  
If you could directly correct the usd file I shared and then share back the updated version I would be extremely happy and thankful. It would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![philipp.reist](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@philipp.reist](https://forums.developer.nvidia.com/u/philipp.reist)\
**Post date:** [July 18, 2023, 11:42am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/4 "2023-07-18T11:42:30Z")

</div>

@antonello.scaldaferri.as - can you please also post the version with the missing joints that are causing the issue? I can’t see them in the asset you uploaded.

It’s easy to disable via the enable checkbox:  
 ![image](https://global.discourse-cdn.com/nvidia/original/4X/5/c/7/5c76396621e417ed97f70c41ae99e15dc21972b5.png)

We’ll look into the issue.

---

<div class="post-metadata">

**Author:** ![antonello.scaldaferri.as](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@antonello.scaldaferri.as](https://forums.developer.nvidia.com/u/antonello.scaldaferri.as)\
**Post date:** [September 3, 2023, 9:15pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/5 "2023-09-03T21:15:06Z")

</div>

[anymal\_c\_softfoot\_q.zip](https://forums.developer.nvidia.com/uploads/short-url/rwES1L41aYFJj8sKTAqzcbuSurF.zip) (4.2 MB)  
Sorry for the late response.

Here is the complete version of the robot with all the missing joints that are causing the issue, that are the following:  
softfoot\_LF\_foot\_left\_chain\_10\_joint  
softfoot\_LF\_foot\_middle\_chain\_10\_joint  
softfoot\_LF\_foot\_right\_chain\_10\_joint  
softfoot\_LH\_foot\_left\_chain\_10\_joint  
softfoot\_LH\_foot\_middle\_chain\_10\_joint  
softfoot\_LH\_foot\_right\_chain\_10\_joint  
softfoot\_RF\_foot\_left\_chain\_10\_joint  
softfoot\_RF\_foot\_middle\_chain\_10\_joint  
softfoot\_RF\_foot\_right\_chain\_10\_joint  
softfoot\_RH\_foot\_left\_chain\_10\_joint  
softfoot\_RH\_foot\_middle\_chain\_10\_joint  
softfoot\_RH\_foot\_right\_chain\_10\_joint  
they are in the chain\_9\_link body of the respective chain.

They are all excluded from the articulation, to solve the kinematic loop closures.  
If you disable all of them the simulation works, but the chains open and I don’t want that to happen.

Please help me.  
Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![gyeoman](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/gyeoman/32/10078_2.png) [@gyeoman](https://forums.developer.nvidia.com/u/gyeoman)\
**Post date:** [September 4, 2023, 4:07pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/7 "2023-09-04T16:07:17Z")

</div>

I tried out your USD file in omniphysics.

I tried running all combinations of CPU/GPU and TGS/PGS solver.

I found that TGS and PGS on GPU were both unstable.

I then found that TGS and PGS on CPU were both stable.

This feels like a bug in physx. It’s hard to tell right now. If there was anything in the configuration that cannot be meaningfully handled by the solver, I’d expect GPU and CPU to behave pretty much the same. It’s hard to say if this is just different float precision (we use simd on cpu but regular float operations on gpu) or something more fundamental in physx. We’ll need to take a look.

One thing I did notice is that largestMass/smallestMass is about 300. We should be able to handle that because those masses are only indirectly coupled. However, stability is always improved with smaller ratios. One thing to try would be to set the masses directly rather than using the automatically generated masses.

In the meantime, can you revert to cpu dynamics?

Cheers,

Gordon

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 6, 2023, 12:57pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/8 "2023-09-06T12:57:37Z")

</div>

Hi,  
we now have the same problem.

Have you found the fix?

---

<div class="post-metadata">

**Author:** ![gyeoman](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/gyeoman/32/10078_2.png) [@gyeoman](https://forums.developer.nvidia.com/u/gyeoman)\
**Post date:** [September 6, 2023, 2:39pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/9 "2023-09-06T14:39:57Z")

</div>

Have you tried running the dynamics on CPU? This seemed stable when I last tried this asset.

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 6, 2023, 2:46pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/10 "2023-09-06T14:46:17Z")

</div>

Yes, we tried that as well, but this introduced a weird error in the initialization of the quadrupeds in the simulation environment.

We are trying to train an RL algorithm for our quadruped, so we use the Anymal task from omniisaacgymenvs as our template. We really hope this will run on the GPUs so that we can take advantage of the fast training times.

---

<div class="post-metadata">

**Author:** ![philipp.reist](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@philipp.reist](https://forums.developer.nvidia.com/u/philipp.reist)\
**Post date:** [September 7, 2023, 7:47am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/11 "2023-09-07T07:47:02Z")

</div>

@finn.gross.maurer - Gordon is working on fixing the GPU issues / discrepancies for the loop closure, but the fixes will not be available until the release after next.

For the initialization errors, it is best if you could provide a detailed description and create a separate forum post for the omniisaacgymenvs team to have a look.

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 7, 2023, 10:37am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/12 "2023-09-07T10:37:21Z")

</div>

Hi @philipp.reist.  
Thanks for the answer. When do you think the release will be available?

I will do some further research on the initialization errors and the closed kinematic chain issue. When I get some time, I can post a full description of the task and the problems we encounter.

---

<div class="post-metadata">

**Author:** ![philipp.reist](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@philipp.reist](https://forums.developer.nvidia.com/u/philipp.reist)\
**Post date:** [September 7, 2023, 11:24am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/13 "2023-09-07T11:24:06Z")

</div>

I don’t have a date for the release after next, but @rthaker might be able to provide an estimate.

Is there are way you could work around the GPU loop closure issue with a simplified model of the compliant Anymal feet? E.g. a series of prismatic joints connecting smaller contact blocks to the feet so that they can adapt to the surface?

Thank you for taking the time to report the initialization issues!

Philipp

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 7, 2023, 11:39am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/14 "2023-09-07T11:39:32Z")

</div>

The posts here are a bit misleading. We are trying to simulate our own robot with some special “loop-closure” legs. See: [Simulating quadruped with "five bar linkage" legs](https://forums.developer.nvidia.com/t/simulating-quadruped-with-five-bar-linkage-legs/265558)

I just think this may be the same problem as mentioned in the post here. The simulation works fine when the bottom “paw” joint is not connected, but once connected the simulation becomes unstable.

Here is the illustration from the linked post:  
 ![image](https://global.discourse-cdn.com/nvidia/original/4X/e/0/8/e0859867afc0c0ae99cdd2b28fc8af9fb5b9ade1.png)

---

<div class="post-metadata">

**Author:** ![philipp.reist](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@philipp.reist](https://forums.developer.nvidia.com/u/philipp.reist)\
**Post date:** [September 7, 2023, 5:23pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/15 "2023-09-07T17:23:56Z")

</div>

Thank you for the clarification Finn,

Would you be able to share a minimal repro in USD with us to have a look?

With that repro, you can also check whether CPU/GPU PGS/TGS solvers have an impact on the simulation result.

Thank you,  
Philipp

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 8, 2023, 1:11pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/16 "2023-09-08T13:11:31Z")

</div>

Yes I will try to have it done by Monday.

A quick observation from yesterdays debugging:  
It looks like increasing the articulations position and velocity count makes the problem worse, which I think is odd? I will check it out more this weekend and then comment it on my next post.

Have a good weekend :D

---

<div class="post-metadata">

**Author:** ![philipp.reist](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@philipp.reist](https://forums.developer.nvidia.com/u/philipp.reist)\
**Post date:** [September 8, 2023, 1:14pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/17 "2023-09-08T13:14:14Z")

</div>

Thank you Finn. Yes, iterations should definitely make it better. Could you compare CPU and GPU by any chance already?

Have a great weekend and looking forward to your repro.  
Philipp

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 11, 2023, 7:59am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/18 "2023-09-11T07:59:36Z")

</div>

Hi,  
We have now tried to simplify the model.  
The quadruped is defined in “quadruped\_simplified\_meshes.usd” and is placed in a world with a ground plane in “quadruped\_in\_world.usd”.

We didn’t get it to work with either CPU or GPU.

[quadruped\_in\_world.usd](https://forums.developer.nvidia.com/uploads/short-url/mJuiivis9ZaNVI5Nc5PIlxC7zJe.usd) (8.0 KB)  
[quadruped\_simplified\_meshes.usd](https://forums.developer.nvidia.com/uploads/short-url/5GIG0CkzFF5BQmu4d74RHhHDHGM.usd) (70.6 KB)

We also cloned the “anymal learning to walk” task in omniisaacgymenvs, and ran it with our quadruped. Here the “dissapearing robot” bug still occurs, though less frequently. We hypothesize that this may be due to the joint drives preventing undefined/illegal joint configurations:

[https://global.discourse-cdn.com/nvidia/original/4X/7/9/f/79f00eeadc55df52957af8da464e2d4df4f6849e.mp4](https://global.discourse-cdn.com/nvidia/original/4X/7/9/f/79f00eeadc55df52957af8da464e2d4df4f6849e.mp4)

---

<div class="post-metadata">

**Author:** ![AlanSunHR](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/alansunhr/32/184794_2.png) [@AlanSunHR](https://forums.developer.nvidia.com/u/AlanSunHR)\
**Post date:** [September 11, 2023, 9:20am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/19 "2023-09-11T09:20:16Z")

</div>

Hi, our group designed a series of close-chain robots and I have successfully trained the robot in Isaac Sim. But it did take me a long time to solve the problems of close-chain simulation. In the beginning, I encountered nearly the same problem as yours that the robots just flew away whenever they reset. Here are some steps that I have tried:

1. When you call the function ArticulationView.set\_joint\_positions(positions, indices, joint\_indices), you have to set the position of all the joints (including those that have already been excluded from articulation, i.e., passive joints that are not driven by motors)

2. Set the ArticulationRoot to the robot base but not the top-level prim. I do not figure out why this is important but it seems that the default ArticulationRoot will cause some problems. The prims of Anymal should be something like:

- Anymal
  - AnymalBase

By default, the ArticulationRoot is set to Anymal, changing it to AnymalBase may avoid some issues.

1. Increase the position iterations. If this value is small, you may observe the joints having undesired displacements. But this value may only take effect if the “disappearing” problem is solved.

Our quadruped robot has legs with a four-bar linkage mechanism which is the same as your simplified quadruped, hope it helps!

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 11, 2023, 10:06am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/20 "2023-09-11T10:06:38Z")

</div>

Hi Alan, thank you for your response!

We have tried all three suggestions already, but with no success. Do you have any USD files we can take a look at?

---

<div class="post-metadata">

**Author:** ![antonello.scaldaferri.as](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@antonello.scaldaferri.as](https://forums.developer.nvidia.com/u/antonello.scaldaferri.as)\
**Post date:** [September 12, 2023, 7:05pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/21 "2023-09-12T19:05:57Z")

</div>

Hi @gyeoman,

I tried all the possible combinations between broadphase type (GPU, MBP, SAP), solver type (PGS, TGS) and collision system (PCM, SAT), in total 3x2x2 trials, but none of these worked on my workstation, which uses NVIDIA GeForce RTX 3060 Laptop GPU.  
I have also tried them in an Isaac Sim container running on a remote workstation, that I have access on, which uses a Tesla T4 GPU.

As @philipp.reist suggested, I am using a simplified model of the adaptive feet. I have actually implemented a lot of them, some keeping the closed kinematics structure and others open. Only the open ones work. I have not been able to implemented a working simplified model with the closed kinematics structure.

The simplified model of the five bar linkage quadruped by @finn.gross.maurer seems to work quite good now, but it has way less joints that the ANYmal with adaptive feet robot model.  
@finn.gross.maurer if you still experience few dissapearing bugs, try to limit the joint torques that you apply by the set\_joint\_efforts method. If instead you are using the DriveAPI on the robot joints, try to lower the stiffness and damping parameters. I had the same problem with Solo 12 and I solved like this. Also changing the MassAPI parameters (mass, center of mass, diagonal inertia and principal axes) of the links could help.

To answer @AlanSunHR, I need to control the robot dynamically, that means taking into account the full dynamics of the system and its surrounding environment, non kinematically. The set\_joint\_positions method, that you mentioned, changes the robot joint positions without taking into account the joints dynamics, but instead it sets the joint position explicitly, obtaining in this way a kinematic control.  
The dynamic control is obtained either by means of the set\_joint\_efforts method, or the set\_joint\_position\_targets method in the case the DriveAPI is applied to the robot joints.  
I am aware also of the fact that you have to set the position of all the joints, including both passive that active ones. Anyway, if this would be the problem, it would be easy to debug, since, if you set the wrong number of joint positions/efforts, a tensor shape mismatch error occurs, telling you both how many joint positions/efforts you set and how many instead need to be set, solving the issue immediatly.  
I have also tried to apply the ArticulationRootAPI not to the top-level prim, but neither this worked.  
I have also tried to increase the position/velocity iterations of the solver, but as you said it is useless if you first don’t solve the disappearing problem.

I don’t know what else to do. I hope that, whatever the bug is, it will be solved sooner or later.

Thanks to all of you for your interesting answers. Sad that none of those solved my problem.

Hope either @gyeoman, or @philipp.reist will come with a solution one day.

Still thanks a lot for your contributions.

Antonello

---

<div class="post-metadata">

**Author:** ![philipp.reist](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@philipp.reist](https://forums.developer.nvidia.com/u/philipp.reist)\
**Post date:** [September 13, 2023, 4:22pm UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/22 "2023-09-13T16:22:39Z")

</div>

Thanks for the writeup @antonello.scaldaferri.as - yes we are working on fixing the GPU loop closure issues and hope to publish those asap.

@finn.gross.maurer - looking at the model I was wondering: Did you try breaking the loop at the paw joints (exclude from articulation there instead of on the front knees)?

Otherwise I think it’s the same GPU loop closure problem. CPU sim looks solid (if I add angular drives to all revolutes, looks like you tuned them already?):

[https://global.discourse-cdn.com/nvidia/original/4X/f/0/e/f0e99cdeed20b9fd977e922d12b25c8fef66a209.mp4](https://global.discourse-cdn.com/nvidia/original/4X/f/0/e/f0e99cdeed20b9fd977e922d12b25c8fef66a209.mp4)

Given that our CPU sim is fine I am hopeful we’ll find the issue soon. Thank you all for your patience and the reports!

For the record, the same exact setup with GPU sim goes NaN too

[https://global.discourse-cdn.com/nvidia/original/4X/7/8/3/7838df5715c5cff96d424cab3db6caedc3e659f8.mp4](https://global.discourse-cdn.com/nvidia/original/4X/7/8/3/7838df5715c5cff96d424cab3db6caedc3e659f8.mp4)

---

<div class="post-metadata">

**Author:** ![finn.gross.maurer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@finn.gross.maurer](https://forums.developer.nvidia.com/u/finn.gross.maurer)\
**Post date:** [September 14, 2023, 9:01am UTC](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431/23 "2023-09-14T09:01:04Z")

</div>

@philipp.reist Yes we tried breaking the loop at the paw at first, but then we thought it might be “easier” for the solver if the joint closer to the collision is part of the articulation. But this was just a guess…

We also wonder how we best should implement the non-actuated joints (front- and backknee + paw). Just a normal revolute joint + some friction for stability?

[Next page](https://forums.developer.nvidia.com/t/closed-articulation-simulation-problem/258431.md?page=2)
