Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

turtlebot 2 demo added

  • Loading branch information...
commit 0ed02af694c499ccaf3e49aa6f77a6de5e35502d 1 parent 29d4cbf
@rctoris rctoris authored
View
7 demos.html
@@ -165,6 +165,13 @@ <h3 name="ros3djs" id="ros3djs">ros3djs Examples</h3>
<h3>Robonaut URDF</h3>
</section>
</div>
+ <div class="4u">
+ <section>
+ <span class="image image-full"><a href="demos/turtlebot-urdf.html"><img
+ src="images/demos/ros3djs-turtlebot-urdf.jpg" /> </a> </span>
+ <h3>Turtlebot 2 URDF</h3>
+ </section>
+ </div>
</div>
</article>
View
59 demos/turtlebot-urdf.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8" />
+<script type="text/javascript" src="http://cdn.robotwebtools.org/threejs/current/three.min.js"></script>
+<script type="text/javascript"
+ src="http://cdn.robotwebtools.org/ColladaAnimationCompress/0.0.1/ColladaLoader2.min.js"></script>
+<script type="text/javascript"
+ src="http://cdn.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
+<script type="text/javascript" src="http://cdn.robotwebtools.org/roslibjs/current/roslib.min.js"></script>
+<script type="text/javascript" src="http://cdn.robotwebtools.org/ros3djs/current/ros3d.min.js"></script>
+<script>
+ (function(i, s, o, g, r, a, m) {
+ i['GoogleAnalyticsObject'] = r;
+ i[r] = i[r] || function() {
+ (i[r].q = i[r].q || []).push(arguments)
+ }, i[r].l = 1 * new Date();
+ a = s.createElement(o), m = s.getElementsByTagName(o)[0];
+ a.async = 1;
+ a.src = g;
+ m.parentNode.insertBefore(a, m)
+ })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
+
+ ga('create', 'UA-39765480-1', 'robotwebtools.org');
+ ga('send', 'pageview');
+</script>
+<script type="text/javascript">
+ function init() {
+ var ros = new ROSLIB.Ros({
+ url : 'ws://demo3.robotwebtools.org:9090'
+ });
+
+ var viewer = new ROS3D.Viewer({
+ divID : 'urdf',
+ width : window.innerWidth,
+ height : window.innerHeight,
+ background : '#efefef',
+ antialias : true
+ });
+ viewer.addObject(new ROS3D.Grid());
+
+ new ROS3D.UrdfClient({
+ ros : ros,
+ tfClient : new ROSLIB.TFClient({
+ ros : ros,
+ angularThres : 0.01,
+ transThres : 0.01,
+ rate : 10.0
+ }),
+ path : 'http://resources.robotwebtools.org/',
+ rootObject : viewer.scene
+ });
+ }
+</script>
+</head>
+<body onload="init()">
+ <div id="urdf"></div>
+</body>
+</html>
View
BIN  images/demos/ros3djs-turtlebot-urdf.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.