Couldn't find an AF_INET address for []

asked 2019-01-29 05:31:37 -0600

metobom gravatar image

updated 2019-01-29 05:32:38 -0600

Hello. When I summon my robot in Gazebo I get this. Any ideas?

metobom@m3tobom:~$ gazebo
[FATAL] [1548761259.434075408]: You must call ros::init() before creating the first NodeHandle
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
[ERROR] [1548761259.439823974]: [registerPublisher] Failed to contact master at [:0].  Retrying...
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
edit retag flag offensive close merge delete

Comments

It does say "You must call ros::init() before creating the first NodeHandle" Have you checked your code to see if this is the case?

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-01-29 05:44:53 -0600 )edit

@metobom: I would suggest to add lots more context here: What are you trying to do exactly? Did you write a Gazebo plugin yourself? If not: which one are you using? Straight/plain gazebo does not do anything with ROS, so the FATAL error mentioning ros::init() confuses me.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-29 05:50:12 -0600 )edit

I launched Evarobot gazebo model with roslaunch evarobot_start start.launch then saved evarobot model from Model Editor. And then I tried to summon that model in a new gazebo world. My aim is to summon Evarobot in a world my own.

metobom gravatar image metobom  ( 2019-01-29 06:12:22 -0600 )edit