[Documentation] [TitleIndex] [WordIndex

virtual_camera

Introduction

This is a package that can send a ROS image message to a v4l2loopback device. Tested on Fuerte.

Installation

You should install v4l2loopback before useing this package.

You can download virtual_camera on Github

Documentation

(Sorry... not complete yet...)

You can use this package as follows:

$ rosrun virtual_camera streamputer image:=<image topic> [\dev\video<id>]

which: <image tipic> is the remaped image messages(sensor_msgs/Image) [\dev\video<id>] is the virtual device, which is created by v4l2loopback default device is defined in data/yuyv_camera.txt

NOTICE: All sizes of image messages (sensor_msgs/Image) will resize to 640*480

You can use build-in script to create a virtual device:

$ rosrun virtual_camera prerun.sh

This script will create a virtual device and rewrite yuyv_camera.txt. You need administrator rights to run the script.

Virtual video device information: Format:YUYV Width:640 High:480 bytes per frame:614400 NOTICE: All sizes of image messages (sensor_msgs/Image) will resize to 640*480

Testing OS:Ubuntu 12.04 LTS v4l2loopback version: 0.7.0

NOTICE: Old versions of v4l2loopback may fail on Skype or luvcview

Nodes

image_view

Sending a ROS image message to a v4l2loopback device.

Subscribed Topics

image (sensor_msgs/Image) The image topic. Should be remapped to the name of the real image topic.

Parameters

~device (string, default: in data/yuyv_camera.txt) The virtual video file, in /dev.

Report a Bug

This is my first published on ROS. Please help me to improve! by ZhiweiChu

<<TracLink(REPO COMPONENT)>>


2024-12-07 18:25