Ramon Wijnands
Ramon Wijnands
So the problem I have is that I'm also using EventEmitter in my own code and so the library will have to be loaded twice. This is wasted data. With...
Quote from the documentation #### unsubscribe(callback) Unregisters as a subscriber for the topic. Unsubscribing stop remove all subscribe callbacks. **To remove a call back, you must explicitly pass the callback...
Something like this (not tested) ```js function handler(message) { console.log(message); listener.unsubscribe(handler); } listener.subscribe(handler); ```
Probably adding code to https://github.com/RobotWebTools/roslibjs/blob/c74032b05537f6d05e701a9562a7e64a94fbb0cc/src/core/SocketAdapter.js#L111 to store fragments and assemble them, and recalling `onmessage` with the full message. Make sure it works with and without compression.
`callService` has to following signature, so on error I would expect `failedCallback` to be called. You say this is not happening? ```js Service.prototype.callService = function(request, callback, failedCallback) { ```
A PR to fix that would be appreciated :smile:
On the browser side, I always use `console.log` because that is very well integrated in the chrome debugger (viewing/filtering) If you want, you could create a publisher to the `rosout`...
Does the socket.io layer even work? I've asked the question before but I didn't get an answer: https://github.com/RobotWebTools/roslibjs/issues/322
To what code are you refering? [This example](http://wiki.ros.org/roslibjs/Tutorials/Publishing%20video%20and%20IMU%20data%20with%20roslibjs#CA-3fc6413f79f1645f69db70dc902a3a12ecc54f7c_155)? I think you are able to avoid the overhead you are talking about when you use BSON encoding for rosbridge, with that...
I think this is all very experimental, because there is not much documentation about this stuff. I discovered this by reading the source. I think you are supposed to set...