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

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

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

Logo

一站式 AI 云服务平台

更多推荐