ERROR: cannot launch node of type [turtlesim/turtlesim_node]

问题
ERROR: cannot launch node of type [turtlesim/turtlesim_node]: Cannot locate node of type [turtlesim_node] in package [turtlesim]. Make sure file exists in package path and permission is set to executable (chmod +x)
排查过程
输入

catkin_find --without-underlays --libexec --share turtlesim

显示在其他工作空间下有turtlesim的目录,而我们需要的是ros自带的turtlesim

/home/yang/demo01_ws/devel/share/turtlesim
/home/yang/demo01_ws/src/turtlesim

解决方案
按照该路径将文件删除
再次输入

catkin_find --without-underlays --libexec --share turtlesim

只显示系统自带的turtlesim

/opt/ros/noetic/lib/turtlesim
/opt/ros/noetic/share/turtlesim

这样就可以了

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值