Issue Connecting to ROS Network on another computer. "Cannot connect to ROS master"
30 views (last 30 days)
Show older comments
Colin Szajner on 26 Nov 2019
Commented: Shivam Bajpai on 4 Nov 2022
I have been following tutorials online and those provided by Mathworks such as the one linked here:
I am running MATLAB on a Windows 10 computer while running a ROS master on Ubuntu on a separate one.
I used hostname -I to find the ip address of the computer running the ROS master, and attempted to use rosinit('IPaddress') in MATLAB and other methods such as those mentioned in the tutorial and it fails to connect.
The error is "Cannot connect to ROS master at http://IPaddress:11311. Check the specified address or hostname." Where IPaddress is the address gotten using hostname -I in a linux terminal.
I have no firewall on Ubuntu, and I turned off the firewall on my windows pc to no avail as well.
Both are on the same network/internet (my home internet).
Running roscore, my ROS_MASTER_URI is http://localhost:11311. I am using Ubuntu 16.04 and ROS Kinetic.
Any idea how to fix this issue?
Find more on Network Connection and Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!