Repository navigation
Stop heading and world frame commands from overriding rel_forward_envs - #1214
Merged
kevinzakka merged 1 commit intoOct 6, 2026
Merged
Conversation
In UniformVelocityCommand._resample_command, is_heading_env and is_world_env are sampled independently of is_forward_env, and _update_command rewrites vel_command_b every step for both. Clear both flags for fwd_ids at resample time so envs sampled by rel_forward_envs keep their straight command.
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.
rel_forward_envsis documented to give envs "positive lin_vel_x, zero lin_vel_y and ang_vel_z" (#827). Butis_heading_envandis_world_envare sampled independently, and_update_commandrewritesvel_command_bevery step for both:rel_heading_envs=0.3,rel_forward_envs=0.2), about 30% of these envs are turned toward a random heading at up to 0.5 rad/s.rel_world_envs > 0, they can be commanded backwards or sideways.This clears both flags for
fwd_idsat resample time. Standing envs still take precedence. Side effect: the effective heading share drops fromrel_heading_envstorel_heading_envs * (1 - rel_forward_envs)(30% to 24% by default). If you would rather keep heading control withheading_targetset to the current heading, happy to switch.