Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 保存为 hand_demo_mujoco3.py
import mujoco
import mujoco.viewer
import numpy as np
Expand Down Expand Up @@ -104,11 +103,10 @@ def _create_preset_poses(self):
'description': '食指伸直,其他手指握起'
}

# 演示序列
# 演示序列 (去掉了捏取动作)
self.demo_sequence = [
'张开手',
'握拳',
'捏取',
'圆柱体抓握',
'剪刀手',
'OK手势',
Expand Down Expand Up @@ -422,7 +420,7 @@ def run_demo(self):
print("🤖 手部抓握姿态全自动演示 (MuJoCo 3.x 兼容版)")
print("=" * 60)
print(f"🎬 演示序列: {len(self.demo_sequence)} 个姿态")
print(f"⏱️ 每个姿态保持: 3.0秒")
print(f"⏱️ 每个姿态保持: 5.0秒")
print(f"🎥 动画过渡: {self.animation_duration}秒")
self.print_controls()
print("=" * 60)
Expand All @@ -434,11 +432,9 @@ def run_demo(self):
self.data.ctrl[:] = self.poses[initial_pose]['values']

last_change = time.time()
hold_duration = 5 # 每个姿态保持3秒
hold_duration = 5.0 # 每个姿态保持5秒

# 启动一个线程来处理用户输入
import threading

def input_thread():
"""处理用户输入的线程"""
while not self.should_exit:
Expand Down
59 changes: 0 additions & 59 deletions src/Embodied_Human_Arm_Modeling/simulate_arm.py

This file was deleted.

Loading