ROS报错:IOError: [Errno 13] Permission denied: '/home/zn/.ros/log/robotiq2FGripper.log'

运行Robotiq控制驱动节点报错

rosrun robotiq_2f_gripper_control Robotiq2FGripperRtuNode.py / dev / ttyUSB0
IOError: [Errno 13] Permission denied: '/home/zn/.ros/log/robotiq2FGripper.log'

解决方案

这个问题是由于该路径下ros文件权限造成的。

输入以下命令修改权限:

sudo chmod 777 -R ~/.ros/

修改完成后再次输入roscore就ok了

/home/zn/robotiq_ws/src/robotiq/robotiq_2f_gripper_control/nodes/Robotiq2FGripperRtuNode.py:65: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
  pub = rospy.Publisher('Robotiq2FGripperRobotInput', inputMsg.Robotiq2FGripper_robot_input)

 

posted @ 2022-03-06 15:26  feifanren  阅读(624)  评论(0编辑  收藏  举报