diff --git a/src/humanoid_3d_animation/humanoid_simulation.py b/src/humanoid_3d_animation/humanoid_simulation.py
index be34f09ab4..92f4605c1f 100644
--- a/src/humanoid_3d_animation/humanoid_simulation.py
+++ b/src/humanoid_3d_animation/humanoid_simulation.py
@@ -2,34 +2,46 @@
import mujoco.viewer as viewer
import os
import time
-# 新增:导入数学库,用于生成周期性的正弦/余弦运动信号
import math
+import threading # 新增:用于监听控制台输入(实现重置指令)
+import numpy as np
def create_humanoid_xml(file_path):
- """自动创建humanoid.xml文件并写入模型代码"""
+ """
+ 自动创建humanoid.xml文件并写入模型代码
+ 优化点:XML内容格式化,增加注释,提升可读性
+ """
xml_content = """