Repository navigation
|
Does the order of setting these two matter? Why are they separated, and how come the Shouldn't this also set |
Replies: 1 comment 2 replies
|
Currently, it just sets The idea is to reset the env after a certain number of steps. If your env doesn't do this, you can override the You can add We haven't fully implemented truncation yet, which is another case, where you don't want the RL episode to end, but you want to reset the env on timeout in order to make training faster. |
They are different.
ai_controller.done = truesignals to the RL algorithm that the current episode is done/finished. It will be reset tofalseby the sync node after it reads it and sends it to the Python server. It's used for training so the RL algorithm can know when an episode has finished.needs_resetis what can be used to reset the environment in Godot. E.g.if needs_reset: reset_env()It has no effect on the Python server. Python server can set it to true (once before training starts with SB3), and AI controller also sets it to true after the specified number of steps inreset_after, but it doesn't have any effect by itself, unless you implement env reset based on whetherneeds_reset…