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

unable to contact ROS master at

asked 2020-01-28 09:58:07 -0500

sinsinsinsin gravatar image

updated 2020-01-28 11:37:43 -0500

gvdhoorn gravatar image

Hi, This is a simple question but troubled me hours.

I am following the turtlebot3 tutorial. Setting up the bashrc of host-pc with PC IP address 192.168.48.132 :

export ROS_MASTER_URI=http://**192.168.48.132**:11311
export ROS_HOSTNAME=**192.168.48.132**

Setting up the bashrc of turtlebot3 with its own IP 192.168.137.192 :

export ROS_MASTER_URI=http://**192.168.48.132**:11311
export ROS_HOSTNAME=**192.168.137.192**

Then, run the roscore on remote PC with the printout like this:

Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.48.132:38089/
ros_comm version 1.12.14

SUMMARY

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES

auto-starting new master
process[master]: started with pid [2167]
ROS_MASTER_URI=http://192.168.48.132:11311/

setting /run_id to ee0e1f5e-41df-11ea-8d67-000c29f89067
process[rosout-1]: started with pid [2180]
started core service [/rosout]

then run

roslaunch turtlebot3_bringup turtlebot3_robot.launch on turtlebot3

get 'unable to contact ROS master at [http://192.168.48.132:11311/]'

the bashrc setting ip is the same but why the turtlebot cannot find the ros master?

Thank you

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-01-28 10:27:41 -0500

sinsinsinsin gravatar image

solved. It is because I am using Virtual Machine. The virtual ubuntu's ip address is 192.168.48.132 which is not the real wireless router address which starts with 192.168.137.xx

edit flag offensive delete link more

Comments

So How did you solve this problem? Can the virtual machine connect to ROSMASTER?

Siemen gravatar image Siemen  ( 2021-04-01 07:49:27 -0500 )edit
0

answered 2021-05-22 15:39:07 -0500

ike29 gravatar image

I am having the same issue. Can i get some assistance with it? pi@raspberrypi:~ $ ping hgos ping: hgos: Temporary failure in name resolution pi@raspberrypi:~ $ roslaunch turtlebot3_bringup turtlebot3_robot.launch ... logging to /home/pi/.ros/log/1bcb02d8-bb3b-11eb-bb5a-b827eb2ac6f9/roslaunch-raspberrypi-2210.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.1.3:45445/

SUMMARY

PARAMETERS * /rosdistro: kinetic * /rosversion: 1.12.14 * /turtlebot3_core/baud: 115200 * /turtlebot3_core/port: /dev/ttyACM0 * /turtlebot3_core/tf_prefix: * /turtlebot3_lds/frame_id: base_scan * /turtlebot3_lds/port: /dev/ttyUSB0

NODES / turtlebot3_core (rosserial_python/serial_node.py) turtlebot3_diagnostics (turtlebot3_bringup/turtlebot3_diagnostics) turtlebot3_lds (hls_lfcd_lds_driver/hlds_laser_publisher)

ERROR: unable to contact ROS master at [http://192.168.1.2:11311] The traceback for the exception was written to the log file

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-01-28 09:58:07 -0500

Seen: 3,646 times

Last updated: Jan 28 '20