ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Configuring frame rate of Asus Xtion Pro Live

asked 2013-08-27 20:25:24 -0600

Andrew.A gravatar image

updated 2013-08-27 20:37:27 -0600

I want to stream my camera feed to a webpage currently using mjpeg server, but the bandwidth at the moment is a tad bit high, so I'm trying to reduce the size of the stream.

Is it possible to change the frame rate to something lower? I'm using the default (640 x 480 @ 30 Hz), and I was wondering if it is possible to reduce the frame rate to something like 15 Hz? The resolutions currently available, as far as I know, are:

SXGA_15Hz  - 1280x1024@15Hz
VGA_30Hz   - 640x480@30Hz
VGA_25Hz   - 640x480@25Hz
QVGA_25Hz  - 320x240@25Hz
QVGA_30Hz  - 320x240@30Hz
QVGA_60Hz  - 320x240@60Hz
QQVGA_25Hz - 160x120@25Hz
QQVGA_30Hz - 160x120@30Hz
QQVGA_60Hz - 160x120@60Hz

I don't really want to reduce my resolution to 320x240, and I'd love it if there was something between VGA and QVGA (maybe something like 480x360), but I don't think its possible to just create my own resolutions, right?

Is there any way around this at all, or is this constrained by the hardware?

Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-08-28 04:54:52 -0600

You could use topic_tools/throttle and have mjpeg_server subscribe to the throttled topic.

edit flag offensive delete link more

Comments

This is simple and easy to use. Thanks!

Andrew.A gravatar image Andrew.A  ( 2013-08-28 17:10:25 -0600 )edit
3

answered 2013-08-28 00:09:48 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Not sure about openni2_camera but this:

<param name="camera/driver/data_skip" value="10" /> <!-- 0 is default, 10 will drop 9/10 frames -->

works for kinect in openni_launch. It doesnt change the frame rate but it skips frames. When you run rosrun rqt_reconfigure rqt_reconfigure you may be able to find more.

Or take a look at a slightly different question here

edit flag offensive delete link more

Comments

Where can I include the line on top? I'm using roslaunch openni_launch openni.launch to start my camera. I tried inserting it in the openni.launch file, but it doesn't seem to work..

Andrew.A gravatar image Andrew.A  ( 2013-08-28 17:11:58 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2013-08-27 20:25:24 -0600

Seen: 1,855 times

Last updated: Aug 28 '13