Couldn't find an AF_INET address for

vim ~/.bashrc

#输入内容

export ROS_HOSTNAME=你的hostname
export ROS_MASTER_URI=http://(目标主机的IP):11311
export ROS_IP=192.168.3.10 (本机的IP)

  

vim /etc/hosts

  按照前几行格式,输入目标主机IP以及hostname

source ~/.bashrc

原文地址:https://www.cnblogs.com/sea-stream/p/9759804.html