-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.html
executable file
·104 lines (103 loc) · 4.2 KB
/
test.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
<html>
<head>
<title>rwc testing</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles/jquery.spin.css" rel="stylesheet" type="text/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">
<link rel="stylesheet" href="styles/rwc-styles.css">
<link rel="stylesheet" href="styles/rwc-user-styles.css">
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="scripts/jquery.spin.js"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="scripts/jsQR.js"></script>
<script src="scripts/mobile-detect.min.js"></script>
<script src="scripts/eventemitter2.js"></script>
<script src="scripts/roslib.min.js"></script>
<script src="scripts/rwc.js?v=1.0"></script>
</head>
<body>
<h1>ROS Web Components Testing Page</h1>
<rwc-button-action-start data-id="speakActionStart"
data-text="Say hello!"
data-action="say"
data-action-parameters="Hello everyone!"
data-disabled="true"></rwc-button-action-start>
<br><br>
<rwc-button-action-start data-id="toNodeActionStart"
data-text="Go to WayPoint20!"
data-action="goToNode"
data-action-parameters="WayPoint20"></rwc-button-action-start>
<br><br>
<rwc-button-action-start
data-id="moveActionStartCustom"
data-text="Forward 0.5m!"
data-action="move_base_custom_example"
data-goal-msg-path="json-msgs/forward-half-m.json"
data-always-enabled>
</rwc-button-action-start>
<br><br>
<rwc-button-action-start
data-id="goToButton"
data-text="Take me to the Bronze Age barrow finds!"
data-action="goToAndDescribeExhibit"
data-action-parameters="1.1">
</rwc-button-action-start>
<br><br>
<rwc-button-action-start
data-id="testModalButton"
data-text="Test modal prompt"
data-action="yesNoModal"
data-action-parameters="What will you choose?">
</rwc-button-action-start>
<br><br>
<rwc-button-load-page
data-id="loadDupePageButton"
data-text="Load duplicate page"
data-href="test-dupe.html">
</rwc-button-load-page>
<br><br>
<rwc-text-action-start
data-id="moveActionStartCustomText"
data-text="Forward 0.5m!"
data-action="move_base_custom_example"
data-goal-msg-path="json-msgs/forward-half-m.json">
</rwc-text-action-start>
<p>
Current node: <rwc-text-listener
data-listener="getNode"></rwc-text-listener>
<br>
Current page: '<rwc-text-listener
data-listener="getCurrentPage"></rwc-text-listener>'
<br>
Robot position: '<rwc-text-listener
data-listener="getPosition"
data-live="false"></rwc-text-listener>'
<br>
Volume: <rwc-text-listener
data-listener="getVolumePercent"></rwc-text-listener>%
<br>
Robot position custom: <rwc-text-listener
data-listener="odom_custom_example"
data-field-selector="pose.pose.position"></rwc-text-listener>
<br>
Click to say <rwc-text-action-start data-id="speakActionStartText"
data-text="good day!"
data-action="say"
data-action-parameters="Good day everyone!"></rwc-text-action-start>
</p>
<rwc-img-action-start
data-id="speakActionStartImg"
src="images/lcas-logo.png"
data-action="say"
data-action-parameters="You have clicked the L-CAS logo!"></rwc-img-custom-action-start>
</body>
</html>