File size: 801 Bytes
5aeac76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | """
🤖 ReachyMini Simulator Launcher
Run this FIRST in a separate terminal before starting the Haven app!
"""
import asyncio
from reachy_mini.daemon.daemon import Daemon
async def main():
print("🚀 Starting ReachyMini MuJoCo Simulator...")
print(" (Keep this terminal open while using Haven)")
print()
daemon = Daemon()
await daemon.start(
sim=True, # Use MuJoCo simulation
headless=False, # Show the GUI window
localhost_only=True,
wake_up_on_start=True
)
# Keep running until Ctrl+C
try:
while True:
await asyncio.sleep(1)
except KeyboardInterrupt:
print("\n👋 Shutting down simulator...")
await daemon.stop()
if __name__ == "__main__":
asyncio.run(main())
|