-
Notifications
You must be signed in to change notification settings - Fork 519
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
Some message types fail to be forwarded by rosbridge_server to subscribed clients #699
Comments
Thanks for the report. @kenji-miyake do you think this issue would be related to / fixed by #692? |
@jtbandes I'm sorry for my late reply. Actually, it seems a bit different because it uses |
I'm getting the same problem with regards to images. I can stream almost anything through the web bridge (test, strings, pointclouds), but the content of image topics seems to be lost somewhere. The data does seem to be echoed correctly using "ros2 topic echo". The subscription to the webbridge is successful, and it even appears to be sending data, I regularly get the message "Sending two parts, [fragment size:" message, but no data is received at the other side of the bridge. Setup: EDIT: |
I managed to solve my problem. It turns out ROSBridge was passing the data through, but fragmented. As such ROSLib picked up the data type was "fragment" instead of anything useful, and as such discarded the message. I fixed my problem by changing the fragment size in the launch file from 10000000 to 99999999. That solved my problem. Noirb's issue still stands |
Regarding |
@kenji-miyake : Sorry it took me a while to try your fix, but I'm happy to say it looks like it solved my issue :) |
Description
Some message types appear to be silently dropped by rosbridge_server (using websocket_launch). In particular,
shape_msgs/msg/MeshTriangle
(but there may be other similar messages which cause the same issue).When a
MeshTriangle
message is published, it can be received by local nodes, but rosbridge client subscribers never receive the message. Additionally, if a message containing a list ofMeshTriangle
is published, this message may be received by rosbridge clients if the list is empty, but as soon as the list contains data for at least oneMeshTriangle
the whole message appears to be lost or discarded. (i.e. ashape_msgs/msg/Mesh
message can be successfully received by a client if thetriangles
field is empty, but not if the field contains at least one entry)For reference, the message definition of
MeshTriangle
is:Steps To Reproduce:
MeshTriangle
not received by clientUsing the roslibjs simple example page (or any other working rosbridge client), add a subscriber to the triangle topic, load the page and open a browser console:
Expected Behavior
MeshTriangle messages are received on the Javascript side.
Actual Behavior
No messages are received on the Javascript side. Additionally, no errors appear to be logged by
rosbridge_server
.Steps To Reproduce:
Mesh
not received by client only if aMeshTriangle
is presentUsing the roslibjs simple example page (or any other working rosbridge client), add a subscriber to the mesh topic, load the page and open a browser console:
Verify the message is received on the javascript side:
New Mesh: Object { triangles: [], vertices: (1) […] }
Now, change the publisher to include one
MeshTriangle
in theMesh.triangles
field:ros2 topic pub /test/mesh shape_msgs/msg/Mesh "{triangles: [vertex_indices: [1, 2, 3]], vertices: [{x: 1, y: 2, z: 3}]}"
Expected Behavior
Mesh messages are received in both cases.
Actual Behavior
Mesh messages are only received if they contain no
MeshTriangle
data (but additional vertex data is fine).The text was updated successfully, but these errors were encountered: