Ask Your Question

rosbridge (Websocket protocol update ?)

asked 2012-04-10 05:45:30 -0500

Hello everybody, Did someone plan to update this package according the last websocket protocol ?



edit retag flag offensive close merge delete

5 answers

Sort by » oldest newest most voted

answered 2012-04-16 03:15:45 -0500

updated 2012-04-16 03:17:52 -0500

Are you sure you're running the latest version? A quick sanity check for me testing this webpage against this service works correctly under Firefox 11 for Windows, Firefox 11 for Fedora, Chrome 18 for Windows, and Chrome 18 for Fedora:

os/browser sanity check

edit flag offensive delete link more

answered 2012-04-11 04:12:56 -0500

I implemented the last webscoket protocol for the handshake function. It works because my socket status is connected :). When I launch run rosbridge node , I have "2 concurrent connection"

I register a handler for a specific topic and subscribe to this topic following from_answer_ros and rosbridge_tutorial

Apparently it works because I dont catch any error but I don't receive message from this topic in my javascript client. Finally, after my main function ended, I get an error in the javascript file (from firebug)

The connection to ws:// was interrupted while the page was loading.

this.socket = new WebSocket(url);

And appears in Rosbridge terminal :

closed 9

I can't join my javascript code because my Karma is too low. Let me know if you need it

edit flag offensive delete link more


I'm having a bit of trouble following. Does rosbridge seem to have compatibility problems with FF 11?

tjay ( 2012-04-15 11:25:18 -0500 )edit

Yes, rosbridge doesn't work with FF11 because the websocket protocol has been updated in this version of FF

BeuBeu ( 2012-04-15 21:31:18 -0500 )edit

answered 2012-04-10 21:59:48 -0500

Hello, In fact I have developed an application like yours. My goal is to have several widgets in the clients side (javascript). For example one widget for a basic display of a topic in ROS. A second one for some graph using flot. An other one which could display the roll,pitch,yaw ... It's also using websockets and it is multithreaded. For now, i display messages from ros each time a new message arrives (using threading.Event()) One of the problem of my application is the CPU consumption

Last week, i discovered your application which looks really incredible. Moreover you can write messages in ros.That's why i will update your node with the last websocket protocol and compared the CPU consumption. I 'll give you some feedback soon


edit flag offensive delete link more


I'm glad rosbridge could be of some use to you. One thing you should definitely check out if CPU usage is of a concern to you is the hz rosparam. For example, rosparam set /brown/rosbridge/hz 200 will greatly reduce usage compared to the default.

tjay ( 2012-04-15 11:23:11 -0500 )edit

answered 2012-04-10 09:09:30 -0500

That's the (not necessarily specifically scheduled) plan. Do you know of any release browser implementing the new draft? That's usually when we make time for the update.

edit flag offensive delete link more

answered 2012-04-11 03:29:42 -0500

updated 2012-04-11 03:50:43 -0500

Sorry Tjay i didn't answer to your question. For example, Firefox V11.0 uses the last websocket protocol. Moreover, MozWebsocket is deprecated

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]


Asked: 2012-04-10 05:45:30 -0500

Seen: 441 times

Last updated: Apr 17 '12