ZhengyiLuo / PHC

Official Implementation of the ICCV 2023 paper: Perpetual Humanoid Control for Real-time Simulated Avatars
https://zhengyiluo.github.io/PHC/
Other
492 stars 43 forks source link

Question about method _refresh_sim_tensors() #79

Open Zijing5 opened 4 weeks ago

Zijing5 commented 4 weeks ago

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 commented 1 week ago

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

Zijing5 commented 11 hours ago

Thanks very much!