How can I add termination condition to legged robot environment? #575
Replies: 3 comments 3 replies
-
you could try adding terminal as a wp.array to model.state and update it inside a wp.kernel. right now, looks like you're using the same variable across all states. fyi Rewarped Ant RL example :) |
Beta Was this translation helpful? Give feedback.
-
To add some more information, Warp doesn't currently support these kinds of dynamic graph evaluations, which would require us to expose this kind of functionality: https://developer.nvidia.com/blog/dynamic-control-flow-in-cuda-graphs-with-conditional-nodes/ (You're welcome to open a feature request). Specifically, it seems that the number of times you call |
Beta Was this translation helpful? Give feedback.
-
BTW @DINHQuangDung1999, Warp 1.8.0 now supports graph conditionals via See MuJoCo Warp for some more usage examples, e.g. https://github.com/search?q=repo%3Agoogle-deepmind%2Fmujoco_warp+capture_if&type=code |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am working on building an environments for quadruped robots in Warp. My goal is to make an environment for deploying policy learning algorithms (BPTT/RL). In order to do that, I need to define termination conditions, which I am struggling with. At the moment, the code is using CUDA graph to capture the forward loop. My approach for the moment is simply iteratively update the attribute
self._terminated
inside the graph, but apparently this is trouble some and does not work out. I looked at the Warp examples and did not find any thing helpful. Can you help me with this? Below is my code.Beta Was this translation helpful? Give feedback.
All reactions