MCPcopy Create free account
hub / github.com/Improbable-AI/VisionProTeleop / setup

Method setup

avp_stream/bridge_avp.py:413–495  ·  view source on GitHub ↗

Main setup flow.

(self)

Source from the content-addressed store, hash-verified

411 return cleanup_path
412
413 def setup(self):
414 """Main setup flow."""
415 print("🔧 Vision Pro High-Speed Bridge Setup")
416 print("=" * 38)
417 print("")
418
419 # Check platform support
420 if self.os_type == "Windows":
421 print("❌ Windows is not yet supported")
422 print(" This tool currently supports macOS and Linux only.")
423 return False
424
425 if self.os_type not in ["Darwin", "Linux"]:
426 print(f"❌ Unsupported platform: {self.os_type}")
427 return False
428
429 # Check prerequisites
430 if not self.check_prerequisites():
431 return False
432
433 # Warn about Vision Pro
434 print("⚠️ IMPORTANT: Plug in your Vision Pro BEFORE running this script!")
435 print("")
436 response = input("Is your Vision Pro plugged in? (y/n) ").strip().lower()
437 if response not in ['y', 'yes']:
438 print("")
439 print("Please plug in your Vision Pro, wait 5 seconds, then run this script again.")
440 return False
441
442 print("")
443
444 try:
445 # Detect configuration
446 self.detect_configuration()
447
448 # Show configuration
449 print("")
450 print("Configuration:")
451 print(f" Platform: {self.os_type}")
452 print(f" Primary interface: {self.primary_interface}")
453 print(f" Your machine's IP: {self.ip_addr}")
454 print(f" Network: {self.network_base}.0/24")
455 print(f" Bridge IP: {self.bridge_ip}")
456 print("")
457
458 response = input("Continue? (y/n) ").strip().lower()
459 if response not in ['y', 'yes']:
460 return False
461
462 # Set up bridge based on platform
463 if self.os_type == "Darwin":
464 self.setup_bridge_macos()
465 cleanup_path = self.create_cleanup_script_macos()
466 elif self.os_type == "Linux":
467 self.setup_bridge_linux()
468 cleanup_path = self.create_cleanup_script_linux()
469
470 # Success message

Callers 1

mainFunction · 0.95

Calls 8

check_prerequisitesMethod · 0.95
detect_configurationMethod · 0.95
setup_bridge_macosMethod · 0.95
setup_bridge_linuxMethod · 0.95
printFunction · 0.50
stripMethod · 0.45

Tested by

no test coverage detected