Connecting ROSBridge to ROS2 (Foxy)

asked 2021-12-09 06:51:24 -0500

GertV gravatar image


I'm having some trouble connecting passing data through the ROSBridge to ROSLibJs and/or Webviz and I'm hoping somebody here could provide some help.

I have successfully:

  • Installed ROS2 in a docker system via Dockerfile. I am using Ubuntu 20.04, ROS2 Foxy
  • Successfully played a ros bag and echoed the topics
  • Successfully listed all nodes and topics
  • Installed ROSBridge (ros-foxy-rosbridge-server)
  • Started the ROSBridge ros2 launch rosbridge_server rosbridge_websocket_launch.xml

My problem is that when I connect to the ROSBridge, it responds that a client has indeed connected, show in the image provided by the URL, but I am unable to retrieve any data through it.


A secondary issue that I'm seeing is that the "rosapi" node is created twice when I launch the ROSBridge. This gives the warning shown in the screenshot that a node has been registered twice.

Any help would be appreciated. I can provide a Dockerfile showing the error if required.


edit retag flag offensive close merge delete