ros中录制摄像头采集的图像的方法

以笔记本电脑自带摄像头为例

终端1 : roscore

终端2: rosrun usb_cam usb_cam_node

此时存在 /usb_cam/image_raw  的topic

终端3: rosrun image_view video_recorder image:=/usb_cam/image_raw  _max_depth_range:="0"

最终将在/home 看到output.avi

其他参数:

~filename (string, default: output.avi)

  • Path and name of the output video.

~fps (int, default: 15)

  • Framerate of the video.

~codec (string, default: MJPG)

  • The FOURCC identifier of the codec.

~encoding (string, default: bgr8)

  • The image color space of the video.

你可能感兴趣的:(ros)