lidar_camera_calib操作流程记录

lidar_camera_calib

1.安装

1.1相机内参标定工具camera_calibration

!!!这要根据相机驱动来看
安装usb_cam

git clone https ://github.com/ros-drivers/usb_cam
ls /dev/video*

一般笔记本电脑自带的摄像头id为0,外接的摄像头id为1,需要修改launch文件

安装camera_calibration

git clone https://github.com/ros-perception/image_pipeline.git

2.1lidar_camera_calibraton

其他工具ILCCautoware.ai
ubuntu18.04
环境配置

sudo apt-get install -y python-catkin-tools python-catkin-pkg python-rosdep python-wstool ros-melodic-cv-bridge ros-melodic-image-transport
sudo apt-get install -y ros-melodic-nodelet-core ros-melodic-ddynamic-reconfigure
sudo apt-get install -y ros-melodic-velodyne-pointcloud

clone

cd ~/catkin_ws/src
git clone https://github.com/ankitdhall/lidar_camera_calibration.git
mv lidar_camera_calibration/dependencies/aruco_ros aruco_ros
mv lidar_camera_calibration/dependencies/aruco_mapping aruco_mapping
cd lidar_camera_calibration
git checkout melodic

build

cd ../..
rosdep install --from-paths src --ignore-src -r -y
catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco;aruco_ros;aruco_msgs"
catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco_mapping;lidar_camera_calibration"
catkin_make -DCATKIN_WHITELIST_PACKAGES=""

!!!编译失败请参考https://github.com/ankitdhall/lidar_camera_calibration/wiki/Installation-ROS-Melodic-(Ubuntu-18.04)

2.使用

2.1相机内参

rosrun camera_calibration cameracalibrator.py --size 11x8 --square 0.05 image:=/usb_cam/image_raw camera:=/usb_cam

在这里插入图片描述

size 11x8 # 12x9的标定板,有11x8个十字交点
square 0.05 #每个正方形边长0.05m
image:=/usb_cam/image_raw #相机话题
camera:=/usb_cam #相机名称

为了达到良好的标定效果&#x

  • 4
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值