Replies: 1 comment 1 reply
-
|
Hi @mrdbstn , if you are using the MJX backend, it is not sufficient to update xpos. One must update qpos or mocap_pos, since xpos is derived from qpos. I recommend using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm working on Brax for my master thesis in Safe Reinforcement Learning, where I want to integrate common tasks into Brax. One of these tasks is for the agent to walk to a goal while avoiding hazards. I would like the goal to change position after the agent reaches it. However, I'm struggling to get it actually rendering the new position of the goal.
humanoid_hazard_goal.xml
I've created various environments, but for testing purposes, I'm trying to make it work with this environment where I set a new position for the goal every 10 steps.
I then use this code to render the rollout:
In the video, the goal just stays at the initial position given in the xml. Please let me know how I can manage to do this and whether I need to provide any more information
Beta Was this translation helpful? Give feedback.
All reactions