ROS Error: IOError: [Errno 13] Permission denied: ‘/home/zn/.ros/log/robotiq2FGripper.log’

Run Robotiq to control the driver node and report an error

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

Solution:

This problem is caused by the permissions of the ros file in this path.

Enter the following command to modify permissions:

sudo chmod 777 -R ~/.ros/

After the modification is completed, enter roscore again and it will be 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)

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *