I've changed some parameters and all nodes startup without error messages now:
started roslaunch server http://ros:51535/
SUMMARY
PARAMETERS
* /robot_description
* /robot_state_publisher/publish_frequency
* /rosbridge/port
* /rosbridge_websocket/authenticate
* /rosdistro
* /rosversion
* /use_gui
NODES
/
robot_state_publisher (robot_state_publisher/robot_state_publisher)
rosapi (rosapi/rosapi)
rosbridge_websocket (rosbridge_server/rosbridge_websocket)
tf2_web_republisher (tf2_web_republisher/tf2_web_republisher)
auto-starting new master
process[master]: started with pid [5714]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 48110e0a-c77e-11e2-be9c-00139508481b
process[rosout-1]: started with pid [5727]
started core service [/rosout]
process[rosbridge_websocket-2]: started with pid [5739]
process[rosapi-3]: started with pid [5742]
process[robot_state_publisher-4]: started with pid [5749]
[INFO] [WallTime: 1369735597.567725] Rosbridge WebSocket server started on port 9090
process[tf2_web_republisher-5]: started with pid [5781]
But when connecting to webserver, the robot will not be shown:
I use the following html code:
<html>
<head>
<title>MockBot URDF</title>
<meta charset="utf-8"/>
<script src="http://cdn.robotwebtools.org/threejs/current/three.min.js"></script>
<script src="http://cdn.robotwebtools.org/ColladaAnimationCompress/0.0.1/ColladaLoader2.min.js"></script>
<script src="http://cdn.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
<script src="http://cdn.robotwebtools.org/roslibjs/current/roslib.min.js"></script>
<script 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>
function init() {
var ip = location.host;
var ros = new ROSLIB.Ros({
url : 'ws://'+ip+':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()">
</body>
</html>
Now my new questions:
1. what is the path at ROS3D.UrdfClient ?
...
path : 'http://resources.robotwebtools.org/'
...
- what is this ???
<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>
Thanks for some more hints :-)
Cheers
Chrimo
BTW: you will find my last work at:
https://github.com/mockbot/MockBot.git