File size: 1,370 Bytes
02eac4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
#!/usr/bin/env node

/**
 * Simple test script to verify the demo application
 */

import { robotics } from 'lerobot-arena-client';

console.log('πŸ€– Testing LeRobot Arena Demo');
console.log('βœ… Successfully imported robotics client');

// Test that we can create clients
try {
  const producer = new robotics.RoboticsProducer('http://localhost:8000');
  console.log('βœ… Producer client created successfully');
  
  const consumer = new robotics.RoboticsConsumer('http://localhost:8000');
  console.log('βœ… Consumer client created successfully');
  
  console.log('\nπŸŽ‰ Demo application is ready!');
  console.log('πŸ“Š Available routes:');
  console.log('  - / (Dashboard)');
  console.log('  - /robotics (Robotics Control)');
  console.log('  - /robotics/producer (Producer Interface)');
  console.log('  - /robotics/consumer (Consumer Interface)');
  console.log('  - /robotics/producer/[roomId] (Room-specific Producer)');
  console.log('  - /robotics/consumer/[roomId] (Room-specific Consumer)');
  console.log('  - /video (Video placeholder)');
  
  console.log('\nπŸ’‘ To test the demo:');
  console.log('  1. Start the LeRobot Arena server on port 8000');
  console.log('  2. Run: bun run dev');
  console.log('  3. Open http://localhost:5173 in your browser');
  
} catch (error) {
  console.error('❌ Error testing demo:', error);
  process.exit(1);
}