question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot get data from rosbridge_suite v1.1.0

See original GitHub issue

Description I just upgraded my container’s rosbridge_suite from v1.0.7 to latest on apt v1.1.0 and foxglove seems to have stopped working… It registers as a client, but doesn’t seem to receive anything as shown here: image

Previously when running v1.0.7 I would get something like the following. This also includes an extra topic I manually published over ros2 topic pub /test_topic geometry_msgs/msg/Point {}: image

I have double checked with my own frontend running roslibjs connecting to the same rosbridge suite seems to work fine for both the older and newer versions.

For context, I have rosbridge_suite running as a Docker Container running this simple container: https://github.com/StarlingUAS/ProjectStarling/blob/master/system/rosbridge-suite/Dockerfile

It is possible that I might have misunderstood something or provided the wrong configuration. But I have found that the configuration is reproducable on other machines (with the docker file below at least). I have not attempted to test outside of the dockerfile natively as I do not have the correct machines!

I have attempted to look into it, but I have no idea where to start. I thought it might be that the rosbridge_server launch file may no longer be valid, or the topics_glob handling had changed, but providing my own launchfile did not appear to fix anything. Foxglove doesn’t provide any indications as to what might be going wrong, and neither does rosbridge!

Many Thanks in advance

  • Version: 0.27.0
  • OS: Windows & Linux & Chrome

Steps To Reproduce

Testing rosbridge_suite v1.1.0:

  1. Run the following container: docker run -it --rm --network test_default -p 9090:9090 uobflightlabstarling/rosbridge-suite:latest. This runs the dockerfile linked above.
  2. In a seperate terminal, setup a rostopic pub by running docker run -it --rm --network test_default uobflightlabstarling/rosbridge-suite:latest bash, Source ros (. /opt/ros/foxy/setup.bash) and run ros2 topic pub /test_topic geometry_msgs/msg/Point {}
  3. Open Foxglove desktop or web and connect to rosbridge instance on localhost:9090.
  4. You should see that rosbridge_suite has a new client connected and the foxglove does not complain, but it is all waiting for data.

To test the working rosbridge_suite v1.0.7, you can use the same containers except with the tag v0.1.0 instead of latest.

Inside the containers you can check the version of rosbridge-suite by using dpkg -s ros-foxy-rosbridge-suite | grep Version

Expected Behavior Foxglove connects succesfully and shows the topics in the second image, as well as displays the /test_topic topic

Actual Behavior Foxglove connects successfully but it is show to be waiting for data.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
defunctzombiecommented, Jan 24, 2022

This commit came after 1.1.0 was released and looks related.

0reactions
mhl787156commented, Jan 26, 2022

Okay thanks, for now I will build rosbridge from scratch, but it looks like it will all be resolved with the next foxy sync.

Thanks for the help! Happy for this issue to be closed 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Websocket roslaunch launches rosapi twice #704 - GitHub
Description Hi, I have stumbled across an odd bug where when I try to ... Cannot get data from rosbridge_suite v1.1.0 foxglove/studio#2715.
Read more >
[roslibjs,rosbridgesuite] How to get data back from the robot in ...
According to the roslibjs documentation, we should be able to get the data back from the robot by using a listener:
Read more >
ROS web tutorial part 1 - rosbridge server and roslibjs
By the end of this tutorial we will have a working prototype of a simple website allowing you to control a robot using...
Read more >
rosbridge - ROS Answered - MetroRobots.com
unable to publish data into ROS using unity3d ... Migrate from rosbridge 1.0 to 2.0 ... [roslibjs,rosbridgesuite] How to get data back from...
Read more >
ROS 1 - Docs - Foxglove Studio
Foxglove Studio can load local and remote ROS 1 (.bag) files, or connect directly to a running ROS stack using a Rosbridge (WebSockets)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found