简介

在ros中有很多的camera包了,提供了非常好的camera支持。针对我的kinetic 可以搜素一下看看。

$ apt-cache  search  camera | grep ros-kinetic
ros-kinetic-astra-camera - Drivers for Orbbec Astra Devices.
ros-kinetic-avt-vimba-camera - Wrapper of the Allied Vision Technologies (AVT) VIMBA Ethernet and Firewire SDK.
ros-kinetic-axis-camera - Python ROS drivers for accessing an Axis camera's MJPG stream.
ros-kinetic-camera-calibration - camera_calibration allows easy calibration of monocular or stereo cameras using a checkerboard calibration target.
ros-kinetic-camera-calibration-parsers - camera_calibration_parsers contains routines for reading and writing camera calibration parameters.
ros-kinetic-camera-info-manager - This package provides a C++ interface for camera calibration information.
ros-kinetic-camera-info-manager-py - Python interface for camera calibration information.
ros-kinetic-camera-umd - UMD camera metapackage
ros-kinetic-camera1394 - ROS driver for devices supporting the IEEE 1394 Digital Camera (IIDC) protocol.
ros-kinetic-cob-camera-sensors - For more information read the readme.htm file located in
ros-kinetic-cob-driver - The cob_driver stack includes packages that provide access to the Care-O-bot hardware through ROS messages, services and actions.
ros-kinetic-cob-image-flip - Flips the image of Care-O-bots kinect in dependence of the viewing direction of the cameras to receive an upright image all the time.
ros-kinetic-common-msgs - common_msgs contains messages that are widely used by other ROS packages.
ros-kinetic-cv-camera - cv_camera uses OpenCV capture object to capture camera image.
ros-kinetic-depth-image-proc - Contains nodelets for processing depth images such as those produced by OpenNI camera.
ros-kinetic-ecto-image-pipeline - Common tools for image based pipelines.
ros-kinetic-flir-camera-driver - A set of drivers for Flir cameras based on the Spinnaker SDK.
ros-kinetic-freenect-camera - A libfreenect-based ROS driver for the Microsoft Kinect.
ros-kinetic-freenect-launch - Launch files for freenect_camera to produce rectified, registered or disparity images.
ros-kinetic-gscam - A ROS camera driver that uses gstreamer to connect to devices such as webcams.
ros-kinetic-hector-gazebo-thermal-camera - hector_gazebo_thermal_camera provides a gazebo plugin that produces simulated thermal camera images.
ros-kinetic-hironx-calibration - Launch and configuration files for calibrating hironx using the generic calibration_setup_helper package.
ros-kinetic-image-exposure-msgs - Messages related to the Point Grey camera driver.
ros-kinetic-image-geometry - `image_geometry` contains C++ and Python libraries for interpreting images geometrically.
ros-kinetic-image-pipeline - image_pipeline fills the gap between getting raw images from a camera driver and higher-level vision processing.
ros-kinetic-image-rotate - Contains a node that rotates an image stream in a way that minimizes the angle between a vector in some arbitrary frame and a vector in the camera frame.
ros-kinetic-ipcamera-driver - Simple node to publish regular IP camera video streams to a ros topic.
ros-kinetic-librealsense - Library for capturing data from the Intel(R) RealSense(TM) F200, SR300, R200, LR200 and ZR300 cameras.
ros-kinetic-libuvc-camera - USB Video Class camera driver
ros-kinetic-look-at-pose - Rotate camera to look at a given pose.
ros-kinetic-naoqi-driver-py - Python implementation of the driver package for the Naoqi robot, providing access to walking commands, joint angles, and sensor data (odometry, IMU, ...).
ros-kinetic-naoqi-sensors-py - ROS driver for miscellaneous sensors on NAO.
ros-kinetic-nextage-calibration - This package provides .launch files and other tools for calibrating the head-mount cameras to the NEXTAGE Open robot.
ros-kinetic-o3m151-driver - ROS device driver for Ifm O3M151 TOF camera.
ros-kinetic-op3-camera-setting-tool - The op3_camera_setting_tool package
ros-kinetic-openni-camera - A ROS driver for OpenNI depth (+ RGB) cameras.
ros-kinetic-openni2-camera - Drivers for the Asus Xtion and Primesense Devices.
ros-kinetic-openni2-launch - Launch files to start the openni2_camera drivers using rgbd_launch.
ros-kinetic-opt-camera - opt_camera
ros-kinetic-pointgrey-camera-description - URDF descriptions for Point Grey cameras
ros-kinetic-pointgrey-camera-driver - Point Grey camera driver based on libflycapture2.
ros-kinetic-polled-camera - polled_camera contains a service and C++ helper classes for implementing a polled camera driver node and requesting images from it.
ros-kinetic-pr2-camera-synchronizer - The PR2 is equipped with a texture projector that can be used to project a texture onto featureless surfaces, allowing their three-dimensional structure to be determined using stereoscopy.
ros-kinetic-pr2-hardware-interface - This package contains the C++ interfaces to the PR2 hardware components that are controlled over EtherCAT.
ros-kinetic-prosilica-camera - A ROS driver node for AVT/Prosilica Gigabit Ethernet (GigE) cameras.
ros-kinetic-rc-dynamics-api - The rc_dynamics_api provides an API for easy handling of the dynamic-state data streams provided by Roboception's stereo camera with self-localization.
ros-kinetic-rc-genicam-api - GenICam/GigE Vision Convenience Layer.
ros-kinetic-realsense-camera - RealSense Camera package allowing access to Intel 3D cameras and advanced modules
ros-kinetic-romeo-sensors-py - Package that adds the depth camera to Romeo
ros-kinetic-rqt-moveit - An rqt-based tool that assists monitoring tasks for MoveIt! motion planner developers and users.
ros-kinetic-sensor-msgs - This package defines messages for commonly used sensors, including cameras and scanning laser rangefinders.
ros-kinetic-sick-visionary-t - Open source driver for the SICK Visionary-T 3D TOF camera.
ros-kinetic-sick-visionary-t-driver - Open source driver for the SICK Visionary-T 3D TOF camera.
ros-kinetic-spinnaker-camera-driver - Spinnaker camera driver based on Spinnaker.
ros-kinetic-statistics-msgs - Messages related to the Point Grey camera driver.
ros-kinetic-turtlebot3-autorace-camera - TurtleBot3 AutoRace ROS package that controls Raspberry Pi Camera, and process the image
ros-kinetic-tuw-ellipses - The tuw_ellipses package contains a computer vision library which is able to detect ellipses within images.
ros-kinetic-ueye - Driver for IDS Imaging uEye cameras.
ros-kinetic-ueye-cam - A ROS nodelet and node that wraps the driver API for UEye cameras by IDS Imaging Development Systems GMBH.
ros-kinetic-usb-cam - A ROS Driver for V4L USB Cameras
ros-kinetic-uvc-camera - A collection of node(let)s that stream images from USB cameras (UVC) and provide CameraInfo messages to consumers.
ros-kinetic-video-stream-opencv - The video_stream_opencv package contains a node to publish a video stream (the protocols that opencv supports are supported, including rtsp, webcams on /dev/video and video files) in ROS image topics, it supports camera info and basic image flipping (horizontal, vertical or both) capabilities, also adjusting publishing rate.
ros-kinetic-view-controller-msgs - Messages for (camera) view controllers
ros-kinetic-visp-auto-tracker - Online automated pattern-based object tracker relying on visual servoing.
ros-kinetic-visp-camera-calibration - visp_camera_calibration allows easy calibration of cameras using a customizable pattern and ViSP library.
ros-kinetic-visp-hand2eye-calibration - visp_hand2eye_calibration estimates the camera position with respect to its effector using the ViSP library.
ros-kinetic-visp-tracker - Wraps the ViSP moving edge tracker provided by the ViSP visual servoing library into a ROS package.
ros-kinetic-wfov-camera-msgs - Messages related to the Point Grey camera driver.
ros-kinetic-wge100-camera - A ROS node and assorted tools to provide access to the WGE100 camera used in the forearms and the stereo cameras of the PR2 robot.
ros-kinetic-wge100-camera-firmware - Source for the WGE100 Ethernet camera: Verilog source for the FPGA, Forth source for the camera firmware.
ros-kinetic-wge100-driver - This stack contains the ROS driver and firmware for the WGE100 camera used on the PR2 robot.
ros-kinetic-wiimote - The wiimote package allows ROS nodes to communicate with a Nintendo Wiimote and its related peripherals, including the Nunchuk, Motion Plus, and (experimentally) the Classic.
ros-kinetic-xiaoqiang-depth-image-proc - Modified version of depth image process, add occupancy xyz Contains nodelets for processing depth images such as those produced by OpenNI camera.
ros-kinetic-xiaoqiang-freenect-camera - A libfreenect-based ROS driver for the Microsoft Kinect.
ros-kinetic-xiaoqiang-freenect-launch - Launch files for xiaoqiang_freenect_camera to produce rectified, registered or disparity images.

其中,usb的camera使用非常的简单,其中支持的包包括ros-kinetic-usb-cam、ros-kinetic-uvc-camera。


uvc-camera – ros-kinetic-uvc-camera

安装

$ apt-cache search ros-kinetic-uvc*
ros-kinetic-uvc-camera - A collection of node(let)s that stream images from USB cameras (UVC) and provide CameraInfo messages to consumers.
$ sudo apt-get install ros-kinetic-uvc-camera $ rospack profile

执行

先启动roscore

$roscore

在执行uvc_camera的节点。

$ rosrun uvc_camera uvc_camera_node
[ INFO] [1539733994.303287863]: using default calibration URL
[ INFO] [1539733994.303379696]: camera calibration URL: file:///home/david/.ros/camera_info/camera.yaml
[ INFO] [1539733994.303427543]: Unable to open camera calibration file [/home/david/.ros/camera_info/camera.yaml]
[ WARN] [1539733994.303453278]: Camera calibration file /home/david/.ros/camera_info/camera.yaml not found.
opening /dev/video0
pixfmt 0 = 'YUYV' desc = 'YUYV 4:2:2'discrete: 320x240:   1/30 discrete: 640x480:   1/30
pixfmt 1 = 'MJPG' desc = 'Motion-JPEG'discrete: 1280x720:   1/30

show the image/video

$ rosrun image_view image_view image:=/image_raw
[ INFO] [1539699406.532269649]: Using transport "raw"And now, you can see a window and show the camera video.

usb-camera

install the usb-camera

$ apt-cache search ros-kinetic-usb
ros-kinetic-usb-cam - A ROS Driver for V4L USB Cameras

install it:

$ sudo apt-get install ros-kinetic-usb-cam

update the ros pack env.

$ rospack profile

Test the usb-camera

as you known, begin run an ros node or launch, just start roscore.

$roscore
$ roslaunch usb_cam usb_cam-test.launch ... logging to /home/david/.ros/log/5c16034e-d14e-11e8-8d84-001c420ce04e/roslaunch-david-14455.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.started roslaunch server http://david:40285/SUMMARY
========PARAMETERS* /image_view/autosize: True* /rosdistro: kinetic* /rosversion: 1.12.14* /usb_cam/camera_frame_id: usb_cam* /usb_cam/image_height: 480* /usb_cam/image_width: 640* /usb_cam/io_method: mmap* /usb_cam/pixel_format: yuyv* /usb_cam/video_device: /dev/video0NODES/image_view (image_view/image_view)usb_cam (usb_cam/usb_cam_node)ROS_MASTER_URI=http://localhost:11311process[usb_cam-1]: started with pid [14472]
process[image_view-2]: started with pid [14473]
[ INFO] [1539699553.695840455]: using default calibration URL
[ INFO] [1539699553.695911035]: camera calibration URL: file:///home/david/.ros/camera_info/head_camera.yaml
[ INFO] [1539699553.695963296]: Unable to open camera calibration file [/home/david/.ros/camera_info/head_camera.yaml]
[ WARN] [1539699553.695987994]: Camera calibration file /home/david/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1539699553.696008195]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (yuyv) at 30 FPS
[ INFO] [1539699553.724149399]: Using transport "raw"

这里,你就可以看到摄像头的视频图像了。

ROS 中的camera支持相关推荐

  1. ROS中阶笔记(七):机器人SLAM与自主导航—SLAM功能包的使用

    ROS中阶笔记(七):机器人SLAM与自主导航-SLAM功能包的使用 文章目录 1 机器人必备条件 1.1 硬件要求 1.2 深度信息 1.2.1 激光雷达 1.2.2 kinect 1.3 里程计信 ...

  2. Ubuntu16.04 在ROS中配置RealSence D435 并标定深度相机与rplidar外参

    Ubuntu16.04系统,在ROS中配置RealSence D435 ,并标定其与rplidar的外参 主要目的是为rplidar标定深度相机外参,为机器人导航的过程提供障碍物识别的功能,因此需要知 ...

  3. 使用 ROS中的插件

    URDF文件完成后,可以在rviz中显示机器人的模型,如果要在gazebo中进行物理环境仿真,还需要为URDF文件加入一些gazebo相关的标签.既然是仿真,那么机器人应该像真在真实环境中一样,可以通 ...

  4. ROS中base_link, odom, fixed_frame, target_frame和虚拟大地图map的关系

    前面已经介绍了如何使用URDF建造机器人小车并显示在Rviz的仿真环境里面,但是小车是静止的.下面介绍如何让它在Rviz里面动起来,并理清URDF,TF 和 odom 的关系. 1. ROS中base ...

  5. 在ROS中使用奥比中光Orbbec Astra Pro

    一.相机驱动的安装 1.安装依赖: $ sudo apt-get install build-essential freeglut3 freeglut3-dev 2.检查udev版本,需要libude ...

  6. ROS中阶笔记(十一):ROS 2.0

    ROS中阶笔记(十一):ROS 2.0 文章目录 1 为什要有ROS 2 1.1 ROS 1的特点 1.2 ROS 1的困境 1.3 ROS 2的曙光 1.4 ROS 2的版本进化 1.5 ROS 2 ...

  7. ROS中阶笔记(五):机器人感知—机器视觉

    ROS中阶笔记(五):机器人感知-机器视觉 文章目录 1 ROS中的图像数据 1.1 二维图像 1.1.1 安装安装usb_cam 1.1.2 显示图像数据 1.2 三维图像(kinect) 2 摄像 ...

  8. ROS中阶笔记(四):机器人仿真—Gazebo物理仿真环境搭建(重点)

    ROS中阶笔记(四):机器人仿真-Gazebo物理仿真环境搭建(重点) 文章目录 1 ros_control 1.1 ros_control安装 2 Gazebo仿真步骤(重点) 2.1 配置物理仿真 ...

  9. ROS中阶笔记(二):机器人系统设计—URDF机器人建模

    ROS中阶笔记(二):机器人系统设计-URDF机器人建模 文章目录 01 URDF理论 1.1 什么是URDF 1.2 模型< robot > 1.2.1 < link > e ...

最新文章

  1. nginx的安装和使用(一)
  2. 工具型产品+社区为何无法从根本上解决留存问题?
  3. oracle 11g安装时设密码 database control,安装oracle 11g 保护Database Control时出错,Database Control已在非安全模式下启动...
  4. django的命令, 配置,以及django使用mysql的流程
  5. Xamarin.Form 超链接 用手势实现
  6. 安装TeamViewer的监视器驱动后屏幕亮度无法调节
  7. 伊家田园帮您划重点!2021年重点强农惠农政策
  8. git下载单个文件夹
  9. pythonturtle画飞机_Python获取航线信息并且制作成图的讲解
  10. 攻防世界mfw--详细笔记
  11. excel文件下载下来损坏 js_js文件操作之——导出Excel (js-xlsx)
  12. JavaScript 保留两位小数的三种实现方法
  13. C语言-小写转换大写
  14. 【渝粤题库】陕西师范大学292011 初级微观经济学 作业(高起专)
  15. html5 canvas爆炸,html5 canvas彩色爆炸的小球动画特效
  16. Thickbox使用中的一些问题
  17. 解决Python的your data either using array.reshape(-1, 1) if your data has a single featur
  18. 北大肖臻老师《区块链技术与应用》系列课程学习笔记[2]Bitcoin的共识协议
  19. 决策树的生成与剪枝CART
  20. C语言除法哪个是整除,c语言整除(c语言整除怎么表示)

热门文章

  1. IDEA git修改远程仓库地址
  2. 09(maven+SSH)网上商城项目实战之使用jersey实现应用服务器和图片服务器分离...
  3. hive_0.11中文用户手册
  4. Python - 利用pip管理包
  5. ux.form.field.SearchField 列表、树形菜单查询扩展
  6. linux 分区 格式化 挂载 新硬盘
  7. 一些常用UI控件汇总
  8. SQL Server:Like 通配符特殊用法:Escape
  9. JSTL-EL表达式
  10. 教育教学知识与能力小学计算机,浅谈小学计算机教学论文