Ask Your Question
0

rosbridge (Websocket protocol update ?)

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

BeuBeu gravatar image

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

http://tools.ietf.org/html/rfc6455

Sincerely,

Benoît

edit retag flag offensive close delete

5 answers

Sort by » oldest newest most voted
1

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

tjay gravatar image

updated 2012-04-16 08: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 publish link more
0

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

tjay gravatar image

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 publish link more
0

answered 2012-04-11 02:59:48 -0500

BeuBeu gravatar image

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

Benoît

edit flag offensive delete publish link more

Comments

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 16:23:11 -0500 )edit
0

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

BeuBeu gravatar image

updated 2012-04-11 08: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 publish link more
0

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

BeuBeu gravatar image

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://127.0.0.1:9090/ 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 publish link more

Comments

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

tjay ( 2012-04-15 16: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-16 02:31:18 -0500 )edit

Your Answer

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

Add Answer

[hide preview]

Stats

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

Seen: 387 times

Last updated: Apr 17 '12