ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosbridge (Websocket protocol update ?)

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

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 merge delete

5 Answers

Sort by » oldest newest most voted
1

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

tjay gravatar image

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

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
0

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

BeuBeu gravatar image

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

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
0

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

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

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

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

Comments

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

tjay gravatar image tjay  ( 2012-04-15 11:25:18 -0600 )edit

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

BeuBeu gravatar image BeuBeu  ( 2012-04-15 21:31:18 -0600 )edit
0

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

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 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 gravatar image tjay  ( 2012-04-15 11:23:11 -0600 )edit

Question Tools

Stats

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

Seen: 1,333 times

Last updated: Apr 17 '12