在给ur5和realsense d435进行手眼标定时踩得坑
AttributeError: 'module' object has no attribute'CALIB_HAND_EYE_TSAI'
出现这个问题的原因在于python的opencv版本过低,低版本的opencv中没有手眼标定的函数,因此需要更新opencv版本即可。
Thanks for the help @lyh458 !
I had a cv problem(cv2.CALIB_HAND_EYE_TSAI) yesterday.
I find the path of python in ROS:(/opt/ros/kinetic/lib/python2.7/dist-packages
) is in front of many other path of python, but the cv2.so in ROS is not approprite because of lack CALIB_HAND_EYE_TSAI.(I have use pip3 install opencv-python
python -m pip install opencv-contrib-python
to install module and it's installed in ~/.local/lib/python2.7 which is after the path of python in ROS)
I have to use the code below to find the correct of cv2.import sys
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
import cv2
sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages')
I'd like to know is there any other solution. Thanks!
My environment:
ubuntu16, ros-kinetic
github上面的解决方案
https://github.com/IFL-CAMP/easy_handeye/issues/74
相关文章
- python中,如何将多行进行输出,同时将行尾的换行符去掉
- mysqldump如何针对某些数据库进行备份?针对某个数据库进行备份?
- ✨使用Python进行线性规划求解,高端操作亮瞎你的双眼(文末技术彩蛋)
- elasticsearch Analyzer 进行分词详解
- 07平衡负载:gRPC是如何进行负载均衡的?
- 你可能不需要 jQuery!使用原生 JavaScript 进行开发
- 在matlab中进行地理坐标和像素坐标的相互转换
- 使用 RestTemplate 进行第三方Rest服务调用
- 利用JMeter进行Web测试(简介适合初学者)
- 使用pytorch-lightning漂亮地进行深度学习研究(转)
- 安装 Cassandra 服务,使用命令行进行key操作,很简单
- C#-将List里的集合转换成字符串并按指定的字符进行分隔?
- 3D设计软件中如何进行碰撞检查?