ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ROSBridge For Multiple Processes

asked 2019-01-16 10:51:02 -0500

CodeMonkey gravatar image

I have ROSBridge and I've successfully managed to implement it, but only so long as my other process is on a different machine. I run it on port 9090 and I run Unity on a different machine on port 9090 and they talk just fine. If I move the Unity app to the same machine, however, it never connects. I assume because two processes can't both use port 9090 simultaneously. So is it not possible to use ROSBridge between processes on the same machine? Or what do I need to do to get this to work?

edit retag flag offensive close merge delete


How are you launching the bridge and what kind of topics are you bridging? I have a dynamic bridge that correctly bridges a large number of topics / processes and did not do anything special. Do you have the ROS1 core running on the machine with the bridge?

borgman_jeremy gravatar image borgman_jeremy  ( 2019-01-22 16:03:45 -0500 )edit

I'm launching the bridge from the terminal. It's not a problem with the bridge though since I can use it from a Windows machine. It turns out the problem is with Unity when building for Linux. It's not getting the right packages and thus fails to connect a websocket. Not sure if I can fix myself...

CodeMonkey gravatar image CodeMonkey  ( 2019-01-23 12:39:58 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-01-22 14:43:55 -0500

CodeMonkey gravatar image

It is not a port conflict. The host port uses port 9090 but the client port uses a randomly assigned port for the sake of reaching out to port 9090. This is otherwise entirely feasible and the problem lies somewhere else.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-01-16 10:51:02 -0500

Seen: 463 times

Last updated: Jan 22 '19