Skip to content
New issue

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

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

Already on GitHub? # to your account

Question about method _refresh_sim_tensors() #79

Open
Zijing5 opened this issue Oct 22, 2024 · 2 comments
Open

Question about method _refresh_sim_tensors() #79

Zijing5 opened this issue Oct 22, 2024 · 2 comments

Comments

@Zijing5
Copy link

Zijing5 commented Oct 22, 2024

Hello!
When I execute post_physics_step method in the class Humanoid(BaseTask), there is a method called self._refresh_sim_tensors,
image
and then I step into the method, it jumps to the definition in the class HumaniodAMP(Humanoid) instead of that in the class Humanoid(BaseTask) itself.
image
image
I do not understand why it jumps to the definition in its son class.
Looking forward to your answer! Thanks!

@ZhengyiLuo
Copy link
Owner

Hi! Since the child's class overrides the parent's class, the child's function is called.

@Zijing5
Copy link
Author

Zijing5 commented Nov 19, 2024

Thanks very much!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants