-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
306 lines (280 loc) · 17.3 KB
/
index.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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MigrAVE Control Panel</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!--
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
-->
<!-- Font Awesome -->
<script defer src="assets/fontawesome/js/all.js"></script>
<!--ROS scripts -->
<script src="assets/js/jquery-3.7.0.min.js"></script>
<script src="assets/js/roslib.min.js"></script>
<script src="assets/js/eventemitter2.min.js"></script>
<script src="assets/js/qtrobot-1.0.min.js"></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/header.css">
<link rel="stylesheet" href="assets/css/main.css">
</head>
<body>
<div class="container-fluid">
<!-- header -->
<div class="app-header">
<img src="./assets/img/MigrAVE.jpeg" alt="MigrAVE logo">
<div class="app-header--title">
MigrAVE Control Panel
</div>
</div>
<div class="row no-gutters">
<!-- Participant ID -->
<div class="col">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title">Teilnehmer:in Information</h4>
<form>
<div class="form-group row card-text">
<label for="inputID" class="col-3 col-form-label">Teilnehmer:in ID</label>
<div class="col-9">
<input type="text" id="inputID" placeholder="Teilnehmer:in ID">
</div>
</div>
<div class="form-group row">
<label for="inputName" class="col-3 col-form-label">Name</label>
<div class="col-9">
<input type="text" id="inputName" placeholder="Teilnehmer:in Name">
</div>
</div>
<div class="form-group row">
<label for="inputAge" class="col-3 col-form-label">Alter</label>
<div class="col-9">
<input type="number" id="inputAge" placeholder="Alter">
</div>
</div>
<div class="form-group row">
<label for="inputGender" class="col-3 col-form-label">Geschlecht</label>
<div class="col-9">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="radioGender" id="male" value="male>
<label class="form-check-label" for="male">Männlich</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="radioGender" id="female" value="female">
<label class="form-check-label" for="female">Weiblich</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="radioGender" id="other" value="other">
<label class="form-check-label" for="other">Divers</label>
</div>
</div>
</div>
<div class="form-group row">
<label for="inputMotherTongue" class="col-3 col-form-label">Muttersprache</label>
<div class="col-9">
<select class="form-select" id="inputMotherTongue">
<option selected>Wähle die Muttersprache aus</option>
<option value="German">Deutsch</option>
<option value="English">Englisch</option>
<option value="Other">Sonstige</option>
</select>
</div>
</div>
<div class="form-group row">
<button id="confirm" type="button" class="btn btn-primary">Bestätige</button>
</div>
</form>
</div>
</div>
</div>
<!-- Control -->
<div class="col">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title">Control</h4>
<div class="row">
<div class="col">
<p>
Roboter auswählen<br />
<select id="robot_name">
<option value="qtrobot" selected>QTrobot</option>
<option value="nao">NAO</option>
</select><br />
<button id="select_robot" type="button" class="btn btn-primary">Auswählen</button>
</p>
<p>
Roboterposition zurücksetzen<br />
<button id="home" type="button" class="btn btn-primary">Home</button>
</p>
<p>
Datenaufnahme umschalten<br />
<button id="start_recording" type="button" class="btn btn-primary">Start</button>
<button id="stop_recording" type="button" class="btn btn-primary">Stopp</button>
</p>
<p>
Engagementbestimmung umschalten<br />
<button id="start_engagement_estimation" type="button" class="btn btn-primary">Start</button>
<button id="stop_engagement_estimation" type="button" class="btn btn-primary">Stopp</button>
</p>
<div>
<p>
Lernprogramm verwalten<br />
<select id="game_name">
<option value="none" selected>Lernprogramm auswählen</option>
<option value="colors">Farben lernen</option>
<option value="animals">Tiere lernen</option>
<option value="tableware">Sprachverständnis</option>
<option value="teeth_brushing">Zähne putzen</option>
<option value="hand_washing">Hände waschen</option>
</select><br />
<button id="restart_game" type="button" class="btn btn-primary">Start</button>
<button id="stop_game" type="button" class="btn btn-primary">Stopp</button>
</p>
</div>
<div>
<p>
Token verwalten<br />
<select id="token_name">
<option value="star">Stern</option>
<option value="robot">Roboter</option>
<option value="smiley">Smiley</option>
<option value="truck">Fahrzeug</option>
<option value="cat">Katze</option>
<option value="flower">Blume</option>
</select><br />
<button id="set_token" type="button" class="btn btn-primary">Setzen</button>
</p>
</div>
</div>
<div class="col">
<p>Kopfposition ändern</p>
<div>
<label for="head_yaw">
<strong>Kopf yaw (links-rechts) </strong>
</label>
<input type="range" min="-85" max="85" class="custom-range" id="head_yaw">
<label for="head_pitch">
<strong>Kopf pitch (oben-unten) </strong>
</label>
<input type="range" min="-13" max="13" class="custom-range" id="head_pitch">
</div>
<div>
<p>
Roboterbewegungen während des Lernprogramms umschalten<br />
<button id="enable_robot_motions" type="button" class="btn btn-primary">Aktivieren</button>
<button id="disable_robot_motions" type="button" class="btn btn-primary">Deaktivieren</button>
</p>
</div>
<div>
<p>
Geräusche während des Lernprogramms umschalten<br />
<button id="enable_robot_sounds" type="button" class="btn btn-primary">Aktivieren</button>
<button id="disable_robot_sounds" type="button" class="btn btn-primary">Deaktivieren</button>
</p>
</div>
<div>
<p>
Lob nach einem Lernschritt auswählen<br />
<select id="praise_type">
<option value="fireworks">Feuerwerk</option>
<option value="motion">Roboterbewegung</option>
<option value="fireworks_and_motion">Feuerwerk und Roboterbewegung</option>
</select><br />
<button id="set_praise_type" type="button" class="btn btn-primary">Setzen</button>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Diagnostics -->
<div class="col">
<div class="card h-100">
<div class="card-body">
<h4 class="card-title">Diagnostics</h4>
<p class="card-text">Verbindungsstatus: <span id="status"></span></p>
<p class="card-text">Kopfposition: <spain id="position"></spain></p>
<p class="card-text">Datenaufnahme: <span id="data_recorder">Aufnahme nicht aktiviert</span></p>
<p class="card-text">Lernprogramm ID: <span id="game_id">inaktiv</span></p>
<p class="card-text">Lernprogrammstatus: <spain id="game_status">inaktiv</spain></p>
<p class="card-text">Teilnehmer:in ID: <spain id="participant_id">nicht gesetzt</spain></p>
</div>
</div>
</div>
</div>
<!-- VIDEO -->
<div class="row no-gutters">
<div class="col">
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">Video Streams</h4>
<div class="d-flex flex-row">
<div class="p-2 w-75">
<figure class="figure">
<figcaption class="figure-caption text-center w-75">Farbkamera</figcaption>
<img src="http://localhost:8080/stream?topic=/camera/color/image_raw" class="p-1 bg-dark w-75" alt="" id="video_color" />
</figure>
</div>
<div class="p-2 w-75">
<figure class="figure">
<figcaption class="figure-caption text-center w-75">Kamera Oben</figcaption>
<img src="http://localhost:8080/stream?topic=/camera1/usb_cam1/image_raw" class="p-1 bg-dark w-75" alt="" id="video_usb1" />
</figure>
</div>
<div class="p-2 w-75">
<figure class="figure">
<figcaption class="figure-caption text-center w-75">Kamera Unten</figcaption>
<img src="http://localhost:8080/stream?topic=/camera2/usb_cam2/image_raw" class="p-1 bg-dark w-75" alt="" id="video_usb2" />
</figure>
</div>
<!-- Hide the OpenFace
<div class="col d-flex justify-content-center">
<figure class="figure">
<img src="http://localhost:8080/stream?topic=/migrave_perception/openface_ros/debug_image
" class="p-1 bg-dark" alt="" id="video_usb1" />
<figcaption class="figure-caption text-center">Face features</figcaption>
</figure>
</div>
-->
</div>
<div class="d-flex flex-row">
<div class="p-2 w-75">
<figure class="figure">
<figcaption class="figure-caption text-center w-75">Engagement RGB-D</figcaption>
<img src="http://localhost:8080/stream?topic=/migrave_perception/person_state_estimator_rgbd/debug_image" class="p-1 bg-dark w-75" alt="" id="video_engagement" />
</figure>
</div>
<div class="p-2 w-75">
<figure class="figure">
<figcaption class="figure-caption text-center w-75">Engagement Kamera Oben</figcaption>
<img src="http://localhost:8080/stream?topic=/migrave_perception/person_state_estimator_ext_up/debug_image" class="p-1 bg-dark w-75" alt="" id="video_engagement_usb1" />
</figure>
</div>
<div class="p-2 w-75">
<figure class="figure">
<figcaption class="figure-caption text-center w-75">Engagement Kamera Unten</figcaption>
<img src="http://localhost:8080/stream?topic=/migrave_perception/person_state_estimator_ext_down/debug_image" class="p-1 bg-dark w-75" alt="" id="video_engagement_usb2" />
</figure>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<!-- Main script-->
<script src="assets/js/main.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!-- uncomment if needed
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
-->
</body>
</html>