获取主从机的ip地址
ifconfig
主机: 172.17.0.4
从机x:172.17.0.3
主机配置
export ROS_MASTER_URI=http://172.17.0.4:11311
export ROS_IP=172.17.0.4
roscore
从机x配置
export ROS_MASTER_URI=http://172.17.0.4:11311
export ROS_IP=172.17.0.3
rostopic list
ifconfig
主机: 172.17.0.4
从机x:172.17.0.3
export ROS_MASTER_URI=http://172.17.0.4:11311
export ROS_IP=172.17.0.4
roscore
export ROS_MASTER_URI=http://172.17.0.4:11311
export ROS_IP=172.17.0.3
rostopic list