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.

Ros_bridge not publishing ROS messages

See original GitHub issue

I’ve followed the tutorial on Setting up a new Unity Project, but want to set up the a new catkin_ws independent of the provided docker space. I’m quite new to ROS so this might be obvious. I’ve tried to run roslaunch rosbridge_server rosbridge_tcp.launch bson_only_mode:=true And then press play in Unity. The console in Unity then reports that connection to ros bridge is established, and rostopic list confirms that the topics have been published. However, when opening up rviz to view the sensors, none of them receive any messages.

Is it possible to get access files in the docker container so that it is easier to set up a workspace outside of docker? Does anyone know how to solve this issue?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ghostcommented, Apr 15, 2022

I found the easy way to solve this issue, but it only works on a linux host.

Add the --network host argument to the docker run command. You can also remove the --publish arguments to prevent the getting WARNING: Published ports are discarded when using host network mode.

Proof of fix

Run the docker image

docker run -it --rm \
--network host \
--name my_zerosim_vnc_docker \
zerodog/zerosim_ros_vnc:latest \
roslaunch zero_sim_ros basic_unity_editor.launch

rosbridge 0.11.13 (ROS Noetic, Ubuntu 20.04 LTS)

➜  catkin_ws roswtf
Loaded plugin tf.tfwtf
No package or stack in the current directory
================================================================================
Static checks summary:

No errors or warnings
================================================================================
Beginning tests of your ROS graph. These may take a while...
analyzing graph...
... done analyzing graph
running graph rules...
... done running graph rules
running tf checks, this will take a second...
... tf checks complete

Online checks summary:

Found 1 warning(s).
Warnings are things that may be just fine, but are sometimes at fault

WARNING No tf messages

➜  catkin_ws rosversion rosbridge_server
0.11.13
➜  catkin_ws rostopic echo /client_count 
data: 0
---
2reactions
ghostcommented, Jul 1, 2021

@EdvardGrodem, thank you for your reply. After switching to a different version of rosbridge as mentioned above, all the topics are visible now. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to view some ROS1 messages using ROS bridge
I enter the container with docker exec -it foxy-ros-bridge bash . If I source the ROS1 workspace with ROS1, I can see the...
Read more >
Simple Message failed - rosbridge
I created the topic three with that message through rosbridge { “op”: “advertise”, “topic”: “/three”, “type”: “std_msgs/String” } but failed ...
Read more >
I'm trying to publish a message of a Tizen based app on ros ...
The app is running on a Tizen based smartwatch. If i try to publish geometry messages, like the device orientation, i have no...
Read more >
Nvidia IsaacSim rosbridge__no message published on ...
I Tried to Publish ROS messages from builtin ROS examples in Isaac sim. using rostopic list I see advertised topics but not receiving...
Read more >
11. Custom Message — isaacsim latest documentation
Publishing and receiving ROS messages in standalone python scripts. Using custom ROS message that contains contact sensor information.
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