-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
219 lines (207 loc) · 10.5 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
<!-- * Created on Wed June 05 2019
* Copyright 2019 - Yu Zhou
* Email: [email protected] -->
<!doctype html>
<html lang="en">
<head>
<title>D-Drone UI</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="./bootstrap/bootstrap.min.css" rel="stylesheet" >
<script src="./bootstrap/bootstrap.min.js"></script>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> -->
<!-- <script src="./bootstrap/jquery-3.3.1.slim.min.js" ></script>
<script src="./bootstrap/popper.min.js" ></script> -->
<!-- <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> -->
<!-- For waypoints selection -->
<!-- <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" media="screen"> -->
<link rel="stylesheet" href="imagelib/jquery-ui.css" media="screen">
<style type="text/css" media="all">@import "imagelib/imgNotes.css";</style>
<!-- <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script> -->
<script type="text/javascript" src="imagelib/jquery-1.12.4.min.js"></script>
<!-- <script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> -->
<script type="text/javascript" src="imagelib/jquery-ui.min.js"></script>
<!-- <script type="text/javascript" src="https://unpkg.com/[email protected]"></script> -->
<script type="text/javascript" src="imagelib/[email protected]"></script>
<script type="text/javascript" src="imagelib/hammer.min.js"></script>
<!-- <script type="text/javascript" src="https://unpkg.com/[email protected]"></script> -->
<script type="text/javascript" src="imagelib/[email protected]"></script>
<script type="text/javascript" src="imagelib/imgViewer.js"></script>
<script type="text/javascript" src="imagelib/imgNotes.js"></script>
<!-- Ros Lib -->
<script src="./roslibjs/roslib.min.js"></script>
<script src="./roslibjs/eventemitter2.js"></script>
<script src="./roslibjs/ros3d.js"></script>
<script src="ddronelibjs/webui.js"></script>
<script src="ddronelibjs/subscribers.js"></script>
<script type="text/javascript" src="ddronelibjs/wp_selection.js"></script>
</head>
<body class="bg-light">
<!-- navigation bar -->
<nav class="navbar navbar-expand-md navbar-dark bg-primary fixed-top" >
<a class="navbar-brand" href="#">D-Drone</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#mission_tab">Mission</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
</ul>
<div class="container-fluid">
<div class="row">
<div class="col-sm-4" ></div>
<div class="col-sm-8" style="text-align: right;" >
<span id="server-ip"></span> (<span id="roslibjs-status"> Waiting to Connect... </span>)
</div>
</div>
</div>
<!-- <form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search">
<button class="btn btn-secondary my-2 my-sm-0" type="submit">Search</button>
</form> -->
</div>
</nav>
<!-- start contents -->
<div class="container-fluid">
<h1>Place Hold</h1>
<h1>Place Hold</h1>
<!-- images and command row -->
<div class="row">
<div class="card col-sm-4">
<h3 style="text-align: center;" class="card-header">ZED</h3>
<img id="zed_image" style="height: 186px; width: 100%; " src=" " alt="ZED image">
<h2></h2>
</div>
<!-- </div class="col-sm-0.5"></div> -->
<div class="card text-center col-sm-4" >
<h3 style="text-align: center;" class="card-header">UAV Platform</h3>
<img id="confi_image" style="height: 186px; width: 80%; " src="imagelib/images/ddrone.jpg" alt="Confidence map">
<h2></h2>
</div>
<div class="card border-light col-sm-4">
<h3 style="text-align: center;" class="card-header">Mission Control</h3>
<div style="text-align: center;" class="card-body">
<!-- <div class="row">
<div class="card border-light col-sm-5">
<p class="card-header">Fly Mode</p>
<div class="card-body">
<div class="btn-group " data-toggle="buttons">
<button type="button" id="vio" class="btn btn-outline-primary btn-sm">VIO</button>
<button type="button" id="gps" class="btn btn-outline-primary btn-sm">GPS</button>
</div>
</div>
</div>
<div class="card border-light col-sm-7">
<p class="card-header">Waypoints source</p>
<div class="card-body">
<div class="btn-group " data-toggle="buttons">
<button type="button" id="wp_file" class="btn btn-outline-primary btn-sm">File</button>
<button type="button" id="wp_map" class="btn btn-outline-primary btn-sm">Map</button>
<button type="button" id="wp_human" class="btn btn-outline-primary btn-sm">Human</button>
</div>
</div>
</div>
</div> -->
<p id="m_console" style="text-align: center; color:darkorange; font-weight:bold;">Start Mission</p>
<div class="btn-group " data-toggle="buttons">
<button type="button" id="engine0" class="btn btn-outline-warning">Engine0</button>
<button type="button" id="takeoff" class="btn btn-outline-success">Takeoff</button>
</div>
<p></p>
<div class="btn-group " data-toggle="buttons">
<button type="button" id="mission" class="btn btn-outline-info">Mission</button>
<button type="button" id="landing" class="btn btn-outline-primary">Landing</button>
</div>
</div>
</div>
</div>
<!-- rviz and uav status row -->
<div class="row">
<div class="card col-sm-8">
<h3 style="text-align: center;" class="card-header">Map</h3>
<div style="min-height: 350px;" id="rviz"></div>
<h2></h2>
</div>
<div class="card border-light col-sm-4">
<h3 style="text-align: center;" class="card-header">UAV Status</h3>
<table style="text-align: left;" class="table table-hover">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">X</th>
<th scope="col">Y</th>
<th scope="col">Z</th>
<th scope="col">Yaw</th>
</tr>
</thead>
<tbody>
<tr class="table-success">
<th scope="row">NWU</th>
<td id="x-data">x</td>
<td id="y-data">y</td>
<td id="z-data">z</td>
<td id="yaw-data">yaw</td>
</tr>
<!-- <tr>
<th scope="row">ZED</th>
<td id="x_zed">x</td>
<td id="y_zed">y</td>
<td id="z_zed">z</td>
<td id="yaw_zed">yaw</td>
</tr>
<tr class="table-warning">
<th scope="row">G</th>
<td id="x_g">x</td>
<td id="y_g">y</td>
<td id="z_g">z</td>
<td id="yaw_g">yaw</td>
</tr> -->
</tbody>
</table>
<div style="text-align: center; height: 200px; width: 100%; overflow-y: scroll;" id="uav_cosole"></div>
</div>
</div>
<!-- mission tab -->
<div class="row" id="mission_tab">
<!-- <div class="col-md-1" ></div> -->
<div class=" col-md-8">
<img src="imagelib/images/bishan.jpg" id="image" class="img-responsive" style="width:100%" alt="Image">
</div>
<!-- mission selection area -->
<!-- <div class="col-md-1" ></div> -->
<div class="col-md-4" style="padding:80px 10px 0px 0px">
<div class="card border-light ">
<h3 style="text-align: center;" class="card-header">Waypoints Selection</h3>
<div class="card-body" style="text-align: center;">
<button id="toggleEdit" type="button" class="btn btn-outline-warning"> Add </button>
<button id="clear" type="button" class="btn btn-outline-danger">Clear</button>
<button id="export" type="button" class="btn btn-outline-info">Export</button>
<p></p>
<button id="wp_send" type="button" class="btn btn-success">Send</button>
<p></p>
<button id="wp_skip" type="button" class="btn btn-primary">Skip</button>
<p></p>
<div style="text-align: center;" id="waypoints"></div>
</div>
</div>
</div>
<!-- end row 3 -->
</div>
<!-- end content flow -->
</div>
</body>
</html>