forked from AzkarProject/websocket-azkar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
robot.html
272 lines (178 loc) · 7.7 KB
/
robot.html
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<html>
<head>
</head>
<head>
<meta charset="utf-8" />
<meta name='keywords' content='WebRTC, HTML5, JavaScript' />
<meta name='description' content='WebRTC benchmarks base for AZKAR project' />
<!-- viewport sert a controler la mise en page sur les appareils mobiles -->
<meta name='viewport' content='width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1'>
<link rel="stylesheet" href="/css/style.css" />
<script src='/js/lib/jquery-1.11.3.min.js'></script>
<!--
<link rel="import" href="/web_kom-remote/kom-remote.html">
-->
<title>1to1-Robot</title>
</head>
<body class="ihmRobot">
<strong><span id="zone_info_server">WebRTC AZKAR</span></strong>
<hr/>
<section id="bloc_1toN" class="" style="float:left">
<div class="floatLeft oneQuarterContainerBox">
<div id="piloteCam" class="insideFlex pilote shadowBlack">
<strong> Pilot Camera</strong>
<hr/>
<div class = "videosContainer">
<video id='1to1_remoteVideo' class="" autoplay controls="controls"></video>
</div>
</div>
</div>
<div class="floatLeft oneQuarterContainerBox">
<div id="robotCam" class="insideFlex robot shadowBlack">
<strong> Robot Camera</strong>
<hr/>
<div class = "videosContainer">
<video id='1to1_localVideo' autoplay muted controls="controls"></video>
</div>
</div>
</div>
<div class="floatLeft doubleQuarterContainerBox" style="width:650px;">
<div id="remoteCanvasArea" class="insideFlex robot shadowBlack">
<div>
<strong> Navigation</strong>
<hr/>
<div style="float:left; width:200px">
<span id="pointOfinterestTitle"> Points of interest</span>
<br/>
<h3><span id="robotStatusMessage"><span></h3>
</div>
<div style="height:135px;">
<canvas id="myCanvas" width="400" height="130" style="border:1px solid #ccc;"></canvas>
</div>
</div>
</div>
</div>
</section>
<section id="bloc_battery" class="" style="float:left">
<div class="floatLeft oneQuarterContainerBox" style="width:650px">
<div class="jauge insideFlex robot shadowBlack">
<label for="battery_level">Battery Level:</label>
<progress id="battery_level" class="floatRight" max="100" style="width:530px"></progress>
</div>
</div>
</section>
<section id="bloc_1to1_messages" class="" style="float:left;width:1300px">
<div id="websocketChat" class="insideFlex robot shadowBlack floatLeft doubleQuarterBox" style="width:628px">
<form action="/" method="post" id="formulaire_chat_websoket" style="text-align:center" >
<strong>Websocket Chat & Logs </strong>
<input type="text" name="message" id="message" placeholder="Votre message..." size="28" autofocus />
<button id="env_msg_ws" type="submit" >Envoyer</button>
</form>
<hr class="hrForm">
<textarea class="input" style="width:100%" id="zone_chat_websocket" readonly="readonly" placeholder="Once upon a time..."></textarea>
<!--
<hr class="hrForm">
<form id="text-options1" style="text-align:center">
<label>Filename: <input type="text1" class="filename" id="text-filename1" placeholder="Robot_WS_LOGS"/>.txt</label>
<button id="saveLogs_webSocket" type="submit" value="Save"/>Save</button>
</form>
-->
</div>
</section>
<section id="bloc_1to1_Devices" class="" style="float:left;width:1300px">
<div class="floatLeft oneQuarterContainerBox">
<div id="selectionMicros" class="insideFlex robot shadowBlack">
<span id="messageDevicesStateMicro"> Micros disponibles</span>
<hr/>
<div class="select">
<select id="local_audioSource"></select>
</div>
</div>
</div>
<div class="floatLeft oneQuarterContainerBox">
<div id="selectionCams" class="insideFlex robot shadowBlack">
<span id="messageDevicesStateCams"> Caméras disponibles</span>
<hr/>
<div class="select">
<select id="local_videoSource"></select>
</div>
</div>
</div>
</section>
<section id="bloc_1to1_messages2" class="" style="float:left;width:1300px">
<div id="dataChannelArea" class="insideFlex robot shadowBlack floatLeft doubleQuarterBox" style="width:628px">
<div id="formulaire_chat_webRTC" class="pseudoForm" style="text-align:center">
<strong>WebRTC Chat & Logs </strong>
<input type="text" name="message" id="input_chat_WebRTC" disabled placeholder="Waiting open channel..." size="28" autofocus />
<button id="env_msg_WebRTC" disabled onclick="sendMessage()">Envoyer</button>
</div>
<hr class="hrForm">
<textarea class="input" id="zone_chat_WebRTC" readonly="readonly" style="width:100%" placeholder="Once upon a time..."></textarea>
<!--
<hr class="hrForm">
<form id="text-options2" style="text-align:center">
<label>Filename: <input type="text" class="filename" id="text-filename2" placeholder="Robot_webRTC_LOGS"/>.txt</label>
<button id="saveLogs_webRTC" type="submit" value="Save"/>Save</button>
</form>
-->
</div>
</section>
<!--
<section id="bloc_1to1_commands" class="" style="float:left;width:1300px">
<div class="floatLeft oneQuarterContainerBox">
<div id="Command_PAD" class="insideFlex robot shadowBlack">
<kom-remote class="kom-remote"></kom-remote>
</div>
</div>
</section>
-->
<section id="TopNotification">
<div id='infoMessage' class="info message">
</div>
<div id='errorMessage' class="error message">
</div>
<div id='warningMessage' class="warning message">
</div>
<div id='sucessMessage' class="success message">
</div>
<div id='standardMessage' class="standard message">
</div>
</section>
<script>
var type = "robot-appelé";
// On initialise les flages du mode simulateur
var fakeRobubox = null;
var loopBattery = null;
</script>
<script src="/socket.io/socket.io.js"></script>
<script src='/js/lib/adapter.js'></script>
<script src="/js/lib/FileSaver.js"></script>
<script src="/js/lib/autobahn.min.jgz"></script>
<script src="/js/common_tools.js"></script>
<script src="/js/common_models.js"></script>
<script src="/js/common_app_settings.js"></script>
<script src='/js/1to1_01_websocket.js'></script>
<script src='/js/module_ihm.js'></script>
<script src='/js/module_fake_robubox.js'></script>
<script src='/js/module_navigation_interface.js'></script>
<script src='/js/module_notifications.js'></script>
<script src='/js/module_komcom.js'></script>
<!--
<script src='/js/module_komremote.js'></script>
-->
<script src='/js/module_carto.js'></script>
<script src='/js/module_navigation.js'></script>
<script src='/js/module_userconnection.js'></script>
<script src="/js/module_logs.js"></script>
<script src='/js/1to1_02_pre_signaling.js'></script>
<script src='/js/1to1_03_signaling.js'></script>
<script src='/js/1to1_04_post_signaling.js'></script>
<script>
// Affichage de l'entête
ihm.getHeaderPage(pseudo);
// On lance l'utilitaire de récupération de la batterie sur le robot
komcom.getBattery();
/**/
</script>
</body>
</html>