Tag Archives: ROS Error

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)

ROS Error: ROS ERROR: cannot launch node of type [mbot_teleop/mbot_teleop.py]

Cause of problem

mbot_teleop.py is not an executable file. change MBot_teleop.py to executable

Solution:

Enter the directory: /URDF_ws/src/mrobot_teleop/scripts (where urdf_ws is my workspace)

Find file: locate mBot_teleop.py

Right click the PY file -> Attribute -> Check execute: allow executing file as program of permission