当前位置:   article > 正文

解决Attempt to unlock mutex that was not locked

attempt to unlock mutex that was not locked

在ubuntu18.04中,使用kalibr标定相机imu外参,想查看是否提取到角点,于是加入
–show-extraction,最后命令如下。

rosrun kalibr kalibr_calibrate_imu_camera --target /home/t/kalibr_workspace/checkboard.yaml --cam /home/t/kalibr_workspace/HK_0220_1-xia.yaml --imu /home/t/kalibr_workspace/xsens.yaml --bag /home/t/kalibr_workspace/bag/HK_xsens_0221_2.bag  --show-extraction
  • 1

运行后报错:

Extracting calibration target corners
(Checkerboard corners:19089): GLib-GObject-CRITICAL **: 14:17:09.607: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(Checkerboard corners:19089): GLib-GObject-CRITICAL **: 14:17:09.612: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(Checkerboard corners:19089): GLib-GObject-CRITICAL **: 14:17:09.612: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Attempt to unlock mutex that was not locked
已放弃 (核心已转储)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

百度后发现是因为ubuntu自带的opencv与我安装的opencv3.2.0有冲突
于是将kalibr中的以下三个含有 cv::startWindowThread()的cpp的cv::startWindowThread()注释掉
在这里插入图片描述
在对kalibr编译一下,重新运行命令,## 标题完美解决。
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/599374
推荐阅读
相关标签
  

闽ICP备14008679号