Spaces:
Running
Running
/** | |
* 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); | |
} |