camera-imu和使用kalibr标定

引用自网址Kalibr-zed,稍有修改

1.Preliminar operations

install kalibr following the installation guide
create folder to keep all the data:

$ mkdir ~/zed-kalibr

start the ZED node:

$ roslaunch zed_wrapper zedm.launch

enable left and right camera visualization to be sure to keep the target in sight. Open a new terminal and enter

//record unrectied raw image
$ rosrun image_view image_view image:=/zed/zed_node/left_raw/image_raw_color
$ rosrun image_view image_view image:=/zed/zed_node/right_raw/image_raw_color

2.Data recording

record the rosbag to be used as Kalibr input:

$ rosbag record -O Kalibr_data.bag /imu/data_lpms /zed/zed_node/left_raw/image_raw_color /zed/zed_node/right_raw/image_raw_color

For a correct calibration you should provide the following movements:

Pitch rotation
Yaw rotation
Roll rotation
Up/Down translation
Left/Right translation
Forward/Backward translation
A series of random movement

3 get the camera parameters

You can generate the camera parameters file using the following command:

//record unrectied raw image
$ kalibr_calibrate_cameras --bag Kalibr_data.bag --topics /zed/zed_node/left_raw/image_raw_color /zed/zed_node/right_raw/image_raw_color --models pinhole-radtan pinhole-radtan --target april_grid.yaml

When the elaboration is complete (it takes many minutes according to the number of image acquired) you will get the file camchain-Kalibr_data.yaml and a full PDF report of the result of the calibration.

4 set IMU parameters

Create a file named imu-params.yaml

$ gedit imu-params.yaml

and fill it with the following content:

#Accelerometers
accelerometer_noise_density: 1.4e-03   #Noise density (continuous-time)
accelerometer_random_walk:   8.0e-05   #Bias random walk

#Gyroscopes
gyroscope_noise_density:     8.6e-05   #Noise density (continuous-time)
gyroscope_random_walk:       2.2e-06   #Bias random walk

rostopic:                    /zed/zed_node/imu/data_raw      #the IMU ROS topic
update_rate:                 800.0     #Hz (for discretization of the values above)

Note: the update_rate value must match the value of the parameter imu_pub_rate in the file params/zedm.yaml.

5.Camera/IMU calibration

You can get the final camera/IMU calibration executing the following command:

$ kalibr_calibrate_imu_camera --bag Kalibr_data.bag --cam camchain-Kalibr_data.yaml --imu imu-params.yaml --target april_grid.yaml
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值