VINS_Mono,OpenCV Error: Bad argument (Invalid pointer to file storage) in cvGetFileNodeByName问题终于解决了
来源:互联网 发布:数据质量提升方案 编辑:程序博客网 时间:2024/05/29 17:13
跑VINS_Mono的时候每次运行
roslaunch vins_estimator euroc.launch
就报错:
OpenCV Error: Bad argument (Invalid pointer to file storage) in cvGetFileNodeByName, file /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/persistence.cpp, line 740
[INFO] [1498548740.315501276]: Loaded vins_folder: /home/duyl/catkin_ws/src/VINS-Mono/feature_tracker/../config/../
OpenCV Error: Bad argument (Invalid pointer to file storage) in cvGetFileNodeByName, file /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/persistence.cpp, line 740
terminate called after throwing an instance of ‘cv::Exception’
what(): /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/persistence.cpp:740: error: (-5) Invalid pointer to file storage in function cvGetFileNodeByNameterminate called after throwing an instance of ‘cv::Exception’
what(): /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/persistence.cpp:740: error: (-5) Invalid pointer to file storage in function cvGetFileNodeByName
今天这个问题终于解决了.
查看issues里面说到可能是opencv的版本的问题,于是多方尝试。
刚开始装的是ros附带的opencv2.4.8,后来看slambook装了一个opencv3.1.0,看了这个issue之后,下载了opencv2.4.8,然后重新安装。(安装过程中还遇到了点小麻烦,百度之予以解决)装完2.4.8之后catkin_make
然后运行roslaunch vins_estimator euroc.launch
还是有错误。
然后回忆了一下自己的操作跟VINS的github主页上有什么不一样的地方,发现自己装了ros-indigo-opencv3
,而主页上只说明让安装ros-kinetc-opencv3
,并没有让Ubuntu14.04版本的用户去安装这个ros-indigo-opencv3
,所以我就试一试把这个卸载了。
sudo apt-get remove ros-indigo-opencv3
然后重新清理catkin_ws
里的build
文件夹,重新catkin_make
,再运行roslaunch的时候发现已经没有那个错误了!!!
真是波折啊
- VINS_Mono,OpenCV Error: Bad argument (Invalid pointer to file storage) in cvGetFileNodeByName问题终于解决了
- ORB-SLAM2中使用ROS遇到Bad argument (Invalid pointer to file storage) in cvGetFileNodeByName
- OpenCV Error: Bad argument
- opencv error bad argument (default classifier file not found)
- opencv Error:Bad argument <Unknown arrray type> in cvarrTomat
- transfer error: Invalid argument. Failed to push selection: Invalid argument
- Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
- select函数的错误,Invalid argument 或 Bad file descriptor
- Qt Createor error writing to -: Invalid argument
- Qt Createor error writing to -: Invalid argument
- 【原创】QT:编译时出现 “error: error writing to -: Invalid argument”错误的解决
- bison: m4: Invalid argument 玄学解决了
- openCV error: Bad argument (unrecognized or unsupported array type)
- How to solve symbian Error: Error: Invalid argument: /X
- error: pointer targets in passing argument 3 of 'accept' differ in signedness [-Werror=pointer-sign
- apache2 重启 Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
- 解决Installation failed due to invalid APK file!问题
- Error: Invalid argument: /X
- 2017-11-13 每周小结(编码,注解,反射)
- poj 1364 King(hud 1531)
- js/jQuery 跨iframe操作
- 自定义View的自定义属性,TypedArray的使用和命名空间
- 【C++对象模型】之虚函数详解
- VINS_Mono,OpenCV Error: Bad argument (Invalid pointer to file storage) in cvGetFileNodeByName问题终于解决了
- 缓存架构设计细节二三事
- 小结
- IntelliJ IDEA编译环境编写JSP文件报错且没有代码提示,还能正常运行
- Java进阶代码
- 生产者消费者模式实现
- Java学习——Character 类
- Haar Adaboost 视频车辆检测代码和样本
- dubbo异步调用的bug