You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading #169 and a couple of related Issues, i saw that there is already some progress on using BSON for large amounts of (binary) data. However, if i understand this correctly, you can only use BSON for binary data flowing from ROS to the rosbridge Client.
In my usecase, i need to transfer large amounts of binary data from the rosbridge client to the ROS infrastructure. Additionally, i would like to send data from the rosbridge client side without encoding it in base64, which leads to an overhead in terms of computational power and transmission bandwidth.
Is it possible to add a bson-only-mode to the server that replaces all JSON encoding/decoding with BSON without rewriting large amounts of the core?
By doing that, we could still use JSON for legacy or "non-binary" applications, where as BSON can be used for scenarios where large amounts of binary data needs to be transferred.
When switch the server to a bson-only-mode, we also don't have to incorporate any changes to the ROSBridge protocol itself as far as i can tell (with my limited knowledge of the server internals).
/edit: Using BSON might also improve the stable receipt of messages, because it's prefixed with the total message length in bytes and terminates by a fixed 0x0 at the end. This might lead to an improvement for discussions like in #140 or RobotWebTools/roslibjs#126
The text was updated successfully, but these errors were encountered:
After reading #169 and a couple of related Issues, i saw that there is already some progress on using BSON for large amounts of (binary) data. However, if i understand this correctly, you can only use BSON for binary data flowing from ROS to the rosbridge Client.
In my usecase, i need to transfer large amounts of binary data from the rosbridge client to the ROS infrastructure. Additionally, i would like to send data from the rosbridge client side without encoding it in base64, which leads to an overhead in terms of computational power and transmission bandwidth.
Is it possible to add a bson-only-mode to the server that replaces all JSON encoding/decoding with BSON without rewriting large amounts of the core?
By doing that, we could still use JSON for legacy or "non-binary" applications, where as BSON can be used for scenarios where large amounts of binary data needs to be transferred.
When switch the server to a bson-only-mode, we also don't have to incorporate any changes to the ROSBridge protocol itself as far as i can tell (with my limited knowledge of the server internals).
/edit: Using BSON might also improve the stable receipt of messages, because it's prefixed with the total message length in bytes and terminates by a fixed 0x0 at the end. This might lead to an improvement for discussions like in #140 or RobotWebTools/roslibjs#126
The text was updated successfully, but these errors were encountered: