编写好Python程序之后,在ROS上准备运行出现以下错误:
[rosrun] Couldn't find executable named moveit_ik_demo.py below /home/lwl/catkin_ws/src/probot_demo
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun] /home/lwl/catkin_ws/src/probot_demo/scripts/moveit_ik_demo.py
原因:文件没有执行权限
解决办法:先获取权限再执行
- 使用cd命令进入到存放要执行的.py文件夹下
- 执行命令: chmod +x 文件名.py
然后再接着之前的程序运行就可以了。