Updated README with instructions for ROSBridge. Changed Colouring
This commit is contained in:
11
README.md
11
README.md
@@ -1,5 +1,16 @@
|
|||||||
## Asctec Pelican GUI ##
|
## Asctec Pelican GUI ##
|
||||||
|
|
||||||
|
#Getting server up and running#
|
||||||
|
|
||||||
|
Here the rosbridge\_suite that is used to linke the websocket and ROS: http://wiki.ros.org/rosbridge_suite
|
||||||
|
|
||||||
|
Basic ROS functionality of rosbridge: http://wiki.ros.org/roslibjs/Tutorials/BasicRosFunctionality
|
||||||
|
|
||||||
|
the launch command: roslaunch rosbridge_server rosbridge_websocket.launch
|
||||||
|
|
||||||
|
#TODO
|
||||||
|
|
||||||
|
|
||||||
By using ROSBridge, this GUI will attempt to display relevnt informaiton over the web for any device.
|
By using ROSBridge, this GUI will attempt to display relevnt informaiton over the web for any device.
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
|
|||||||
14
index.html
14
index.html
@@ -36,6 +36,7 @@ ws://192.168.1.102:9090
|
|||||||
document.getElementById("ConnectionIPForm").className = "form-group has-warning has-feedback";
|
document.getElementById("ConnectionIPForm").className = "form-group has-warning has-feedback";
|
||||||
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
||||||
document.getElementById("ConnectionIPLabel").innerHTML = 'No connection';
|
document.getElementById("ConnectionIPLabel").innerHTML = 'No connection';
|
||||||
|
document.getElementById("ConnectionButton").className = "btn btn-warning"
|
||||||
|
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
@@ -45,7 +46,8 @@ ws://192.168.1.102:9090
|
|||||||
console.log('Connection made!');
|
console.log('Connection made!');
|
||||||
document.getElementById("ConnectionIPForm").className = "form-group has-success has-feedback";
|
document.getElementById("ConnectionIPForm").className = "form-group has-success has-feedback";
|
||||||
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
||||||
document.getElementById("ConnectionIPLabel").innerHTML = 'Connection made';
|
document.getElementById("ConnectionIPLabel").innerHTML = 'Connection made at:';
|
||||||
|
document.getElementById("ConnectionButton").className = "btn btn-success"
|
||||||
});
|
});
|
||||||
|
|
||||||
ros.on('close', function() {
|
ros.on('close', function() {
|
||||||
@@ -111,7 +113,7 @@ ws://192.168.1.102:9090
|
|||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<h1>Asctec Pelican CHANGED</h1>
|
<h1>Asctec Pelican</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <button onclick="testAlert('<strong>Danger!</strong> ')">test</button> -->
|
<!-- <button onclick="testAlert('<strong>Danger!</strong> ')">test</button> -->
|
||||||
@@ -119,9 +121,9 @@ ws://192.168.1.102:9090
|
|||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form>
|
<form>
|
||||||
<div id="ConnectionIPForm" class="form-group has-warning has-feedback">
|
<div id="ConnectionIPForm" class="form-group has-warning has-feedback" align="center">
|
||||||
<label id="ConnectionIPLabel" class="col-sm-2 control-label" for="inputWarning">Connection warning</label>
|
<label id="ConnectionIPLabel" class="col-sm-3 control-label" for="inputWarning">Connection warning</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-6">
|
||||||
<input type="text" class="form-control" id="ConnectionIPInput" value="No IP Address yet">
|
<input type="text" class="form-control" id="ConnectionIPInput" value="No IP Address yet">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
||||||
@@ -140,7 +142,7 @@ ws://192.168.1.102:9090
|
|||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">Pelican Status </div>
|
<div class="panel-heading">Pelican Status </div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
Battery Voltage:
|
<label class="col-sm-2"> Battery Voltage: </label>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div id="VoltageDisplay" class="progress-bar progress-bar-striped active" role="progressbar"
|
<div id="VoltageDisplay" class="progress-bar progress-bar-striped active" role="progressbar"
|
||||||
aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:100%" >
|
aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:100%" >
|
||||||
|
|||||||
Reference in New Issue
Block a user