Add multiple objects #493
-
Hi, I am using brax as a physics engine. Specifically, I navigate the agents to the goal while avoiding obstacles. What I would like to ask you here is how I can add markers for the target. My idea is to add a sphere. By google search, I found some examples of adding objects, but they seem to be old and don't support the current version of brax. For instance, when I run one of the code, it says added |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, Here's an example of adding a target to a an environment used for Reacher. The XML specifies a sphere marker for a body that does not move. Setting |
Beta Was this translation helpful? Give feedback.
Hello,
Here's an example of adding a target to a an environment used for Reacher. The XML specifies a sphere marker for a body that does not move. Setting
contype
andconaffinity
to 0 assures that nothing can interact with the target, but it can still be moved in code, see this line in the reacher env for an example.