ubuntu20.04 MYNTEYE S 相机运行与标定记录

news/2024/12/22 9:18:06/

ubuntu20.04 MYNTEYE S 相机运行与标定记录

环境

ubuntu20.04
opencv3.3.1

硬件

mynteye S1030

OpenCV 3.4.3 安装

Jetson Nano+小觅相机(MYNT EYE S)开发调试指南

mkdir -p ~/tools/opencv
cd ~/tools/opencvgit clone https://github.com/opencv/opencv.git
cd opencv/
git checkout tags/3.4.3cd ~/tools/opencv
mv opencv opencv-3.4.3
cd opencv-3.4.3/mkdir build
cd build
cmake  -DCMAKE_INSTALL_PREFIX=/home/robot/tools/opencv/opencv-3.4.3/build/installed ..
make
make install

cv_bridge配置

mkdir -p ~/workspace/MYNT_EYE/S_SDK/src
cd ~/workspace/MYNT_EYE/S_SDK/srccatkin initgit clone https://github.com/ros-perception/vision_opencv.git --branch melodic   # melodic对应1.13版本mv vision_opencv/cv_bridge ./
rm -rf vision_opencv# 修改CMakeLists.txt和package.xml中的package name为cv_bridge_3
catkin_make

MYNT-EYE-S-SDK

cd ~/workspace/MYNT_EYE/S_SDK/src
git clone https://github.com/slightech/MYNT-EYE-S-SDK.git
cd MYNT-EYE-S-SDK
make install  # 见ERROR 1cd ~/workspace/MYNT_EYE/S_SDK
catkin_make   # 见ERROR 2 3 4 5# 测试
cd ~/workspace/MYNT_EYE/S_SDK
source devel/setup.bash
roslaunch mynt_eye_ros_wrapper display.launch

ERROR 1:
忘记是什么报错了,忘记复制了。但是是cv相关的报错,是因为忘记添加OpenCV_LIB_PATH了。
FIX:
在MYNT-EYE-S-SDK/CMakeLists.txt中添加

set(OpenCV_DIR /home/robot/tools/opencv/opencv-3.4.3/build)
set(OpenCV_LIB_PATH /home/robot/tools/opencv/opencv-3.4.3/build/installed/lib)

ERROR 2:

-- Could NOT find cv_bridge (missing: cv_bridge_DIR)
-- Could not find the required component 'cv_bridge'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):Could not find a package configuration file provided by "cv_bridge" withany of the following names:cv_bridgeConfig.cmakecv_bridge-config.cmakeAdd the installation prefix of "cv_bridge" to CMAKE_PREFIX_PATH or set"cv_bridge_DIR" to a directory containing one of the above files.  If"cv_bridge" provides a separate development package or SDK, be sure it hasbeen installed.
Call Stack (most recent call first):MYNT-EYE-S-SDK/wrappers/ros/src/mynt_eye_ros_wrapper/CMakeLists.txt:36 (find_package)-- Configuring incomplete, errors occurred!
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeOutput.log".
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

FIX:
在catkin_ws中增加了cv_bridge并将其package修改为了cv_bridge_3,但是在SDK中的wrappers/ros/src中的CMakeLists.txt中将find_package中的cv_bridge也要修改成对应空间中的cv_bridge_3.

find_package(catkin REQUIRED COMPONENTScv_bridge_3geometry_msgsimage_transportmessage_generationnodeletroscppsensor_msgsstd_msgstf
)

ERROR 3:

-- Could NOT find image_transport (missing: image_transport_DIR)
-- Could not find the required component 'image_transport'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):Could not find a package configuration file provided by "image_transport"with any of the following names:image_transportConfig.cmakeimage_transport-config.cmakeAdd the installation prefix of "image_transport" to CMAKE_PREFIX_PATH orset "image_transport_DIR" to a directory containing one of the above files.If "image_transport" provides a separate development package or SDK, besure it has been installed.
Call Stack (most recent call first):MYNT-EYE-S-SDK/wrappers/ros/src/mynt_eye_ros_wrapper/CMakeLists.txt:36 (find_package)-- Configuring incomplete, errors occurred!
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeOutput.log".
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:782: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

找不到image_transport
FIX:
在wrappers/ros/src/CMakeLists.txt中添加set(image_transport_DIR /opt/ros/noetic/share/image_transport/cmake)

ERROR 4:

-- Could NOT find message_generation (missing: message_generation_DIR)
-- Could not find the required component 'message_generation'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):Could not find a package configuration file provided by"message_generation" with any of the following names:message_generationConfig.cmakemessage_generation-config.cmakeAdd the installation prefix of "message_generation" to CMAKE_PREFIX_PATH orset "message_generation_DIR" to a directory containing one of the abovefiles.  If "message_generation" provides a separate development package orSDK, be sure it has been installed.
Call Stack (most recent call first):MYNT-EYE-S-SDK/wrappers/ros/src/mynt_eye_ros_wrapper/CMakeLists.txt:38 (find_package)-- Configuring incomplete, errors occurred!
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeOutput.log".
See also "/home/robot/tools/MYNT_EYE/S_SDK/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:782: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

找不到message_generation。
FIX:
在wrappers/ros/src/CMakeLists.txt中添加set(message_generation_DIR /opt/ros/noetic/share/message_generation/cmake)

ERROR 5:

[ 88%] Linking CXX shared library /home/robot/tools/MYNT_EYE/S_SDK/devel/lib/libmynteye_wrapper.so
/usr/bin/ld: cannot find -lBoost::filesystem
collect2: error: ld returned 1 exit status
make[2]: *** [MYNT-EYE-S-SDK/wrappers/ros/src/mynt_eye_ros_wrapper/CMakeFiles/mynteye_wrapper.dir/build.make:144: /home/robot/tools/MYNT_EYE/S_SDK/devel/lib/libmynteye_wrapper.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:2035: MYNT-EYE-S-SDK/wrappers/ros/src/mynt_eye_ros_wrapper/CMakeFiles/mynteye_wrapper.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j8 -l8" failed

找不到Boost::filesystem
FIX:
修改wrappers/ros/src/CMakeLists.txt。

find_package(Boost REQUIRED COMPONENTS filesystem)
include_directories(${Boost_INCLUDE_DIRS})

S 系列相机标定

IMU标定

roslaunch mynt_eye_ros_wrapper vins_fusion.launch
rosbag record -O IMU_mynteye_s_calibration /mynteye/imu/data_raw

录制一个小时以上

roslaunch imu_utils mynteye_imu_calibration.launchrosbag play -r 200 IMU_mynteye_s_calibration.bag

标注

后续再继续标定,目前出现问题:

  1. 同样的IMU标定流程,手中的mynteye D相机正常标定,但是S相机标定时ERROR
  2. 双目标定时,mynteye D相机正常,但是S相机无法降低采样频率,每次降到4hz,相机进程就会被杀死。不清楚是不是因为驱动。

决定还是试试D455,主要目的是将D455标定结果和mynteye D相机进行对比。


http://www.ppmy.cn/news/1209992.html

相关文章

将 ONLYOFFICE 文档编辑器与 С# 群件平台集成

在本文中,我们会向您展示 ONLYOFFICE 文档编辑器与其自有的协作平台集成。 ONLYOFFICE 是一款开源办公套件,包括文本文档、电子表格和演示文稿编辑器。这款套件支持用户通过文档编辑组件扩展第三方 web 应用的功能,可直接在应用的界面中使用。…

Spring boot 整合grpc 运用

文章目录 GRPC基础概念:Protocol Buffers:proto 基础语法:调用类型: Spring boot 整合 grpc项目结构:整合代码:父 pomproto 模块服务端:客户端:实际调用: 原生集成 GRPC基…

【算法】最短路计数(计算最短路的数量)

题目 给出一个 N 个顶点 M 条边的无向无权图,顶点编号为 1 到 N。 问从顶点 1 开始,到其他每个点的最短路有几条。 输入格式 第一行包含 2 个正整数 N,M,为图的顶点数与边数。 接下来 M 行,每行两个正整数 x,y,表示有…

CSS3 用户界面、图片、按钮

一、CSS3用户界面&#xff1a; 在CSS3中&#xff0c;增加了一些新的用户界面特性来调整元素尺寸、框尺寸和外边框。CSS3用户界面属性&#xff1a;resize、box-sizing、outline-offset。 1、resize&#xff1a; resize属性指定一个元素是否应该由用户去调整大小。 <style…

重温数据结构与算法之前缀和

文章目录 前言一、基础1.1 定义1.2 时间复杂度 二、扩展2.1 二维前缀和2.2 差分数组2.3 前缀积 三、LeetCode 实战3.1 长度最小的子数组3.2 二维区域和检索 - 矩阵不可变 参考 前言 前缀和&#xff08;Prefix Sum&#xff09;&#xff0c;也被称为累计和&#xff0c;是一种在计…

HTML页面模拟了一个类似Excel的表格在线diy修改表格内容

html实现在线表格编辑&#xff0c;可以修改每个表格内容&#xff0c;并且可以添加行和列 这个HTML页面模拟了一个类似Excel的表格&#xff0c;可以添加和删除行和列&#xff0c;并且可以编辑每个表格的内容。通过点击按钮可以添加新的行和列&#xff0c;通过按钮可以删除最后一…

个人怎么投资伦敦金?

伦敦金是一种被广泛交易的黄金合约&#xff0c;是投资者参与黄金市场的一种交易方式。伦敦金投资也是黄金交易中最为方便快捷的一个种类&#xff0c;在黄金交易市场中占有较大的比例&#xff0c;每天都有来自全球各地的投资者参与买卖&#xff0c;是实现财富增益的一个有效途径…

YOLOv8模型ONNX格式INT8量化轻松搞定

ONNX格式模型量化 深度学习模型量化支持深度学习模型部署框架支持的一种轻量化模型与加速模型推理的一种常用手段&#xff0c;ONNXRUNTIME支持模型的简化、量化等脚本操作&#xff0c;简单易学&#xff0c;非常实用。 ONNX 模型量化常见的量化方法有三种&#xff1a;动态量化…