首页 > 其他分享 >VINS-MONO Realsense d455运行记录

VINS-MONO Realsense d455运行记录

时间:2023-10-26 15:47:40浏览次数:25  
标签:roslaunch parameters d455 launch MONO Realsense camera imu vins

安装VINS-Mono

创建工作空间

mkdir -p ~/vins_mono_ws/src   # 创建了第二层级的文件夹src,这是放ROS软件包的地方
cd ~/vins_mono_ws/src         # 进入工作空间,catkin_make必须在工作空间这个路径上执行
catkin_init_workspace         # 初始化src目录,生成的CMakeLists.txt为功能包编译配置

安装VINS-Mono

cd ~/vins_mono_ws/src
git clone https://github.com/HKUST-Aerial-Robotics/VINS-Mono.git
cd ..
catkin_make -j8
source ~/catkin_ws/devel/setup.bash # 刷新坏境

OpenCV版本问题

可以编译不同版本的cv_bridge::
https://blog.csdn.net/cym_hnu/article/details/130007829

运行时,/home/tony-ws1/output/pose_graph/ not exists

https://blog.csdn.net/weixin_43297891/article/details/115441480

使用Realsense d455运行

https://blog.csdn.net/weixin_44580210/article/details/89789416#t4

修改realsense包里的rs_camera.launch文件

我的路径是在:/opt/ros/noetic/share/realsense2_camera/launch

  • 修改unite_imu_method如下,这里是让IMU的角速度和加速度作为一个topic输出
 <arg name="unite_imu_method"      default="copy"/>
  • 修改enable_sync参数为true,这里是开机相机和IMU的同步
  <arg name="enable_sync"           default="true"/>

修改VINS-Mono包里的realsense_color_config.yaml文件

  • 修改订阅的topic
imu_topic: "/camera/imu"
image_topic: "/camera/color/image_raw"
  • 相机内参,通过打开运行 realsense 包获取内参
roslaunch realsense2_camera rs_camera.launch  # 运行realsense
rostopic echo /camera/color/camera_info       # 获取内参
  • IMU到相机的变换矩阵,根据注释的提示修改成2
# Extrinsic parameter between IMU and Camera.
estimate_extrinsic: 2   # 0  Have an accurate extrinsic parameters. We will trust the following imu^R_cam, imu^T_cam, don't change it.
                        # 1  Have an initial guess about extrinsic parameters. We will optimize around your initial guess.
                        # 2  Don't know anything about extrinsic parameters. You don't need to give R,T. We will try to calibrate it. Do some rotation movement at beginning.                        
#If you choose 0 or 1, you should write down the following matrix.

TODO: 因为在运行ORBSLAM3时进行过标定,但是结果不行,这里一会尝试一下使用标定的

  • IMU参数
#imu parameters       The more accurate parameters you provide, the better performance
acc_n: 0.2          # accelerometer measurement noise standard deviation. #0.2
gyr_n: 0.05         # gyroscope measurement noise standard deviation.     #0.05
acc_w: 0.02         # accelerometer bias random work noise standard deviation.  #0.02
gyr_w: 4.0e-5       # gyroscope bias random work noise standard deviation.     #4.0e-5
g_norm: 9.80       # gravity magnitude
  • 是否需要在线估计同步时差,根据上述博主的建议这里选择不需要
#unsynchronization parameters
estimate_td: 0                      # online estimate time offset between camera and imu
td: 0.000                           # initial value of time offset. unit: s. readed image clock + td = real image clock (IMU clock)
  • 相机曝光改成全局曝光
#rolling shutter parameters
rolling_shutter: 0                      # 0: global shutter camera, 1: rolling shutter camera
rolling_shutter_tr: 0               # unit: s. rolling shutter read out time per frame (from data sheet). 

充分怀疑Realsense在ORBSLAM3上面出现问题是因为这个

运行

roslaunch realsense2_camera rs_camera.launch 
roslaunch vins_estimator realsense_color.launch 
roslaunch vins_estimator vins_rviz.launch

我重命名了一些文件,我的命令应该是:

roslaunch realsense2_camera rs_camera.launch
roslaunch vins_estimator realsense_color_d455.launch
roslaunch vins_estimator vins_rviz.launch

结果:

标签:roslaunch,parameters,d455,launch,MONO,Realsense,camera,imu,vins
From: https://www.cnblogs.com/code-fun/p/17789510.html

相关文章

  • 在自己的realsenseD435i上测试ORB_SLAM3
    文章目录硬件设置相机内参和外参设置IMU内参依赖标定可能遇到的问题硬件x86电脑realsensed435i相机设置相机内参和外参安装ROS标定工具包sudoaptinstallros-melodic-camera-calibration启动realsense相机roslaunchrealsense2_camerars_camera.launch打开标定窗口rosruncam......
  • D. Monocarp and the Set
    D.MonocarpandtheSetMonocarphas$n$numbers$1,2,\dots,n$andaset(initiallyempty).Headdshisnumberstothisset$n$timesinsomeorder.Duringeachstep,headdsanewnumber(whichhasnotbeenpresentinthesetbefore).Inotherwords,......
  • CF1886D Monocarp and the Set
    QuestionsMonocarp有\(n\)个整数和一个集合,他需要把这\(n\)个数添加到集合中,每次添加一次除了第一次,每次添加元素都会输出一个字符如果当前添加的元素比原有的元素都要小,那么输出\(>\)如果当前添加的元素比原有的元素都要大,那么输出\(<\)否则输出\(?\)你给......
  • 切比雪夫单调不等式(Chebyshev's monotonic inequality)(一般分配律)
    前置知识:一般分配律:\(\displaystyle\sum_{\substack{j\inJ\\k\inK}}a_jb_k\)\(=\displaystyle\sum_{\substack{j\inJ}}\displaystyle\sum_{\substack{k\inK}}a_jb_k\)\(=(\displaystyle\sum_{\substack{j\inJ}}a_j)(\displaystyle\sum_{\substac......
  • 响应式编程——初识 Flux 和 Mono
    byemanjusakafrom​https://www.emanjusaka.top/archives/4彼岸花开可奈何本文欢迎分享与聚合,全文转载请留下原文地址。前言Reactor是一个响应式编程的基础类库,其中有两个很关键的类:Flux和Mono。掌握这两个类和相关概念有助于我们学习响应式编程。Flux和Mono都是......
  • PNPM 与 Monorepo
    为什么选择PNPM?在JavaScript的世界里,npm和yarn可能是最为人所熟知的包管理器。然而,这并不意味着他们就是最优的选择。相反,PNPM是一个值得你关注的强大工具。它解决了npm和yarn的一些痛点,例如项目间的依赖项重复和大量占用硬盘空间的问题。因此,如果你是一个对性能有严格要求,或者是......
  • Learning Auxiliary Monocular Contexts Helps Monocular 3D Object Detection (2)
    Featurebackbone采用DLA,输入维度为3×H×W的RGB图,得到维度D×h×w的特征图F,然后将特征图送入几个轻量级regressionheads,2Dboudingboxes的中心特征图用下面的模块得到:其中AN是AttentiveNormalization.用公式表示:类似的,2D和3Dboudingboxes的中心之间的offset用公......
  • Codeforces Round 892 (Div. 2)E. Maximum Monogonosity(动态规划,数学)
    题目链接:https://codeforces.com/contest/1859/problem/E 题意: 有长度为n的a和b俩个序列,定义f【l,r】=abs(a【l】-b【r】)+abs(b【l】-a【r】); 给正整数k,求 不相交的区间且  所有  区间的长度 的 和 为k的最大值 是多少? 分析: 这里借鉴一个佬......
  • E. Maximum Monogonosity
    E.MaximumMonogonosityYouaregivenanarray$a$oflength$n$andanarray$b$oflength$n$.Thecostofasegment$[l,r]$,$1\lel\ler\len$,isdefinedas$|b_l-a_r|+|b_r-a_l|$.Recallthattwosegments$[l_1,r_1]$,$1\lel_1\ler......
  • Xamarin 2.0:基于Mono跨平台开发框架
    Xamarin在完成其为跨平台移动开发提供一组通用工具的愿景方面又迈出了重要一步。伴随Xamarin2.0的宣布,Xamarin重新命名了其产品,带来了新的IDEXamarinStudio、支持iOS开发的VisualStudio插件和组件商店。跨平台移动开发框架Xamarin今天发布了最新的2.0版......