Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix in AMP Hybrid Init #198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Charrrrrlie
Copy link

In HumanoidAMP, when using Hybrid as stateInit type (this line), there is an error in the humanoid start pose.

⚠️It is caused by calling self.gym.set_actor_root_state_tensor_indexed and self.gym.set_dof_state_tensor_indexed functions both in _reset_default and _reset_ref_state_init.
(It is weird when we call the two functions once after default and ref state init. e.g. in the implementation of this PR, also in the source implementation in ASE)

The difference is shown below (the first picture shows the wrong initialization and the second is the correct one, using this PR). It seems the default state will somehow "overwrite" the reference state.

error correction

@Charrrrrlie
Copy link
Author

Further, I think that using the current implementation in this PR is also helpful in code reuse and reducing redundancy :).

@Charrrrrlie Charrrrrlie changed the title Bug Fix in Hybrid init Bug Fix in AMP Hybrid Init Jan 2, 2024
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.

1 participant