Robotics StackExchange | Archived questions

Couldn't find an AF_INET address for []

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 []

Asked by metobom on 2019-01-29 06:31:37 UTC

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?

Asked by PeteBlackerThe3rd on 2019-01-29 06:44:53 UTC

@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.

Asked by gvdhoorn on 2019-01-29 06:50:12 UTC

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.

Asked by metobom on 2019-01-29 07:12:22 UTC

Answers