ros-industrial / robotiq

Robotiq packages (http://wiki.ros.org/robotiq)
BSD 2-Clause "Simplified" License
229 stars 378 forks source link

ImportError: No module named robotiq_2f_gripper_control.baseRobotiq2FGripper #154

Open jokermay opened 5 years ago

jokermay commented 5 years ago

hello, I followed the tutorials "Control of a 2-Finger Gripper using the Modbus RTU protocol (ros kinetic and newer releases)" as tutorials , however, when i run the command "rosrun robotiq_2f_gripper_control Robotiq2FGripperRtuNode.py /dev/ttyUSB0" , it errors as joker@joker:~/catkin_ws$ rosrun robotiq_2f_gripper_control Robotiq2FGripperRtuNode.py /dev/ttyUSB0 Traceback (most recent call last): File "/home/joker/catkin_ws/src/robotiq/robotiq_2f_gripper_control/nodes/Robotiq2FGripperRtuNode.py", line 50, in <module> import robotiq_2f_gripper_control.baseRobotiq2FGripper ImportError: No module named robotiq_2f_gripper_control.baseRobotiq2FGripper has anyone else met this problem? Why can not the node find the module "robotiq_2f_gripper_control.baseRobotiq2FGripper"?

Pranav186 commented 4 years ago

Hello, @jokermay , I am facing the same error. Did you find the solution to it?

ondrejbiza commented 1 year ago
cd ~/catkin_ws
rosdep install --from-paths src --ignore-src -r -y
catkin_make