1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-12-21 00:51:21 +00:00

Added half_box_len as env arg

This commit is contained in:
Mo8it 2022-01-29 17:40:26 +01:00
parent c6a9d45e4a
commit 3e713fd44c

View file

@ -55,7 +55,7 @@ end
function run_rl(; function run_rl(;
EnvType::Type{E}, EnvType::Type{E},
parent_dir_appendix::String, parent_dir_appendix::String,
elliptical_a_b_ratio::Float64, elliptical_a_b_ratio::Float64=1.0,
n_episodes::Int64=200, n_episodes::Int64=200,
episode_duration::Float64=50.0, episode_duration::Float64=50.0,
update_actions_at::Float64=0.1, update_actions_at::Float64=0.1,
@ -84,7 +84,7 @@ function run_rl(;
) )
n_particles = sim_consts.n_particles # Not always equal to the input! n_particles = sim_consts.n_particles # Not always equal to the input!
env_args = (skin_radius=sim_consts.skin_radius,) env_args = (skin_radius=sim_consts.skin_radius, half_box_len=sim_consts.half_box_len)
env = EnvType(; args=env_args) env = EnvType(; args=env_args)