mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-27 22:49:48 +00:00
add robot models xml etc
remove isaaclab, add test scripts added simulator to the hub remove mujoco env
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python
|
||||
"""Minimal test script - just initialize robot with locomotion."""
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
import time
|
||||
sys.path.insert(0, str(Path(__file__).parent / "src"))
|
||||
|
||||
from lerobot.robots.unitree_g1.config_unitree_g1 import UnitreeG1Config
|
||||
from lerobot.robots.unitree_g1.unitree_g1 import UnitreeG1
|
||||
|
||||
config = UnitreeG1Config(locomotion_control=True, simulation_mode=True
|
||||
, policy_path="src/lerobot/robots/unitree_g1/assets/g1/locomotion/GR00T-WholeBodyControl-Walk-converted.onnx")
|
||||
#, policy_path="src/lerobot/robots/unitree_g1/assets/g1/locomotion/motion.pt")
|
||||
# dance 102
|
||||
robot = UnitreeG1(config)
|
||||
# Keep alive
|
||||
try:
|
||||
while True:
|
||||
time.sleep(1.0)
|
||||
except KeyboardInterrupt:
|
||||
robot.stop_locomotion_thread()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user