The “move_fetch_robot_client.py” code doesn’t work. I’ve tried running it both in python2 as the instructions say to, and in python3 because I thought that might be the issue. Neither work. It might have to do with the placement in the “my_catkin_ws_python3/src” folder, but I found that ROS doesn’t recognize the package unless it is placed there due to the formatting from previous steps (even with the use of deactivate).
Below are the errors I got when trying to run the code using python2.
user:~/catkin_ws/src$ rosrun my_face_recogniser move_fetch_robot_client.py
Traceback (most recent call last):
File “/home/user/catkin_ws/src/my_catkin_ws_python3/src/face_recogniser/src/move_fetch_client.py”, line 36, in
from moveit_python import MoveGroupInterface,PlanningSceneInterface,PickPlaceInterface
File “/opt/ros/kinetic/lib/python2.7/dist-packages/moveit_python/init.py”, line 6, in
from .move_group_interface import MoveGroupInterface
File “/opt/ros/kinetic/lib/python2.7/dist-packages/moveit_python/move_group_interface.py”, line 30, in
from tf.listener import TransformListener
File “/home/user/.catkin_ws_python3/devel/lib/python3/dist-packages/tf/init.py”, line 35, in
exec(__fh.read())
File “”, line 30, in
File “/home/user/.catkin_ws_python3/devel/lib/python3/dist-packages/tf2_ros/init.py”, line 35, in
exec(__fh.read())
File “”, line 38, in
File “/home/user/.catkin_ws_python3/devel/lib/python3/dist-packages/tf2_py/init.py”, line 35, in
exec(__fh.read())
File “”, line 38, in
ImportError: dynamic module does not define init function (init_tf2)