在ROS中运行PYTHON文件时,如
rosrun plumbing_pub_sub demo02_sub_p.py
出现如下错误:
Couldn’t find executable named demo02_sub_p.py below /home/melodic/demo03_ws/src/plumbing_pub_sub
Found the following, but they’re either not files, or not executable:
/home/melodic/demo03_ws/src/plumbing_pub_sub/scripts/demo02_sub_p.py
解决办法:找到想要运行的那个PYTHON文件,鼠标右击–属性–权限
勾选允许作为执行文件
再重新运行一下PYTHON文件,发现可以正常运行
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)