-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (78 loc) · 2.97 KB
/
Copy pathindex.html
File metadata and controls
94 lines (78 loc) · 2.97 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ROS JS PubSub Demo</title>
<style>
form {
display: flex;
flex-direction: column;
align-items: center;
}
.container {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: center;
}
form>div.container>div {
display: flex;
flex-direction: column;
align-items: flex-start;
margin: 5px;
}
label {
margin: 5px;
}
input[type=submit] {
margin: 10px;
padding: 5px 50px;
}
#controlKeys, #scienceData {
margin: 0 0 10px;
padding: 5px 50px;
}
</style>
</head>
<!-- 1. Use of words
2. Use Transitional
3. Diversify Cue Card
4. Follow up Format
5. Justification in Follow up
6. Relevancy of the answers -->
<body>
<!-- Form to send Twist message to ROS -->
<div class="container">
<form id="control-form">
<div class="container">
<div>
<label for="linearx">Linear X</label>
<input type="number" id="linearx" name="linear" value="0.0" step="0.01" min="-2.0" max="2.0">
<label for="lineary">Linear Y</label>
<input type="number" id="lineary" name="linear" value="0.0" step="0.01" min="-2.0" max="2.0">
<label for="linearz">Linear Z</label>
<input type="number" id="linearz" name="linear" value="0.0" step="0.01" min="-2.0" max="2.0">
</div>
<div>
<label for="angularx">Angular X</label>
<input type="number" id="angularx" name="angular" value="0.0" step="0.01" min="-1.0" max="1.0">
<label for="angulary">Angular Y</label>
<input type="number" id="angulary" name="angular" value="0.0" step="0.01" min="-1.0" max="1.0">
<label for="angularz">Angular Z</label>
<input type="number" id="angularz" name="angular" value="0.0" step="0.01" min="-1.0" max="1.0">
</div>
</div>
<input type="submit" value="Send">
<div id="controlKeys" >( )</div>
<div id="scienceData" >Science Data: 00 00 00 00 00 00</div>
<img src="http://localhost:8080/stream?topic=/usb_cam/image_raw" />
</form>
</div>
<script type="text/javascript"
src="http://static.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
<script type="text/javascript" src="http://static.robotwebtools.org/roslibjs/current/roslib.min.js"></script>
<script type="text/javascript" src="./main.js"></script>
</body>
</html>