You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate RL.jl with Dojo.jl in dojo-sim/Dojo.jl#9. However current MultiThreadEnv wrapper fails to work with the BoxSpace defined there, even though we have Base.in, Base.length and Random.rand are defined. Issue seems to be in the use of selectdim in the current implementation.
Wrapper states are a Vector of Vector
N_ENV =2
env_vec = [Dojo.DojoRLEnv("cartpole") for i in1:N_ENV]
env =MultiThreadEnv(env_vec)
env.states
I guess the problem comes from the BoxSpace defined in your PR. When initializing the MultiThreadEnv, only Space defined in RLBase is recognized at the moment. Let me experiment with your PR first and see how to address it.
I am trying to integrate RL.jl with Dojo.jl in dojo-sim/Dojo.jl#9. However current
MultiThreadEnv
wrapper fails to work with theBoxSpace
defined there, even though we haveBase.in
,Base.length
andRandom.rand
are defined. Issue seems to be in the use ofselectdim
in the current implementation.Wrapper states are a Vector of Vector
results in:
However
selectdim(env.states, 1, 1)
gives a 0-dim view:which cannot take the vector observations as currently implemented:
The text was updated successfully, but these errors were encountered: