[rosrun] Couldn‘t find executable named.....

前情提要:使用rosrun运行节点

报错:

(cp) twilight@pc: ~/project/catkin_ws$ rosrun cpoint filter_test.cpp
[rosrun] Couldn’t find executable named filter_test.cpp below /home/twilight/project/catkin_ws/src/cpoint
[rosrun] Found the following, but they’re either not files,
[rosrun] or not executable:
[rosrun] /home/twilight/project/catkin_ws/src/cpoint/src/filter_test.cpp

问题定位:

一般是该cpp文件没有可执行权限

解决:

sudo chmod 777 xxx.cpp

版权声明:本文为Twilightzr原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。