Rviz is not launching from roscore running in another computer

asked 2019-05-06 19:22:33 -0500

Tawfiq Chowdhury gravatar image

updated 2022-04-17 11:10:17 -0500

lucasw gravatar image

I need to publish and subscribe between two computers, so I am running roscore from one host and exporting that host in the terminal from another computer, however, when try to launch Rviz using a launch file or try rosrun rviz rviz, it does not launch and give the following error:

Could not contact Ros Master at http: the_hostname_running_roscore

However, other files are being able to connect to that hose by exporting the host.

Please help.

edit retag flag offensive close merge delete

Comments

Is the ROS_HOSTNAME ip the same as the ROS_MASTER_URI ip on the computer running roscore? And on the other computer is the ROS_MASTER_URI ip the same as the computer running roscore while the ROS_HOSTNAME on that second computer is it's own ip?

That was my most common error when I was getting started until I wrote a script to figure that all out for me.

Tyrel gravatar image Tyrel  ( 2019-05-06 20:49:17 -0500 )edit