主机:
在~/.bashrc里面输入
export ROS_MASTER_URI=http://localhost:11311
export ROS_HOSTNAME=192.168.4.1
其ip地址如下:
inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
从机:
IP地址:inet addr:192.168.4.59 Bcast:192.168.4.255 Mask:255.255.255.0
在~/.bashr里面输入
export ROS_MASTER_URI=http://192.168.4.1:11311
export ROS_HOSTNAME=192.168.4.59