ROS Distributed Computing Network Issue

asked 2021-03-25 17:07:52 -0500

AM gravatar image

updated 2022-08-07 09:02:55 -0500

lucasw gravatar image

Hello Guys,

I have 3 PCs in my system.

PC 1 :is Raspberry pi based turtlebot PC 2 : is ROS Based System (Here I want to run roscore master node (ROS)) PC 3: Simulink on Windows

PC1 and 3 will be both acting as a publisher or subscriber.

I am able to ping and ssh both between PC1 and PC2 as well as PC 2 and PC 3. Connection between Simulink on PC3 and PC2 is also established. I run roscore on PC 2 but when I run roslaunch (launching camera nodes)from PC 1 and launch simulink node from PC 3 then I receive following error on both PC 1 and PC 3:

*"Unable to contact ROS master at [http:://<<pc2 ip="" address="">:11311] The traceback for the exception was written to the log file. "*

Details about environment variables :

My PC 1 in bashrc file has

  1. ROS_MASTER_URI : [http:://<<pc2 ip="" address="">:11311]
  2. ROS_IP : <<pc 1="" ip="" address="">>

My PC 2 in bashrc file has

  1. ROS_MASTER_URI : [http:://<<pc2 ip="" address="">:11311]
  2. ROS_IP : <<pc 2="" ip="" address="">>

My PC3 : In Simulink, there is "Configure ROS Network address " dialogue box (https://nl.mathworks.com/help/ros/ug/...) which has Network Address : Custom IP Address : <<pc2 address="" ip="">> and Node Address : <<pc2 address="" ip="">></pc2></pc2>

I believe I have setup environment variable in accordance with ROS distributed architecture network page. (http://wiki.ros.org/ROS/NetworkSetup)

Kindly let me know how should I approach to resolve this issue. I haven't changes ant /etc/hosts file. It's default as in the system.

Thanks

edit retag flag offensive close merge delete