小觅相机初始化(标准版)

小觅相机SLAM

1.1 安装
1.2 问题
一、安装问题
pcl/visualization/pcl_visualizer.h: 没有那个文件
  • 是cmake过期的原因,参考。解决了问题

    但是camke升级之后,ros有缺损,重新安装ros可解决该问题

    • https://blog.csdn.net/weixin_36628778/article/details/103713866 安装很慢
    • http://wiki.ros.org/kinetic/Installation/Ubuntu 官网安装过程
  • 缺少catkin,当然这里是缺少catkin_make

source /opt/ros/kinetic/setup.bash /*实际上这一步就可以了*/
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
  • boost库的重新安装这里讨论了PCL库与boost库之间的依赖性的问题

  • make ros时总是提示:

    Target “xxx” links to target "Boost::filesystem" but the target was not found.
    
    CMake Error at CMakeLists.txt:56 (add_executable):
      Target "mynteye_demo" links to target "Boost::filesystem" but the target
      was not found.  Perhaps a find_package() call is missing for an IMPORTED
      target, or an ALIAS target is missing?
    
    

最终导致编译错误:

/usr/bin/ld: 找不到 -lBoost::filesystem
collect2: error: ld returned 1 exit status
CMakeFiles/mynteye_demo.dir/build.make:140: recipe for target 'mynteye_demo' failed
make[2]: *** [mynteye_demo] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mynteye_demo.dir/all' failed
make[1]: *** [CMakeFiles/mynteye_demo.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

我在这里找到了答案,主要是没找到Boost::filesystem。这是什么我也不懂,因此对cmakefile进行如下更改:

# Boost_LIBRARIES
find_package(Boost REQUIRED)
find_package(Boost COMPONENTS filesystem thread REQUIRED)
二、启动问题

macos下虚拟机没办法连接相机,因为没有调整UBS连接属性(USB3.0)

1.3 使用
./samples/_output/bin/get_device_info

20200508161011

完成使用。

在这里插入图片描述

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

擦擦擦大侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值