鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    运行handeye-calib:ImportError: dynamic module does not define module export function (PyInit__tf2)

    已定时 已固定 已锁定 已移动 已解决
    综合问题
    handeye-calib 手眼标定
    1
    2
    261
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 28496665612
      Kane
      最后由 编辑

      请问是什么情况鸭 melodic+python3.6.9(virtualenv虚拟环境运行的)

      wheeltec-client@ubuntu:~/Desktop/handeye-calib$ roslaunch handeye-calib online_hand_to_eye_calib.launch 
      ... logging to /home/wheeltec-client/.ros/log/70b5941e-4d26-11ee-9f7b-000c29bc7a6b/roslaunch-ubuntu-34491.log
      Checking log directory for disk usage. This may take a while.
      Press Ctrl-C to interrupt
      Done checking log file disk usage. Usage is <1GB.
      
      started roslaunch server http://192.168.0.100:44971/
      
      SUMMARY
      ========
      
      PARAMETERS
       * /online_hand_to_eye_calib/arm_pose_topic: /arm_pose
       * /online_hand_to_eye_calib/camera_pose_topic: /aruco_single/pose
       * /rosdistro: melodic
       * /rosversion: 1.14.13
       * /tf_to_pose/arm_pose_topic: /arm_pose
       * /tf_to_pose/base_link: /base_link
       * /tf_to_pose/end_link: /link5
      
      NODES
        /
          online_hand_to_eye_calib (handeye-calib/online_hand_to_eye_calib.py)
          tf_to_pose (handeye-calib/tf_to_pose.py)
      
      ROS_MASTER_URI=http://192.168.0.100:11311
      
      process[online_hand_to_eye_calib-1]: started with pid [34506]
      process[tf_to_pose-2]: started with pid [34507]
      Traceback (most recent call last):
        File "/home/wheeltec-client/Desktop/handeye-calib/src/handeye-calib/src/handeye/tf_to_pose.py", line 9, in <module>
          import tf
        File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/__init__.py", line 30, in <module>
          from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
        File "/opt/ros/melodic/lib/python2.7/dist-packages/tf2_ros/__init__.py", line 38, in <module>
          from tf2_py import *
        File "/opt/ros/melodic/lib/python2.7/dist-packages/tf2_py/__init__.py", line 38, in <module>
          from ._tf2 import *
      ImportError: dynamic module does not define module export function (PyInit__tf2)
      ======================================================
                欢迎使用手眼标定程序,我是小鱼   
              学习机器人一定要关注公众号鱼香ROS      
               回复手眼标定可获得算法推导及实现      
      ------------------------------------------------------
                  本程序中相关坐标系定义解析                 
         base_link:机械臂基坐标系(一般在固定在机器人底座)         
         end_link :机械臂末端坐标系(可在launch中配置)         
         camera   :相机坐标系         
         marker   :标定版所在坐标系         
      ======================================================
      [INFO] [1694053849.133065]: 手眼标定需要两个位置和姿态,一个是机械臂末端的位姿,将从话题/arm_pose中获取 ,另一个相机中标定版的位置姿态将从话题/aruco_single/pose获取,所以请确保两个话题有数据
      [tf_to_pose-2] process has died [pid 34507, exit code 1, cmd /home/wheeltec-client/Desktop/handeye-calib/src/handeye-calib/src/handeye/tf_to_pose.py __name:=tf_to_pose __log:=/home/wheeltec-client/.ros/log/70b5941e-4d26-11ee-9f7b-000c29bc7a6b/tf_to_pose-2.log].
      log file: /home/wheeltec-client/.ros/log/70b5941e-4d26-11ee-9f7b-000c29bc7a6b/tf_to_pose-2*.log
      [INFO] [1694053850.136647]: 等待机械臂位置和姿态话题到位 ...
      ^C[online_hand_to_eye_calib-1] killing on exit
      [INFO] [1694053859.546004]: 等待机械臂位置和姿态话题到位 ...
      shutting down processing monitor...
      ... shutting down processing monitor complete
      done
      wheeltec-client@ubuntu:~/Desktop/handeye-calib$ 
      
      1 条回复 最后回复 回复 引用 0
      • 28496665612
        Kane
        最后由 编辑

        已解决https://blog.csdn.net/Kane1440/article/details/132755966

        1 条回复 最后回复 回复 引用 0
        • 28496665612 2849666561 将这个主题标记为已解决,在
        • 第一个帖子
          最后一个帖子
        皖ICP备16016415号-7
        Powered by NodeBB | 鱼香ROS