[ERROR] Failed to contact master at [localhost:11311]. Retrying...

[ERROR] [1446531999.044935824]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...

解决:请检查 roscore 是否正常打开。

        每次进行运行测试时都要首先运行 roscore。

原文地址:https://www.cnblogs.com/Jessica-jie/p/6591230.html