ROS中如何产生/image_raw和/camera_info这两个话题

本文针对初学者在使用ROS系统进行摄像头校准时遇到的问题提供了解决方案。通过安装并运行uvc-camera模块,可以在rostopic list中看到必要的/image_raw和/camera_info话题,进而完成摄像头校准。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  这地方对于刚接触ROS系统的人来说我感觉实在是个坑,因为我就是刚接触的。这个不是什么难事,也不复杂,但重要的是如何做一步。ROS wiki中有calibration教程,教程说着说着,来了一个,你应该在rostopic list中看到

/image_raw
/camera_info

这两个话题,我是真的懵了,我的topic list中没有这两个话题啊,我在搜如何得到摄像头的矫正文件过程中完全搜不到一个完整的教程,大部分都是重复ROS的kiki,对于以上两个话题是如何产生的都没有说明,直到我看到这篇博文,才明白,该作者讲的很详细,对于已经接触ROS系统很久的人来说,这是常识,但是对于像我这种刚接触ROS系统就要做实际项目的人来说,真的不知道如何产生这两个话题。只需要安装uvc-camera这个模块然后运行起来就行了。

sudo apt install ros-kinetic-uvc-camera

换成你对应的版本,然后rosrun uvc_camera uvc_camera_node,运行成功的话,你就能看到这两个话题,如果在这两个话题前还有其它前缀的话,在calibration的时候对话题做一个映射就行了,本文链接的博文中也提到了这个问题,剩下的就是按照官网教程来就行了(注意看自己机器上的实际情况)。

rostopic list /camera/color/camera_info /camera/color/image_raw /camera/color/image_raw/compressed /camera/color/image_raw/compressed/parameter_descriptions /camera/color/image_raw/compressed/parameter_updates /camera/color/image_raw/compressedDepth /camera/color/image_raw/compressedDepth/parameter_descriptions /camera/color/image_raw/compressedDepth/parameter_updates /camera/color/image_raw/theora /camera/color/image_raw/theora/parameter_descriptions /camera/color/image_raw/theora/parameter_updates /camera/color/metadata /camera/depth/camera_info /camera/depth/image_rect_raw /camera/depth/image_rect_raw/compressed /camera/depth/image_rect_raw/compressed/parameter_descriptions /camera/depth/image_rect_raw/compressed/parameter_updates /camera/depth/image_rect_raw/compressedDepth /camera/depth/image_rect_raw/compressedDepth/parameter_descriptions /camera/depth/image_rect_raw/compressedDepth/parameter_updates /camera/depth/image_rect_raw/theora /camera/depth/image_rect_raw/theora/parameter_descriptions /camera/depth/image_rect_raw/theora/parameter_updates /camera/depth/metadata /camera/extrinsics/depth_to_color /camera/realsense2_camera_manager/bond /camera/rgb_camera/auto_exposure_roi/parameter_descriptions /camera/rgb_camera/auto_exposure_roi/parameter_updates /camera/rgb_camera/parameter_descriptions /camera/rgb_camera/parameter_updates /camera/stereo_module/auto_exposure_roi/parameter_descriptions /camera/stereo_module/auto_exposure_roi/parameter_updates /camera/stereo_module/parameter_descriptions /camera/stereo_module/parameter_updates /diagnostics /rosout /rosout_agg /tf /tf_static 没有 /camera/infra1/image_rect_raw , /camera/infra2/image_rect_raw , /camera/dept h/image_rect_raw 话题
03-28
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值