Problem running nodes, master have 'WARNING: ROS_MASTER_URI [http://localhost:11311] host is not set to this machine' and nodes 'Couldn’t find an AF_INET address for [localhost]'
Hi, I have been running ros nodes in my machine but suddenly I got these erros every time when I'm running nodes: Master:
$roscore
(stuff about the starting of the master)
SUMMARY
PARAMETERS
*/rosdistro: kinetic
*/rosversion: 1.12.12
NODES
WARNING: ROS_MASTER_URI [http://localhost:11311] host is not set to this machine
auto-starting new master
process[master]: started with pi [5233]
ROS_MASTER_URI=http://182.168.1.90:11311/
etc.
Any node:
Couldn’t find an AF_INET address for [localhost]
Couldn’t find an AF_INET address for [localhost]
ERROR [1519245068]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying
Couldn’t find an AF_INET address for [localhost]
Couldn’t find an AF_INET address for [localhost]
Couldn’t find an AF_INET address for [localhost] ...
Is there an entry in
/etc/hosts
for localhost?