Closed HuaYuXiao closed 8 months ago
对于从机的.bashrc上面应该设置为:
export ROS_HOSTNAME=192.168.3.239
export ROS_MASTER_URI=http://192.168.3.142:11311
pi@raspberrypi:~/catkin_ws $ nano ~/.bashrc
pi@raspberrypi:~/catkin_ws $ source ~/.bashrc
同样的,在主机上修改 /etc/hosts 文件,加入从机的ip及hostname。
192.168.3.142 ubuntu
192.168.3.239 pi
hyx@ubuntu:~/catkin_ws$ sudo nano /etc/hosts
You can only have one roscore active (and configured) at a time. In case of the turtlebot the roscore should always run on the turtlebot itself to keep latencies and actual network usage low.