当前位置:网站首页>Kalibr calibration realsensed435i -- multi camera calibration
Kalibr calibration realsensed435i -- multi camera calibration
2022-07-26 21:41:00 【Cute Chu】
Image download 、 Domain name resolution 、 Time synchronization please click Alibaba cloud open source image station
kalibr Calibration plate ( Chessboard ) Use elder martial brother's ( Long like this )

Step one : The establishment of a ROS Medium Kalibr Working space for , Create a :checkerboard.yaml The file of , The content is :
target_type: 'checkerboard'
targetCols: 11 // Number of inner corners
targetRows: 8
colSpacingMeters: 0.02
rowSpacingMeters: 0.02 Step two : Turn on and off the structured light
The default is to start the structured light , The binocular image will have many points , These points may affect the calibration , So you need to turn off the structured light .
Start at the terminal first
roslaunch realsense2_camera rs_camera.launchNew open terminal , function
rosrun rqt_reconfigure rqt_reconfigureWhen opened, it will camera->stereo_module Medium emitter_enabled Set to off(0)
Step three : determine realsense D435i Put it in the right place
New open terminal , function rviz
rvizstay rviz Lieutenant general Global Option Medium Fixed Frame Choose... Later camera_link
Click on Add stay topic Select separately from
/camera/color/image_raw、/camera/infra1/image_rect_raw、/camera/infra2/image_rect_raw, open ( double-click camera) Add successfully .
Then align the calibration plate , Try moving realsense D435i, At the same time, make sure that the calibration board is always in the three images , Here's the picture

Step four : Modify the number of camera frames ( The official recommendation is 4Hz, Although the actual frequency is not completely accurate , But it doesn't affect the result )
kalibr When processing calibration data, the frequency shall not be too high , It's usually 4Hz, We can use the following command to change topic The frequency of , In fact, the original topic Turn into a new... With a new frequency topic, Actual test infra1 Is the corresponding left eye camera .
Use Ctrl+shift+T, Open a new terminal , One terminal runs one , Run respectively
rosrun topic_tools throttle messages /camera/color/image_raw 4.0 /color
rosrun topic_tools throttle messages /camera/infra1/image_rect_raw 4.0 /infra_left
rosrun topic_tools throttle messages /camera/infra2/image_rect_raw 4.0 /infra_rightStep five : Recording ROS Data packets
Use Ctrl+shift+T, Open another new terminal to run :
rosbag record -O multicameras_calibration /infra_left /infra_right /colorBack three topic It's after the frequency conversion topic, I recorded 3 minute , When recording, move towards the calibration board , Press down ctrl+c The end of the recording , When you see the current folder, you will see multicameras_calibration.bag file .
Step six : Use Kalibr calibration
Activate the environment variable first
source ~/kalibr_workspace/devel/setup.bashAnd then run :
kalibr_calibrate_cameras --target checkerboard.yaml --bag multicameras_calibration.bag --models pinhole-equi pinhole-equi pinhole-equi --topics /infra_left /infra_right /color --bag-from-to 10 100 --show-extraction --approx-sync 0.04Last :
The final result is three files :
camchain-multicameras_calibration.yaml
report-cam-multicameras_calibration.pdf
results-cam-multicameras_calibration.txt

notes : Possible problems
1、kalibr_calibrate_cameras: Command not found

resolvent :
Recompile :
~/kalibr_workspace$ catkin build -DCMAKE_BUILD_TYPE=Release -j8Again :
source ~/kalibr_workspace/devel/setup.bash2、
File"/home/lab/kalibr_workspace/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 234, in raiseError
raise RuntimeError( "{0}{1}".format(header, message) )RuntimeError: [CalibrationTargetConfig Reader]: Could not read configuration from ../checkerboard.yaml

resolvent : modify checkerboard.yaml The file is the above content ( Step one ).
Link to the original text :https://blog.csdn.net/weixin_45868890/article/details/123197364
边栏推荐
- 美国再次发难:禁止承包商采购这5家中国公司的设备与技术
- TCP的粘包拆包问题解决方案
- LDAP——实现用户统一登录管理
- 拖放表格行
- Alkbh1
- 5、 Applet error: message:error: system error, error code: 80058, desc of scope userLocation is empty
- 基于memcache的缓存机制的6个指令
- :active vs :focus
- Deepfake pinches his face. It's hard to tell whether it's true or false. Tom Cruise is more like himself than himself!
- Arm Mali GPU的噩梦:三星、华为纷纷转向自研!
猜你喜欢

Attack and defense world ----- ics-07

Selenium自动化测试面试题全家桶

js中join方法
![[HCIA security] NAT network address translation](/img/10/3b4d011963e00229d73a7435ce8c4b.png)
[HCIA security] NAT network address translation

功能尝鲜 | 解密 Doris 复杂数据类型 ARRAY

Supplement - nonlinear programming

How to use multiple languages in a project?

Devops has been practiced for many years. What is the most painful thing?

彻底搞通服务发现的原理和实现

Industrial basic IFC - extract model structure tree
随机推荐
从手动测试,到自动化测试老司机,只用了几个月,我的薪资翻了一倍
Ros2 node communication realizes zero copy
A unified label space for entity relationship extraction
LDAP——实现用户统一登录管理
:active vs :focus
缩放文本以适合元素内部
Sort the table by clicking on the header
虾皮shopee根据ID取商品详情 API
js点击图片打印图像
Drag and drop table rows
golang版本管理gvm
成功上岸了自动化测试岗,最高月薪15.4K,自己真棒~
会用redis吗?那还不快来了解下redis protocol
Summer vacation daily question week 7:7.18 - 7.24
Summary of common interview questions on computer network, including answers
Logical vulnerability - arbitrary account registration
[HCIA security] user authentication
Number() VS parseInt()
Summary of common interview questions of computer composition principle, including answers
任正非再谈美国打压:活下去就是胜利,要战胜美国