Robotics StackExchange | Archived questions

'Failed to connect to master in 30 seconds.' error

Hi, All! I am trying to run Gazebo on Ubuntu.

make px4sitl gazebo(my model name)

When I run the above code, I get the following error:

[Msg] Waiting for master.

[Err] [ConnectionManager.cc:121] Failed to connect to master in 30 seconds.

[Err] [gazebo_shared.cc:78] Unable to initialize transport.

[Err] [gazebo_client.cc:56] Unable to setup Gazebo

If anyone knows about this error please leave an answer. If you need more files, I can give them to you. Thank you!

Asked by jun-gil on 2023-02-09 21:17:46 UTC

Comments

That command has nothing to do with ROS on its own (it doesn't require ROS). The PX4 community would be of more help I think. But to point you in the right direction:

  • master does not refer to ros master here, but to "gazebo master"
  • As such, make sure gazebo is installed correctly. Note if you're using gazebo iginition (instead of gazebo classic), your command should be different. Paging through this https://docs.px4.io/main/en/simulation/ documentation should help. (they made documentation updates yesterday according to the linked page)

Asked by seqwalt on 2023-02-16 15:20:29 UTC

Answers