Skip to content

[wbt] reset with correct root_pos/quat/vel#67

Open
Juyue wants to merge 1 commit intomainfrom
dev/jchen/fix_wbt_20260304
Open

[wbt] reset with correct root_pos/quat/vel#67
Juyue wants to merge 1 commit intomainfrom
dev/jchen/fix_wbt_20260304

Conversation

@Juyue
Copy link
Contributor

@Juyue Juyue commented Mar 5, 2026

Description of changes:

Previously, the code assume self.body_pos_w[env_ids, 0] is the root position. This is true for g1/t1: pelvis (0th element in body_pos_w) is the root. However, this assumption might be wrong in other robots. This PR fixes it by reading off the true root position

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Juyue Juyue changed the title reset with root_pos/quat/vel [wbt] reset with correct root_pos/quat/vel Mar 5, 2026
Copy link
Contributor

@samuelgundry samuelgundry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one. Ideally we for tests to pass but if you've run internally, please comment as much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants