Repository navigation
Conversation
When MotionCommand reached time_step_total without an explicit episode timeout, _update_command resampled and teleported the robot to a new RSI frame while dones and time_outs stayed False. RSL-RL then bootstrapped value targets across unrelated episode boundaries, leaked GAE traces across the teleport, and skipped resetting recurrent hidden states and observation histories. Add a motion_time_out termination term wired with time_out=True in make_tracking_env_cfg so reaching the final frame cleanly truncates the episode while preserving MotionCommand wraparound when terminations are disabled (such as play --no-terminations). Also clear time_outs in TerminationManager.compute when a non-timeout termination fires on the same step so simultaneous failures are not bootstrapped, clamp uniform RSI sampling below time_step_total - 1 to match adaptive sampling, and hold done envs at the final frame when auto_reset=False. Fixes mujocolab#1106
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When \MotionCommand\ reached \ ime_step_total\ without an explicit episode timeout, _update_command\ resampled and teleported the robot to a new RSI frame while \dones\ and \ ime_outs\ stayed \False. RSL-RL then bootstrapped value targets across unrelated episode boundaries, leaked GAE traces across the teleport, and skipped resetting recurrent hidden states and observation histories.
This adds a \motion_time_out\ termination term wired with \ ime_out=True\ in \make_tracking_env_cfg\ so reaching the final reference frame cleanly truncates the episode while preserving \MotionCommand\ wraparound when terminations are disabled (such as \play --no-terminations). It also clears \ ime_outs\ in \TerminationManager.compute\ when a non-timeout failure fires on the same step so failed terminal states are never bootstrapped, clamps uniform RSI sampling below \ ime_step_total - 1\ to match adaptive sampling, and holds done envs at the final frame when \�uto_reset=False.
Fixes #1106