[ERROR] [1571614395.918484166]: [registerPublisher] Failed to contact master at [localhost:11311] 解决

在ubuntu 18中运行rosrun turtlesim turtlesim_node时
报出以下错误时

[ERROR] [1571614395.918484166]: [registerPublisher] Failed to contact master at [localhost:11311]

应该检查是不是ros服务没有开启
可以在一个终端运行roscore开启服务,然后在另外一个终端再运行rosrun turtlesim turtlesim_node
就可以了

posted @ 2021-07-17 16:13  地球最可爱  阅读(254)  评论(0)    收藏  举报