I have already rosrun rosbridge rosbridge.py
And then when I run a test html file in browser "connection closed" has been showed...why it can`t connect to rosbridge?
html file:
function main() {
var connection = new ros.Connection("ws://hostname:9090");
connection.setOnClose(function (e) {
document.write('connection closed');
});
connection.setOnError(function (e) {
document.write('error!');
});
connection.setOnOpen(function (e) {
document.write('connected to ROS');
});
}
Originally posted by koprenee on ROS Answers with karma: 15 on 2012-07-19
Post score: 0
Original comments
Comment by Felix Endres on 2012-07-19:
You have no tags on your question, it is unlikely to be found by people who know about these things