File size: 1,776 Bytes
51f51c3
8aedc84
51f51c3
8aedc84
51f51c3
8aedc84
51f51c3
8aedc84
51f51c3
 
 
 
8aedc84
51f51c3
b91acfc
51f51c3
b91acfc
51f51c3
 
b91acfc
51f51c3
b91acfc
 
51f51c3
 
b91acfc
51f51c3
 
b91acfc
51f51c3
b91acfc
 
51f51c3
b91acfc
51f51c3
 
 
b91acfc
51f51c3
 
 
 
b91acfc
51f51c3
 
 
 
8aedc84
51f51c3
8aedc84
51f51c3
 
 
 
 
 
8aedc84
 
51f51c3
8aedc84
51f51c3
 
8aedc84
 
51f51c3
8aedc84
 
51f51c3
8aedc84
 
51f51c3
8aedc84
 
51f51c3
8aedc84
 
 
 
 
51f51c3
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# RobotHub TransportServer Demo

A simple SvelteKit demo application for visualizing and debugging the RobotHub TransportServer platform. This web interface helps verify that the server and client libraries are working correctly.

## 🎯 Purpose

This demo is a **development and testing tool** that provides:

- **Visual interface** to test robotics control and video streaming
- **Connection verification** for WebSocket and WebRTC functionality  
- **Debugging tool** to monitor real-time communication
- **Example implementation** showing how to use the client libraries

## πŸš€ Quick Start

### Prerequisites

- Node.js 18+ or Bun
- Running RobotHub TransportServer

### Setup & Run

```bash
# Install dependencies
bun install

# Start development server
bun run dev

# Open http://localhost:5173
```

## πŸ–₯️ Interface

### Workspace Management
- Create isolated test environments
- Join existing workspaces for collaborative testing

### Robotics Testing
- **Producer**: Send joint commands with sliders
- **Consumer**: Monitor received commands in real-time
- **Emergency Stop**: Test safety mechanisms

### Video Testing  
- **Producer**: Test camera and screen sharing
- **Consumer**: Verify video stream reception
- **Multi-stream**: Test multiple concurrent streams

## πŸ”§ Configuration

Default server endpoints:
```typescript
const CONFIG = {
  transportServerUrl: 'http://localhost:8000',
  wsServerUrl: 'ws://localhost:8000'
};
```

Override with environment variables:
```bash
PUBLIC_TRANSPORT_SERVER_URL=http://your-server:8000
PUBLIC_WS_SERVER_URL=ws://your-server:8000
```

## πŸ› οΈ Development

```bash
# Development
bun run dev

# Build
bun run build

# Preview
bun run preview
```

---

**This demo helps you verify everything works!** πŸ€–βœ¨