ros mrobot_teleop mrobot_teleop.launch 无法启动节点
常为如下情况:
ERROR: cannot launch node of type [mrobot_teleop/mrobot_teleop.py]: can't locate node [mrobot_teleop.py] in package [mrobot_teleop]
错误:无法启动类型为[mrobot_teleop / mrobot_teleop.py]的节点:无法找到程序包[mrobot_teleop]中的节点[mrobot_teleop.py]
解决办法:把自己写的节点设置为可执行文件权限
cd 节点根目录名(进入到你存放节点代码的目录下)
chmod 777 节点代码 (把权限设置为777)
eg:(以《ROS机器人开发实践》 胡春旭著 的代码为例)
转到→ mrobot_teleop
chmod 777 mrobot_teleop.py