Ask Your Question

Reduce resolution of Asus Xtion Pro Live

asked 2014-04-07 23:02:17 -0500

Andrew.A gravatar image

updated 2014-04-07 23:32:33 -0500

I'm trying to change the resolution of my Asus Xtion Pro Live. I'm currently running ROS Groovy on Ubuntu 12.04.

I am aware that there is a graphical method to do this, using rosrun rqt_reconfigure rqt_reconfigure, but is there a command line way of doing this? Or even better, is there some way such that when I use roslaunch openni_launch openni.launch, the resolution is lowered by default? The default right now is VGA 640x480 @ 30fps. I want to change it to QVGA 320x240 @ 30fps.

I tried adding <arg name="image_node" value="5" /> to my openni.launch file, but it didn't do anything. I set the value to 5 because using the graphical method, QVGA 320x240 @ 30fps is labelled as (5).

Can someone help me out here?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-08 04:57:02 -0500

As seen on the dynamic_reconfigure documentation, there is a node called dynparam that is part of the package that can be used to set reconfigurable parameters via the commandline. So for your situation a command like

rosrun dynamic_reconfigure dynparam set /camera/driver depth_mode 5

Would do what you want. In a launch file:

<include file="$(find openni_launch)/launch/openni.launch"/>
<node pkg="dynamic_reconfigure" type="dynparam" name="reconfig"
  output="screen" args="set /camera/driver depth_mode 5" />
edit flag offensive delete link more


The command line works great! But I'm having trouble with editing the launch file. I'm trying to edit the openni.launch file directly, at `/opt/ros/groovy/share/openni_launch/launch/openni.launch`. I got the error `maximum recursion depth exceeded while calling a Python object`.

Andrew.A gravatar image Andrew.A  ( 2014-04-08 15:51:09 -0500 )edit

When I removed the `<node>` element completely, it worked! I just had to restart my mjpeg_server. Thank you!

Andrew.A gravatar image Andrew.A  ( 2014-04-08 15:52:15 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-04-07 23:02:17 -0500

Seen: 930 times

Last updated: Apr 08 '14