-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on how to make roslibjs work with bson only mode on rosbridge #345
Comments
How do you know "roslib did not pick this up". What error did you get? Did you get the following message? |
No, I did not get that message. What happened is that I got a message that it managed to connect the web socket (from This was the behaviour both with and without the |
@Rayman I think what @VorpalBlade was talking about is that the roslibjs/src/core/SocketAdapter.js Lines 15 to 17 in a07fa1d
If that variable exists (presumably from the I'm catching errors like @VorpalBlade What you would have to do it set global.bson = require('bson'); The version you wrote using |
Ah, I need to add a shim file for |
I'm interested in running with BSON only mode on the rosbridge side. However I can't figure out how to make this work, as I get errors like this (and no data passed):
I have added the bson module (I'm using webpack currently to generate the client side javascript, since the ready made browser bundle file did not work for bson).
It does not seem like roslib picks this up. Nor does it help modifying roslib to have it as a hard dependency in SocketAdapter.js. Any advice on how to get this working would be useful.
The text was updated successfully, but these errors were encountered: