Remote PC cannot connect to ROS Master
I cannot carry out gmapping from a remote PC. I can ssh thr turtlebot. I can ping it. and I can ping the remote PC from the turtlebot. But when I roslaunch turtlebot_rviz_launchers view_navigation.launch
, I get:
ERROR:unable to contact ROS master at [http://10.130.240.48:11311]
I made sure the ROS_MASTER_URI
in the bashrc script of the remote PC is the IP of the turtlebot. I have no clue what's going on. I made sure to source my workspace in the terminal I tried to launch the file from. When I try to rostopic list
it says ERROR: Unable to communicate with master !
Are you sure,
roscore
is running at 10.130.240.48?@ravijoshi the roscore on remote PC also cannot communicate with that IP.
Sorry, this isn't very clear. Let me make sure that we are on the same page. As per the reported error, we need to confirm that the
roscore
is running at 10.130.240.48. If there is noroscore
at 10.130.240.48, the error totally makes sense.There is no roscore at 10.130.240.48
That explains the error you are receiving. I assume 10.130.240.48 is the IP address of TurtleBot. Can you please restart the bot and check if
roscore
is invoked? For example, you may use the following commands:OR
@ravijoshi Do I
roscore
in turtlebot or remote PC?The networking and
roscore
related information is mentioned in turtlebot's documentation. I strongly suggest going through the documentation. May I request you to read and understand from [1] and [2]?@ravijoshi none of these links gives me information about the roscore information you are talking about. I can't roscore from remote PC because it can't communicate woth ros master. I can roscore from turtlebot2 but I dont see how that helps me in anyway. I can ping the turtelbot2 IP address from remote PC and I can ping the remote PC IP from turtlebot2. I can also ssh. I don't know what the problem possibly could be.