93 lines
3.7 KiB
HTML
93 lines
3.7 KiB
HTML
<div class="tab-pane" id="rosbridgeconnection">
|
|
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
|
|
<form class="form-inline" role="form" onsubmit="return validateForm()">
|
|
<div id="ConnectionIPForm" class="form-group has-warning" align="center">
|
|
<span>
|
|
<label id="ConnectionIPLabel" class="control-label" for="inputWarning">
|
|
Connection Warning
|
|
</label>
|
|
</span>
|
|
|
|
<span>
|
|
<div class="input-group">
|
|
<input type="text" id="ConnectionIPInput" class="form-control" placeholder="ROS Bridge Master IP" placeholder="No IP Address yet">
|
|
<span class="input-group-btn">
|
|
<button id="ConnectionButton" type="button" onclick="ros.attemptConnection()" class="btn btn-warning">
|
|
Connect
|
|
<script type="text/javascript">
|
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
|
</script>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
Predefined ROSBridge Connections
|
|
</div>
|
|
<div class="panel-body">
|
|
<button id="localhostButton" type="button" onclick="ros.attemptConnection('ws://localhost:9090')" class="btn btn-primary">
|
|
localhost
|
|
<script type="text/javascript">
|
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
|
</script>
|
|
</button>
|
|
<button id="TitanButton" type="button" onclick="ros.attemptConnection('ws://titan.local:9090')" class="btn btn-primary">
|
|
Titan
|
|
<script type="text/javascript">
|
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
|
</script>
|
|
</button>
|
|
<button id="PhoebeButton" type="button" onclick="ros.attemptConnection('ws://phoebe.local:9090')" class="btn btn-primary">
|
|
Phoebe
|
|
<script type="text/javascript">
|
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
|
</script>
|
|
</button>
|
|
<button id="RheaButton" type="button" onclick="ros.attemptConnection('ws://rhea.local:9090')" class="btn btn-primary">
|
|
Rhea
|
|
<script type="text/javascript">
|
|
document.getElementById("ConnectionIPInput").value = ros.connectionName;
|
|
</script>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
// Create a connection to the rosbridge WebSocket server.
|
|
ros.connect(ros.connectionName);
|
|
</script>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
ROS Topics.
|
|
</div>
|
|
<div class="panel-body">
|
|
|
|
<div class="col-sm-1" id="ROSTopics">
|
|
N/A
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
ROS Nodes.
|
|
</div>
|
|
<div class="panel-body">
|
|
|
|
<div class="col-sm-1" id="ROSNodes">
|
|
N/A
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div> |