Manually Set Initial Pose of Agent in the Reset Function #457
SumeetBatra
started this conversation in
General
Replies: 1 comment
-
Hi @SumeetBatra , sorry for the very late reply here. Indeed the first time the code is run (in a jax jit), the value in To set a specific pose in the reset, consider passing in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks,
I am using brax 0.9.4 and jax 0.4.23. I have a wrapper that I'm using to manually set the initial xy position of the agent with the following methods:
Essentially replacing the default torso xy-pose with the desired one by calling
set_initial_state
followed byenv.reset()
. This works the first time I run it, but subsequent calls result in the same pose being set as the first time I calledset_initial_state
.With the debugger, I am able to step through all the way back to this wrapper the first time
env.reset()
is called, but after that I can't step in pastVectorGymWrapper
'sreset
. My guess is that this has something to do withVectorGymWrapper
being jitted? But I'm not sure. Any help would be appreciated!Beta Was this translation helpful? Give feedback.
All reactions